LTN - Logistic Train Network

by Optera

Adds new train stops forming a highly configurable, fully automated logistic network.

Content
8 days ago
0.14 - 2.1
289K
Trains Circuit network

i Feature request: apply ltn-locked-slots to fluid wagons

5 days ago
(updated 5 days ago)

We patched request_processor.lua:146 locally and it does work — with 4 × 75 000
wagons and ltn-locked-slots = 2000, the shipment drops from 300 000 to 292 000.
But the wagons still fill up completely. LTN releases the train when the wait
condition is met, and the train still needs a few seconds to clear the station —
the pumps keep filling during that time. How much gets pumped depends on each
station's pump throughput, so a fixed per-wagon reservation can't cover it.
The shipment size isn't the bottleneck, so please close this. If it is ever
revisited, it has to be handled on the loading side, by stopping the pumps.
Thanks for 3.5.3.

Feature request: apply ltn-locked-slots to fluid wagons
- Mod: LogisticTrainNetwork 3.5.2
- Factorio: 2.1.24
- Type: Feature request
What we need
ltn-locked-slots currently works on item wagons only. Fluid wagons ignore it
completely.
Please make it work for fluid wagons too: set a value on the stop, and that
amount is subtracted from the usable capacity of each fluid wagon.
Unit: fluid units per wagon.
Example — 4 × mk04-fluid-wagon (75 000 each, 300 000 total), signal set to 2000:
before
after
shipment size per train
300 000
292 000
per wagon
75 000 (full)
73 000 (2 000 free)
A request smaller than 292 000 is still delivered as-is — only the ceiling
changes, partial loads are unaffected.
What it is for
When a fluid wagon fills to 100 %, the pump and the pipe segment between pump and
wagon stay full. That leftover fluid
- skews the delivered amount on the next run, and
- contaminates the line if the next wagon carries a different fluid.
Leaving a small fixed amount of free space per wagon lets the pump push the pipe
contents into the wagon before LTN releases the train.
Item wagons already have locked slots for exactly this reason — preventing a
100 % full wagon. Fluid wagons need the same control, and right now there is no
way to express it: circuit-side clamping limits the total request (and therefore
the number of trains in transit), while lowering the wagon prototype capacity
also shrinks the physical tank, so the wagon still ends up full.

New response