[Rseding91] [2.0.44] Trains set_records doesn't respect created_by_interrupt

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

[Rseding91] [2.0.44] Trains set_records doesn't respect created_by_interrupt

Post by BurninSun »

Place locomotive and hop in.

Code: Select all

/c game.player.physical_vehicle.train.get_schedule().set_records({{ station="", created_by_interrupt=true}})

Code: Select all

/c game.print(serpent.block(game.player.physical_vehicle.train.get_schedule().get_records()))
Note the output has created_by_interrupt = false even though set_records had it set to true.

Specifically this breaks copying train schedules via

Code: Select all

train1.get_schedule().set_records(train2.get_schedule().get_records())
Rseding91
Factorio Staff
Factorio Staff
Posts: 15325
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.44] Trains set_records doesn't respect created_by_interrupt

Post by Rseding91 »

Thanks for the report. This is 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”