Page 1 of 1

Can't add a stop to a train for a couple ticks after setting another train to manual mode

Posted: Mon Jun 05, 2023 6:41 am
by Wiwiweb
1-1) Load the provided save file with 2 locomotives

1-2) Run this console script, which sets the left locomotive to manual mode every tick:

Code: Select all

/c
local surface = game.surfaces.nauvis
local train = surface.find_entity("locomotive", {-5, -4.43}).train
script.on_nth_tick(1, function()
  train.manual_mode = true
end)
1-3) Open the right locomotive and try to add a stop with the "+ Add station" and then clicking the name of a station

1-4) Clicking the name of a station does nothing and the list of names does not close


2) Reload the provided save file, modify the script to run every 4 ticks. Same result.

3) Reload the provided save file, modify the script to run every 8 ticks. This time, it is successful about half of the time. The other half of the time does nothing just like in the previous cases.

Re: Can't add a stop to a train for a couple ticks after setting another train to manual mode

Posted: Mon Jun 05, 2023 8:22 am
by Klonan
Looks like its already fixed in 1.2 (with all the GUI refactoring and general cleanup)