LTN - Logistic Train Network

by Optera

Adds logistic-train-stops acting as anchor points for building a fully automated, train logistic network. It can handle all possible train configuration. Just send all trains to depots and LTN will pick the best suitable train for a job. LTN cuts the amount of rolling stock required to run a megabase down to 30% or less. With cargo ships installed also adds a logistic port for ships.

Content
14 days ago
0.14 - 2.0
257K
Trains Circuit network

g 列车自动加油停止

a month ago

到车库时候,中断机制,被清除。没办法自动加油??可以加上这两个功能不?
这个MOD想法很好: Automatic Train Fuel Stop
https://mods.factorio.com/mod/FuelTrainStop
还有这个MOD: LTN Cleanup
https://mods.factorio.com/mod/ltn-cleanup

a month ago

[My chinese is unfortunately not very good]

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.

a month ago
(updated a month ago)

[My chinese is unfortunately not very good]

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.

When arriving at the garage, the interrupt mechanism is cleared. Can't I refuel automatically?? Can these two functions be added?
This MOD idea is great: Automatic Train Fuel Stop
https://mods.factorio.com/mod/FuelTrainStop
And this MOD: LTN Cleanup
https://mods.factorio.com/mod/ltn-cleanup
And this MOD, together with these three, the LTN is complete:Train construction site
https://mods.factorio.com/mod/trainConstructionSite

a month ago

I downloaded that MOD, website name: Refuel Station 。 But the train cannot recognize (temporary station).

a month ago
(updated a month ago)

0.0

a month ago

Just add option to not cleanup interuptions in depot ;)

a month ago

This is currently not possible due to API limitations.

a month ago
(updated a month ago)

It's possible with "hack", mentioned on forum https://forums.factorio.com/viewtopic.php?f=28&t=116116
https://github.com/dvilker/FactorioMods/blob/main/RailLogisticsDispatcher/script/utils.lua#L488

I've test it, and it works.
train-events.lua

            -- train.schedule = schedule
            if (not depot_clean_interuptions) then
                tools.setTrainScheduleWithPreserveInterrupts(train, schedule)
            else
                train.schedule = schedule
            end
a month ago

Yes, creating dozens of hidden surfaces (#trains = #surfaces) is not the best solution, but it's better than nothing. =)

a month ago
(updated a month ago)

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.

a month ago

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. :-)

a month ago

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.

27 days ago
(updated 27 days ago)

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.

There are also goods

New response