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
7 days ago
0.14 - 2.1
285K
Trains Circuit network

b No train to transport with length between 1 and 100 found

7 months ago
(updated 7 months ago)

i keep getting
[LTN] No train to transport from [Train stop: Natalia Wydra] to [Train stop: Kotasienka] in networks Ox4 with length between 1 and 100 found in depot.

I have a train in the network with 2 locomotive and 1 cargo wagon at the depot
here is a blueprint of the setup i am trying to use
"
0eNrtW8mO4zYQ/ZWBzlIgUtTWQHJJbgFyCpDDYGDINu0WRpYciuppZ9D/HlKSd9p+1QvS00j3QRv1yKpXjyxJ5e/etOrkWpW19u6+e+WsqVvv7vN3ry2XdVHZc3Wxkt6dp4qy8p58r6zn8tG7Y09ffE/WutSlHO7oDzaTultNpTIN/O2drTb3Lu910EP43rppzV1NbcEf+4Yb7y56evLPMPgOo2qWZavLWWCx6qDVzTpoOr3u9Dkg/ynuIc3WjNdYpFVTTabyvngoG2UbtXJm27fH+8aGrXG+tygrLdXpWb1Z29E8lEp3hbVlOzxdB9tRBEW9Capm1qwaXT5I0+hv09aYZdrVjVr195mr60IV2o7H+7k/0VkKYuuFsT9O6G9WqGUTfCuWxgukDvlBhxHY4WsYJ8C+XmDYF/PviqroalSVtTOooptBNSvVrCv1xFyb7+5clKrVk72YLtk8tLBU6vuyXnpDH60urCnhiZW/2MtdK01XVWNjVKtOmlNF9a3YtBPb83DmzHRxzXSH0aM03QYrWcwnC9WsJj3G0Kmh1R5MLOBaznHT//QMV2auKIb+vV+b2nD86bemUfW0aT2HNfEOY+urwPhpWta9n86sEf/NvDCX60bTYpddjN2ENqvGLoyUhpG6MLIdRlkvytpcCmb3sr0inKT3+rb1pJVam0Bvh0BaNQ9y0tWDc03UlFquzKVFUbXy2Odjr3U3q2ShgkUnqwO/hUYqq2Zu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FijD+nRmg/wPyHLhFiLKLVCG3JzyFW3rZC6PdGF20p66/O8iDGwNpHPhQ/Cnfp9GGx8TWUMTW8hJJAKOlVjBTCGJf+SyAZrURyF+j2M8b/FZKkCkl2UPWMOTt8K2fvp+HzF/0EWwNbPWBce9Hiwwrta2oZ8wjh/pXAQYW2rIyNykxKspZquTHzsTFtUcykIzfhW0zfm3aLhVRmavlHDiUP45+zNw6NWYzw0ZP96eM3M/dZD3+OfO7HPv/ifzZTqdlhfmz27cbnYr9vZ4D+QPQH8XCQmptNAmzvthvfpK123258Y06/z+3+0IPd+FEy7Cd2f7jXbnwRDqNg9gYbesPRYX/jkSFpOIoPBtZvfTvJDEdp35KPR9kO09huPybZL3q7X4763oOJt95VccJzkedxxsNY2DnoX+r/eU0=
"

3 months ago

Yes. This is fixed in 2.7.0.

a month ago
(updated a month ago)

I am suddenly getting this error now, on LTN 2.8.1 Factorio 2.0.77. Only for a few certain stations though...

a month ago

do you have a save that I can look at?

a month ago
(updated a month ago)

I'm getting this error now on LTN 2.8.1, factorio 2.0.77. It is similarly only for a few stations. Notably, I am playing with Pyanodons, and I am getting the error only with one of the "hydrogen" pickup stations. (I also had the error with a "Tin (grade 1) station, but I think that one was an error on my part. I've uploaded a save to the following link: https://drive.google.com/file/d/1Ct0Dy23jQL7g53FhgwhFJIebT5OJfXqU/view?usp=drive_link

Hope it helps!

a month ago

Thanks. Will take a look.

a month ago

"You need access" - https://drive.google.com/file/d/1Ct0Dy23jQL7g53FhgwhFJIebT5OJfXqU/view?usp=drive_link

I guess you need to make this public.

a month ago

Thanks for sharing the map. I now have a rough idea what happens (and some more ideas on how to fix it).

Currently, when addressing a delivery, all potential providers are enumerated, sorted and then the "best fit provider" is chosen. This comes from the assumption that 'every train in every depot can go to every provider'. Now LTN selects a train from the pool of available trains and it does so by also checking the path length from the depot to the provider. In the past, this was a simple "straight line between the depot and provider", shortest distance calculation and then the delivery got scheduled. Now, LTN actually asks the game with LuaTrainManager#request_train_path and what happens is that there is no train that has a route to the chosen provider. In case of the "hydrogen", there are actually multiple stations providing it but the one that was chosen, there is no path (there are paths to all the other ones).

This complicates things. Basically, LTN needs to determine for all potential providers whether there is a train that can travel to it. So instead of "one requester -> one provider -> find pool of trains, select one", this is now "one requester, multiple providers, find for each provider a pool of trains that can travel, then choose a provider / train combination that is "best fit".

I have started poking at that but it will take a bit longer to actually work (and then I need to make sure that I don't break all the other things like reverse trains, Space Exploration travel through elevevator etc).

a month ago

You can actually validate this by clicking on the "Hydrogen Pickup" that is shown in the message, then renaming this stop to something else (so that it is unique) and then trying to send a train there. The stop shows up as red for me which means, trains can't actually go there.

The other issue that I see with the map (which may be intentional) that some of your stations don't have a network id set and the default network id is 0. I'm not sure whether this is how you turn stations on/off or just an oversight.

However the problem of "electing a stop that is inaccessible" is a problem with LTN.

a month ago

There is a chain signal on the wrong side of the tracks for the inaccessible hydrogen pickup.

New response