Segfault while loading a game

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
iNVERTED
Route Supervisor
Route Supervisor
Posts: 387
Joined: 24 Apr 2005 21:21
Location: Torquay, England
Contact:

Segfault while loading a game

Post by iNVERTED »

DaleStan might remember my random off-topic "useless bug report", but anyway, I've investigated it further using the stable version 0.5.0, and it turns out it is this GRF file that causes the problem (attached). The GRF file must be loaded before loading the game from the main menu. Loading the GRF file and then applying changes while already in a game will not cause the crash. So far, it's happened for every savegame I've tried.

[move to Problems if appropriate]
Attachments
newmaglevw.grf
(73.69 KiB) Downloaded 146 times
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Fixed in r8955, so you should be able to play the games with the next nightly.

For 0.5.0 the workaround would be to set the GRF info and GRF name using action 8 in the GRF itself.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Huh? That grf already has an action 8.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Dalestan, is my understanding of GRFs correct when I say that the GRF is not according to specifications?
This as the description does not have a 00 termination.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

It's not correct, true, but it is present, and (for better or for worse) accepted by the reference implementation.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 19 guests