[2.0.11] Interrupt reseted when train schedule change by API

This subforum contains all the issues which we already resolved.
Helfima
Fast Inserter
Fast Inserter
Posts: 201
Joined: Tue Jun 28, 2016 11:40 am
Contact:

[2.0.11] Interrupt reseted when train schedule change by API

Post 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
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5404
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post 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
Post Reply

Return to “Resolved Problems and Bugs”