[kovarex] [0.17.32] Trains switch back and forth between path_lost and no_path

This subforum contains all the issues which we already resolved.
Post Reply
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

[kovarex] [0.17.32] Trains switch back and forth between path_lost and no_path

Post by eduran »

Stopped trains without a valid path have a state of defines.train_state.no_path most of the time. Every 128 ticks they switch state to defines.train_state.path_lost and back to defines.train_state.no_path on the next tick.

Attached is a save with minimal setup. Execute

Code: Select all

/c script.on_event(defines.events.on_train_changed_state, function(ev) game.print(serpent.block(ev)) end)
and you will see the double-event spam.

This should not effect anyone playing the game, but for mods it triggers spurious events.
Attachments
bug_train-state.zip
(1.4 MiB) Downloaded 98 times

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [0.17.32] Trains switch back and forth between path_lost and no_path

Post by kovarex »

Thanks for the report, fixed for the next version.

Post Reply

Return to “Resolved Problems and Bugs”