As the title says, removing all names from backers.json, leaving an empty array will cause the game to crash when placing a new train stop. This error does not occur when placing other backer named buildings, such as the science lab. Having any names in the array (including only the blank string "") will prevent this.
The backers.json file used to cause this is attached. Save file is not included as it can occur on any file (the log file was made with a sandbox map made 10 seconds before).
[0.17.58]Placing a train stop with an empty backers.json file crashes the game
-
- Long Handed Inserter
- Posts: 74
- Joined: Wed Nov 29, 2017 10:59 pm
- Contact:
[0.17.58]Placing a train stop with an empty backers.json file crashes the game
- Attachments
-
- backers.json
- (27 Bytes) Downloaded 178 times
-
- factorio-current.log
- (9.25 KiB) Downloaded 162 times
Re: [0.17.58]Placing a train stop with an empty backers.json file crashes the game
I'm torn. On the one hand I want to say that this is self-inflicted, but on the other I can't help but feel that this should be an easy fix (check the length of the backer array before trying to use it, possibly even erroring out at startup).
-
- Long Handed Inserter
- Posts: 74
- Joined: Wed Nov 29, 2017 10:59 pm
- Contact:
Re: [0.17.58]Placing a train stop with an empty backers.json file crashes the game
Understandable, and I'm not exactly concerned, considering I posted a workaround in my post. I only posted because I found it strange the discrepancy between the train stops and the other named buildings. And in any case, I figured that if the input file can be changed in such a way to cause an error, that should at least be caught during startup, rather than leaving it to the crash handler (it already does so if you mess up the file).
Re: [0.17.58]Placing a train stop with an empty backers.json file crashes the game
Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.