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

This subforum contains all the issues which we already resolved.
BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Fri Mar 16, 2018 4:54 am
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15465
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”