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
2 months ago
0.14 - 2.0
267K
Trains Circuit network

g 列车自动加油停止

7 months ago

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

7 months 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.

7 months ago
(updated 7 months 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

7 months ago

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

7 months ago
(updated 7 months ago)

0.0

6 months ago

Just add option to not cleanup interuptions in depot ;)

6 months ago

This is currently not possible due to API limitations.

6 months ago
(updated 6 months 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
6 months ago

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

6 months ago
(updated 6 months 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.

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

6 months 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.

6 months ago
(updated 6 months 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