The clearing of the interrupts is a limitation of the current factorio API. I put https://mods.factorio.com/mod/auto-train-refuel together specifically to have automatic refueling with LTN.
The clearing of the interrupts is a limitation of the current factorio API. I put https://mods.factorio.com/mod/auto-train-refuel together specifically to have automatic refueling with LTN.
-- train.schedule = schedule
if (not depot_clean_interuptions) then
tools.setTrainScheduleWithPreserveInterrupts(train, schedule)
else
train.schedule = schedule
end
The interrupt mechanism automatically refuels. I rewrote it to 2.0, which should now be a stable version: https://mods.factorio.com/mod/LTN-GasStation
There are still those two, I don't have time to rewrite them. Let's talk about them when I have time.
The train construction site is not so easy to write about.
LTN cleaning should be easy to write.
Great that there is a solution for everyone that wants to keep the interrupts. I looked into the code how it is done and I decided to wait for the developers to add the necessary APIs. :-)
2.0.36 (and 2.0.37) were just released that add the necessary APIs. I will make some changes that allow LTN trains to retain existing interrupts. As to add new interrupts / manage by LTN, this may be relegated to a future post-LTN mod.
When the train returns to the warehouse with the remaining goods? Is there any good way? You can just let it go to the designated location. I don't want to upgrade the mod that clears the goods to 2.0.