Odd train, odd crash

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Odd train, odd crash

Post by krtaylor »

I was playing the Japanset test GRF, and everything was going along normally. Then I saw what appeared to be a lone engine, or unexpectedly short train, stopped in a station. It was kind of hidden behind trees, so I didn't get a very good look. I clicked on it to investigate, and the game crashed instantly. Here's the crashlog.
Attachments
CRASH002.TXT
(1.62 KiB) Downloaded 41 times
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

The crash log is rather useless at that point, as is the savegame.

The only useful thing would be savegame just before the train breaks up, I'm afraid.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

I restarted the game and looked again, and I think I figured out what happened. I'd just apgraded the PGS stations set to the new versions, and things are using different IDs. That section of the station had been PGS freight, and apparently one of the IDs it had been using, now is a buffer. In the middle of the platform, that is, with a train already IN the platform, it magically changed into a buffer when the new version loaded.

Right now, when there are any changes in station type (or missing GRFs), the game quite logically puts in the original TTD ones, on the reasonable grounds that they'll work anywhere. Maybe we need a similar cross-check for station segments that are not passable by trains.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

krtaylor wrote:Maybe we need a similar cross-check for station segments that are not passable by trains.
Impossible, since that information is only stored in the grf, and when the grf is not available (or its ID changed, which amounts to the same thing), there is nothing but the TTD station behaviour to fall back to.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

My point exactly - fall back to the original TTD station if there's any confusion. Is there any way of knowing, when a game loads, whether a particular station segment was supposed to be passable or impassable, without necessarily having that exact GRF file? I mean, if previously it was passable, and now the GRF file says it should be impassable, replace it with the original TTD station so as not to cause problems like trapped trains (as happened to me.)
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

krtaylor wrote:My point exactly - fall back to the original TTD station if there's any confusion. Is there any way of knowing, when a game loads, whether a particular station segment was supposed to be passable or impassable, without necessarily having that exact GRF file?
No, which was my point.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Yes, but it didn't fall back to the original TTD station when it was confused. If it had, there would have been no problem. Instead, it created a non-accessible station piece, on a square which not only had previously been accessible, but actually had a train in it at the time, thus breaking the train and causing a game crash when I clicked on it.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Oh. I think that might be due to the colliding GRFIDs. It's possible that, while the graphics weren't available, it was using the other grf's settings. Well, this is easy enough to fix: don't load station grfs that have the same GRFID...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

No, see, that was unavoidable in this case - I was upgrading version pre3 of the PGS set, to version pre4.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

krtaylor wrote:No, see, that was unavoidable in this case - I was upgrading version pre3 of the PGS set, to version pre4.
Well sure, but don't complain if that breaks things...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Or, more accurately, "don't complain to Patchman if that breaks things."
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
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

More precisely, the problem is a new grf file overriding old stations with the same GRFID with new data. If the GRFID in question is simply missing, it should all work fine. But there's no way to tell if the new data is simply an update to an existing file, or an entirely new, incompatible file that just happens to have the same ID.

This is impossible to fix except by using GRFIDs as they're meant to be used, i.e. having a unique one for every set, and changing it when the set is incompatible to earlier versions (such as dbset -> dbsetxl).
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

So the way to fix it in a game would be as follows:

1. Disable the relevant GRF. Then all stations of that type turn into standard TTD stations.

2. Replace the problem stations with Something Else.

3. Re-enable the GRF.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
Aegir
Tycoon
Tycoon
Posts: 2884
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

Yeap, all the causes of this (grfids) have been fixed. This is just the game you play when upgrading station sets. Have fun :mrgreen:.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: Bing [Bot] and 14 guests