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

Post Reply
User avatar
Wiwiweb
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat May 08, 2021 2:36 am
Contact:

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

Post 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.
Attachments
train-issue-repro.zip
(1.21 MiB) Downloaded 32 times

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

Looks like its already fixed in 1.2 (with all the GUI refactoring and general cleanup)

Post Reply

Return to “Fixed for 2.0”