Page 1 of 1

[Rseding91] [2.0.45] LuaSchedule::set_records() on a schedule belonging to a group sets all trains in group to automatic

Posted: Mon Apr 14, 2025 9:45 pm
by BurninSun
Using get_schedule().set_records(...) [or get_schedule().add_record(...)] on a train that is in a group causes all other trains in that group to be set to automatic mode.

Create 2 trains.
Set both trains to same group.
With one train selected run:

Code: Select all

/c game.player.selected.train.get_schedule().set_records({{station=""}})
Note the other train is now in automatic driving mode.

Re: [Rseding91] [2.0.45] LuaSchedule::set_records() on a schedule belonging to a group sets all trains in group to autom

Posted: Tue Apr 15, 2025 1:20 pm
by Rseding91
Thanks for the report. This seems to be a bug with the train group system - not specific to the LuaSchedule (you can reproduce it with any trains in manual mode when editing the group). It's now fixed for the next release.