Page 1 of 1

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

Posted: Fri Apr 19, 2019 11:53 am
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.

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

Posted: Mon May 06, 2019 3:03 pm
by kovarex
Thanks for the report, fixed for the next version.