Page 1 of 1
problem with enhanced tunnels & others
Posted: 14 Mar 2008 00:18
by acalex
Hi guys,
this is my first post here in the forum and - well - it's just a problem ...
But a strange one: Since a few days my favourite savegame is freezing (date: 2008/12/14)!
After a lot of "trial and error", I think I figured out that this crash is caused by a conflict between the "enhanced tunnels"-switch and the "more vehicles"-switch (for me at value 20). I have to reduce it to 4 in order not to freeze my game. With "enhanced tunnels" off - no problem. Switching back to an older nighly doesn't help.
A few weeks ago I had a similar problem - again with "enhanced tunnels", that - switched it on - caused a freeze with the "curves 3333"-switch. I had to chance it for road vehicles to 0 (curves 3330) to work.
Now I'm a little confused! Unfortunately, I have no old savegame to switch back to a another status and check for errors.
I tried to reproduce a log-file with ollidebug (attached).
I hope, somebody can help!!

Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 04:47
by DaleStan
acalex wrote:"more vehicles"-switch (for me at value 20).
Which is absurdly huge. No sane person needs that switch set above 7 or 8, and the only benefit you get from any higher value is increased processor usage.
acalex wrote:I tried to reproduce a log-file with ollidebug (attached).
Can you copy American.exe to TTDLOADW.OVL (or GameGFX.exe) and then regenerate that screenshot, please?
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 04:52
by Rob
DaleStan wrote: No sane person needs that switch set above 7 or 8
I need it at 20, which would make me very insane apparently.
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 04:58
by DaleStan
I thought that was already very well established, Rob.

Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 05:20
by Rob
Well I guess this means I have been found out once more.

Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 09:15
by acalex
DaleStan wrote:Which is absurdly huge. No sane person needs that switch set above 7 or 8, and the only benefit you get from any higher value is increased processor usage.
DaleStan wrote:I thought that was already very well established, Rob.
Sure, for some reasons it was set to this high value some time ago. However, I can't reduce this switch without loosing most of my vehicles.
DaleStan wrote:Can you copy American.exe to TTDLOADW.OVL (or GameGFX.exe) and then regenerate that screenshot, please?
Sorry for confusion, but how do I "copy GameGFX.exe to TTDLOADW.OVL"?
Ther are no hints in the manual for something like that ...
http://wiki.ttdpatch.net/tiki-index.php
I just opened GameGFX.exe in Ollydbg. If that's what you want, see the screenshot attached
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 15:18
by DaleStan
No. The source is always American.exe. The target may be either GameGFX.exe or TTDLOADW.OVL. (You'll find American.exe on your install media.)
If you copy to GameGFX.exe, you'll have to delete TTDLOADW.OVL too.
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 16:00
by acalex
DaleStan wrote:No. The source is always American.exe. The target may be either GameGFX.exe or TTDLOADW.OVL. (You'll find American.exe on your install media.)
Ok, Dale that's clear. But how do I "copy American.exe [or German.exe cause I play in german??] to Ttdloadw.ovl" with ollydbg?
Could you please explain a little more or give some hints? I'm not very good in this whole debugging stuff ...

Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 16:38
by DaleStan
acalex wrote:[or German.exe cause I play in german??]
NoNoNo. That's the problem. You are using German.exe, and we don't have debugging information for German.exe, only for American.exe.
However, I did eventually manage to fake it. Still no idea why it's hanging, but at least I know where.
acalex wrote:with ollydbg?
You don't. OllyDBG has nothing to do with copying files. You copy the way you'd copy any other file -- with Explorer, Total Commander, the command line, whatever you use to copy files.
EDIT: OK. Found the bug. Watch road vehicle 57 and see what it does. Then just make sure it doesn't do *that*. It's probably a bug somewhere in enhancetunnels. The best way to prevent that problem is probably to remove that piece of road.
JGR: Can I blame this bug on you?
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 18:12
by JGR
DaleStan wrote:JGR: Can I blame this bug on you?
Yes. See r1840.
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 18:56
by acalex
Thanx Dale, exactly that was the problem!

I have removed this piece of road now.
Additionally, I have reproduced the freeze with American.exe as you told (see screenshot 1).
Maybe it is useful for you to fix the problem for another nightly ...
BTW: Got another problem with a strange road vehicle (same savegame, screenshot 2). It seems to have gone nowhere ...
Although it caused no crash, is there a way to delete it? The cheat "deleteveh" doesn't work because I can't pick it.
Thank you again!
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 19:41
by DaleStan
JGR wrote:DaleStan wrote:JGR: Can I blame this bug on you?
Yes. See r1840.
Always nice to see a prompt fix like that, especially when I really don't have an idea where to looking. And more so when I use a word like "blame" when I could be much more polite about it.
acalex wrote:BTW: Got another problem with a strange road vehicle (same savegame, screenshot 2). It seems to have gone nowhere ...
Although it caused no crash, is there a way to delete it?
Yes. Quick savegame hack, but not an easy one to describe. The vehicle is gone now, but figuring out how it got there is hopeless; a save from before it teleports to nowhereville is required.
I may have messed up your newgrfs in the process, as I didn't have your newgrfw.cfg. If so, just re-enable them.
Re: problem with enhanced tunnels & others
Posted: 14 Mar 2008 20:10
by acalex
Thank you Dale, you are my personal God!

Re: problem with enhanced tunnels & others
Posted: 15 Mar 2008 03:28
by athanasios
Vehicle abducted! Better this, than the flying saucer!
