Page 1 of 1

[Rseding91] [2.0.14] Game crashes on load due to TrainStop issue

Posted: Thu Nov 07, 2024 4:03 am
by train-enthusiast
The problem first began with 2.0.11 where the game would crash when I interacted with a train station (such as updating its name). The log then contained an error like this.

Code: Select all

66.745 Error TrainStop.cpp:753: this->stationID was not true
When I updated to 2.0.12, this was no longer an issue and everything worked fine. Now that I have updated to 2.0.14 though, the game crashes when loading the same save with the same TrainStop related error.

I have tried 2.0.15 but it also just crashed with the same error. I have some mods installed but none of them are related to trains or train stations in any way.

I have modified the backers.json file so I don't have to see references to factryboy420 in my game by removing all of the strings and replacing them with an empty one, as shown below. I have also done this in the past though (pre-2.0) and it hasn't caused any issues.

Code: Select all

{
  "backers": [
        ""
  ]
}
Any help would be much appreciated.

Re: [2.0.14] Game crashes on load due to TrainStop issue

Posted: Thu Nov 07, 2024 8:45 am
by boskid
Well, first i shall say: stop shooting yourself into your foot.

This error is thrown because train stop is not supposed to have empty name, at the same time your backers list was intentionally changed to contain an empty name. If you do not want any names in the list, change it into `"backers": []` as this is a true empty list, not a list with one element that is an empty string.

I will think about adding extra checks to make sure backers list does not contain any empty elements.

Re: [2.0.14] Game crashes on load due to TrainStop issue

Posted: Thu Nov 07, 2024 11:11 am
by train-enthusiast
Thank you for your response, I guess I've hit upon some kind of edge case given that what I've done hasn't caused any problems in the past.

Will an update with more extensive train station checks make my save playable? Or is there a way of editing it so the empty station names are not an issue?

Re: [2.0.14] Game crashes on load due to TrainStop issue

Posted: Thu Nov 07, 2024 12:14 pm
by Kyralessa
train-enthusiast wrote:
Thu Nov 07, 2024 4:03 am
I have modified the backers.json file so I don't have to see references to factryboy420 in my game
Dying of curiosity here.

Re: [2.0.14] Game crashes on load due to TrainStop issue

Posted: Fri Nov 08, 2024 6:47 pm
by Rseding91
For the next release I added a check that backer names are not empty strings since this is a requirement for the rest of the game logic to function correctly.

Re: [2.0.14] Game crashes on load due to TrainStop issue

Posted: Fri Nov 08, 2024 9:47 pm
by train-enthusiast
Rseding91 wrote:
Fri Nov 08, 2024 6:47 pm
For the next release I added a check that backer names are not empty strings since this is a requirement for the rest of the game logic to function correctly.
Thank you, I look forward to it.
Kyralessa wrote:
Thu Nov 07, 2024 12:14 pm
train-enthusiast wrote:
Thu Nov 07, 2024 4:03 am
I have modified the backers.json file so I don't have to see references to factryboy420 in my game
Dying of curiosity here.
I made that one up but looking through the file, there are some names that are close to what I was referring to.

- Chaosmachine420
- Chilly smeez :)
- daznet69
- #Godl1k3-Agomy