[2.0.41] Crash setting train schedule of moving train (RollingStock::checkConsistency) (speed == 0 || closing)

Post your bugs and problems so we can fix them.
Ashier
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Jan 26, 2025 11:03 pm
Contact:

[2.0.41] Crash setting train schedule of moving train (RollingStock::checkConsistency) (speed == 0 || closing)

Post by Ashier »

I will attempt to explain as best I can. The relevant lua code for my mod can be found here: https://github.com/AtelierAmber/RSAD-Tr ... r.lua#L281 Linked to the line that I think is causing it.
Also attached is a save file to test it on. It is extremely easy to reproduce if timed correctly and will happen every time. I have included a small video to demonstrate it as well.

Steps to repro:
- Click the train and send it to the already scheduled station. This, similar to cybersyn, will register the train with the RSAD train system and send it to deliver the wagon.
- After the train has picked up the wagon, place another one at the back of the remaining wagon. This may not be necessary to crash it.
- Once the train is returning to the station, and after it has passed the crossing (such that it can path to the wagon pick up stop), delete the wagon at the drop off stop. This will trigger the linked code above to run and set a new schedule for the train.

Mod list:
- Base Mod
- Elevated Rails
- Debug Adapter for Factorio Mods (via vscode)
- Editor Extensions
- Factorio Library
- Pipe Visualizer 2.0 (Likely not required)
- RSAD Train Yards (My in-dev mod linked above)

Let me know if you require anything else.

Video
2025-03-14 18-48-50.mp4
(12.85 MiB) Downloaded 23 times
Log
factorio-current.log
(11.5 KiB) Downloaded 27 times
Dump
factorio-dump-current.dmp
(1.12 MiB) Downloaded 22 times
Save
default test-.zip
(881.02 KiB) Downloaded 22 times
Post Reply

Return to “Bug Reports”