Page 1 of 1

Crash at start of TTDPatch

Posted: 19 Aug 2004 14:26
by CEW
I have a saved game that worked well in TTDPatch version 29, however in all newer versions it crashes at the start or does not load at all just gives me a black screen and a crash log.

I have tried to run it with a basic ttdpatch.cfg and an empty newgrf.cfg, it loads okay but starts in 'pause' mode and as soon as I click on the pause button it gives me a black screen and errors. With my updated ttdpatch.cfg file it just goes straight to a black screen.

I am running under Windows XP home.

I have added the game, the basic ttdpatch.cfg file and the original ttdpatch.cfg file

The crash log is this

TTD V0019E000 Crash Log by TTDPatch 2.0.1 alpha 33 (Windows)

Exception C0000005 at 001B:0058AFEF

EAX EBX ECX EDX
FFFFFFFF 00000000 FFFF0250 004AC403

ESI EDI ESP EBP
004AC468 00000000 0006FA0A 00000000

DS ES FS GS SS Flags
0023 0023 0038 0000 0023 00010A87
FFFFFFFF FFFFFFFF 00000FFF ######## FFFFFFFF (Segment limits)
00CFF300 00CFF300 0040F300 ######## 00CFF300 (Access rights)

Bytes at DS:EIP
66 8B 47 04 89 84 35 3C 03 00 00 C3 80 FA 02 75

Stack Dump:
00590B5E 00590A1D 00030003 A2070001 A0910055 FF2C0055 5A180006 00130040
236D0000 F0000008 00027FFD EC0A0000 EC0A7FFD 00007FFD 00030000 EC100CF0
000001FD 00000000 00000000 00000000 21E80208 210077FC FA1C0018 21E80006
FAD477FC 88F00006 12A077FA FFFF77F5 0932FFFF 71A577F6 000177F5 00010000

Handler Stack Dump (at 0023:0006F7B8):
B0004005 43D8DA59 402BDC16 00000000 00000000 00000038 00000023 00000023
00000000 004AC468 00000000 004AC403 FFFF0250 FFFFFFFF 00000000 0058AFEF
0000001B 00010A87 0006FA0A 00000023 0020027F 03020000 00000000 00000000
00000000 00000000 00001F80 03020302 00000000 00000000 0000FFFF 00000000

Patch flags:
DBFEFFFF FFFFFFFF 3FFDFF5E 00000000 00000000 00000000 0000013F 80000000
00000000 00003E80 009607D0 01900096 016D003C 02580500 370A0514 13880A28
140A1928 1E145014 141E1450 3C1E1E14 0000003F E7E70114 F0F0F0F0 FF23FA01
5A011446 040A1E00 01000350 00350F02 05010A40 00001401

Posted: 19 Aug 2004 14:40
by Patchman
Sounds like the order table has become corrupted. I don't think there's a way to fix that, sorry.

By the way, the same thing happens for me when I try it in alpha 29 too...

Posted: 19 Aug 2004 14:45
by SHADOW-XIII
I found out that when I leave my ttdpatch.cfg but remove newgrfw.cfg .... then the game works fine (alpha33 here) ... it looks like a graphic bug somewhere .... I will test it more

you won't belive ... that bug ... was hard to track ... because 2 GRF files crash it ... :
DBSetXL and Polish Signals (at least here both crash the game)

i'm adding all crash files that was created during tests and that Polish Signals graphic

Posted: 19 Aug 2004 16:41
by CEW
I tried mine again using version 29 with the basic ttdpatch.cfg file and an empty newgrf.cfg file and it worked okay although I had some very confused ships as all the canal locks had disappeared. I also tried it with version 33 and no newgrfw.cfg file and I had the same error as before.

What is the order table and could I rejenerate it by recreating the original TTD Windows program?

Posted: 19 Aug 2004 17:02
by SHADOW-XIII
I looked into and it seems that the game works for me with normal signals (altough with Polish ones it does not work) .... I found also all my crashlogs diffrent, so let's hope it will be source of knowledge ...
Patchman said, he will look into the savegame what is wrong ...

as for you CEW, try my ttdpatch.cfg (which I am now posting) with empty newgrf[w].cfg (or better remove it)

Posted: 19 Aug 2004 17:41
by CEW
thanks for your version of ttdpatch.cfg.

my program now works although obviously it has not got the new graphics.

I will try adding the new graphics gradually to see if any of them cause it to error, maybe that will help track down the problem.

thanks for your help.

Posted: 19 Aug 2004 19:07
by CEW
I have tried all the graphics with no problems.

I will now try and see if there are any differences between the two ttpatch.cfg files that cause the error.

Posted: 20 Aug 2004 15:12
by CEW
I have tested all the differences between your version of ttdpatch.cfg and mine and found that the switch that was causing my program to error was 'morevehicles'. I had it set to 1 and you had it set to 6. Now that I have changed my version of ttdpatch.cfg my game works okay - brilliant!

Was there something in version 30 that caused the error or was i just unlucky?

Thanks for all your help.