[0.12.22] [Hanziq] Unexpected train_changed_state event
Posted: Sat Feb 20, 2016 9:16 pm
When a train is stopped at a red signal it triggers a state change every 300 ticks (repathing maybe?)

Command used:
Reproduce: Build the above setup, train on the right is in automode, trying to go to the station. It's state changes between "on_the_path" (0) and "wait_signal" (5)
Expected behaviour: No event triggered at all.
I used Testmode and Color coding as mods, doubt it makes any difference.

Command used:
Code: Select all
/c script.on_event(defines.events.on_train_changed_state, function(event) game.players[1].print(game.tick.. " "..event.train.state) end)
Expected behaviour: No event triggered at all.
I used Testmode and Color coding as mods, doubt it makes any difference.