The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jindrich.houska on December 07, 2011, 08:37:23 PM

Title: Simutrans crash
Post by: jindrich.houska on December 07, 2011, 08:37:23 PM
Hi,

I have simutrans 111.0 r4911, pak128 2.0.0, pack128 compatibility 2.0.0 (not unzipped all files, just those needed). I saved game in this version and then I tried to load it. During the load Simutrans crashes. Where can I post the save game (it has almost 3MB)?

Thank you for your help.
Title: Re: Simutrans crash
Post by: Isaac Eiland-Hall on December 07, 2011, 08:51:53 PM
I have recently begun to recommend http://ge.tt/ for files, because you can share the download link and it will directly give the file - no hassle, no ads, or anything.
Title: Re: Simutrans crash
Post by: Dwachs on December 07, 2011, 09:25:09 PM
A screenshot of the crash would be also helpful. Or any other hint about the cause. Is there a 'Fatal Error' message? If yes then post it.
Title: Re: Simutrans crash
Post by: jindrich.houska on December 07, 2011, 09:27:14 PM
Thanks for your suggestion.

Saved game can be downloaded here: http://api2.ge.tt/0/8w6AVtA/0/blob/download
Title: Re: Simutrans crash
Post by: TurfIt on December 08, 2011, 01:52:18 AM
Savegame appears corrupted. Instead of tram track in the cities, I see 'low quality track' running up the roads which creates a road/rail crossing every tile. Get a loop of crossings and the game logic crashes. I see no point changing the logic to handle this as it shouldn't happen. Exactly how this occurred will likely remain a mystery...

Best I can do is offer a possibly fixed save: http://api2.ge.tt/0/8kAPvtA/0/blob/download
Tram track put back in place, no guarantees there isn't more corruption lurking.
Title: Re: Simutrans crash
Post by: Fifty on December 08, 2011, 04:13:09 AM
Quote from: TurfIt on December 08, 2011, 01:52:18 AM
Savegame appears corrupted. Instead of tram track in the cities, I see 'low quality track' running up the roads which creates a road/rail crossing every tile. Get a loop of crossings and the game logic crashes. I see no point changing the logic to handle this as it shouldn't happen. Exactly how this occurred will likely remain a mystery...

Just a note: I have seen how this behavior occurs. It occurred with the replacement of tram tracks in pak 128. When loading a save from an older version, the old 80 km/h tracks strangely become low quality track with endless crossings. It caused a lot of problems, but did not corrupt my savegame (using pak 128 r571, not 2.0.0). As the old 50 km/h tracks converted correctly, I assume there is a way to fix this problem by fixing pak 128.
Title: Re: Simutrans crash
Post by: Dwachs on December 08, 2011, 09:28:14 AM
Does it help if there is a line-break at the very last line of compat.tab ?

Edit: I can imagine what happened: first old savegame was loaded, due to bug (no newline at end of compat.tab - which means that one of the tram track replacement rules was not read), tram track was not correctly replaced. Game was saved. This is the savegame at hand, which is not loadable anymore.
Title: Re: Simutrans crash
Post by: VS on December 08, 2011, 11:38:28 AM
Okay... what are the precise requirements for end of this file?

edit: I committed two empty lines at end, hopefully that is good enough? (Same as pak64)
Title: Re: Simutrans crash
Post by: Dwachs on December 08, 2011, 11:51:17 AM
There must be one empty line at the end of all language and compat.tab files. I fixed the bug now, so this requirement is 'only' for all previous releases.
Title: Re: Simutrans crash
Post by: jindrich.houska on December 08, 2011, 11:20:59 PM
Thank you for your help. Now I can load the fixed saved game. It would be a disaster if I couldn't load it - I play this game for years.

Dwachs was right - I saved the game in older versions of Simutrans (pak128 < 2.0.0), then I loaded it in last version and then I saved it and again loaded.

Thank you,
Jindra