Page 1 of 1

[2.0.11] Interrupt reseted when train schedule change by API

Posted: Sun Oct 27, 2024 10:10 pm
by Helfima
I have build a mod (https://mods.factorio.com/mod/TrainScheduleSignals) to build train schedule with the name of selected station.
My mod write LuaTrain.schedule, that reset the interrupt settings and we don't see interrupt in the API.
If when we write LuaTrain.schedule that don't reset interrupt would be appreciated

Re: [2.0.11] Interrupt reseted when train schedule change by API

Posted: Wed Feb 26, 2025 3:51 pm
by Klonan
Hello,

With the new schedule API it will be possible to work with interrupts without overwriting anything:
https://lua-api.factorio.com/latest/cla ... edule.html

The old API (Basic read + write) will be deprecated, as it lacks support for the schedule functions in 2.0