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

This subforum contains all the issues which we already resolved.
train-enthusiast
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Nov 07, 2024 3:43 am
Contact:

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

Post 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.
Attachments
AD ASTRA.zip
(24.4 MiB) Downloaded 23 times
factorio-current.log
(10.83 KiB) Downloaded 22 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3324
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
train-enthusiast
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Nov 07, 2024 3:43 am
Contact:

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

Post 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?
Kyralessa
Filter Inserter
Filter Inserter
Posts: 588
Joined: Thu Sep 29, 2016 5:58 pm
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14678
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
train-enthusiast
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Nov 07, 2024 3:43 am
Contact:

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

Post 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
Post Reply

Return to “Resolved Problems and Bugs”