old LTN discussion thread
Moderator: Optera
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
Hi Ryn and I are playing a map together. What Ryn wanted to say is this:
We read the content of the logistic network from a roboport. Then we know how much iron ore is on the whole network. Lets say it is 100k for the moment and falling. We want to start a logistic train to fetch - lets say 10k more ore if the global iron ore reading from the roboport falls below 50k. How do we have to wire and what is to do with LTN? Thanks so far.
We read the content of the logistic network from a roboport. Then we know how much iron ore is on the whole network. Lets say it is 100k for the moment and falling. We want to start a logistic train to fetch - lets say 10k more ore if the global iron ore reading from the roboport falls below 50k. How do we have to wire and what is to do with LTN? Thanks so far.
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
Please check the blueprints and demo from the first post.ryder1977 wrote:Hi Ryn and I are playing a map together. What Ryn wanted to say is this:
We read the content of the logistic network from a roboport. Then we know how much iron ore is on the whole network. Lets say it is 100k for the moment and falling. We want to start a logistic train to fetch - lets say 10k more ore if the global iron ore reading from the roboport falls below 50k. How do we have to wire and what is to do with LTN? Thanks so far.
My Mods: mods.factorio.com
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
I'm sorry. Your Demo wont load due to an error in control.lua:73 of the ceative mode and it is really hard to understand your instructions if english isn't your mother language
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
The LTN train stop has a light entity and a yellow combinator entity. The Yellow combinator produces output signals that are provided by the train stopped on that station, it'll show the ammount of locomotives, the ammount of cargo wagons and the contents of the train. The Light entity is your input signal, you input negative signals to the lamp via green wire or red wire, lets say if you supply a signal of -3000 iron ore, the train stop will check if there is any train waiting on the depot if there is it'll create a work order based on the cargo wagon limit of the train, for this example lets assume you have 1 cargo wagon on your train so it can store only 2000 units of iron ore. That is the ammount of iron ore that will be in the work order, you'll see something like this message showing on chat:ryder1977 wrote:Hi Ryn and I are playing a map together. What Ryn wanted to say is this:
We read the content of the logistic network from a roboport. Then we know how much iron ore is on the whole network. Lets say it is 100k for the moment and falling. We want to start a logistic train to fetch - lets say 10k more ore if the global iron ore reading from the roboport falls below 50k. How do we have to wire and what is to do with LTN? Thanks so far.
Code: Select all
[LTN] Creating Delivery from Iron Outpost to Base Dropoff with 2000 units of Iron Ore
I recommend reading this post I did a few months ago, it still works as the conditional loading logic is the same: viewtopic.php?f=94&t=36976&hilit=mobius ... 80#p272209
This one also explains a little more the same thing: viewtopic.php?f=94&t=36976&hilit=mobius ... 00#p273248
Only thing different on those posts are the "min delivery size signal" it was replaced by "Request threshold signal".
If you still having issues programming your train stops, feel free to ask.
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
I'm going to insert some corrections/improvements here.
composition as binary signal with lsb at the stop, not the number of locomotives/wagons.
expected content of the train after un-/loading is done. The current inventory of a train is outputted from the stop itself.
Use Locked Slots per Wagon to prevent inserters getting stuck holding items the couldn't insert.
Odhrean made a graphic displaying how LTN will react to different thresholds here: viewtopic.php?f=94&t=36976&hilit=mobius ... 40#p285115
Odhrean sent me an 100% correct, up to date diagram to include in the first post.
Output consists of:Mobius1 wrote:The Yellow combinator produces output signals that are provided by the train stopped on that station, it'll show the ammount of locomotives, the ammount of cargo wagons and the contents of the train.
composition as binary signal with lsb at the stop, not the number of locomotives/wagons.
expected content of the train after un-/loading is done. The current inventory of a train is outputted from the stop itself.
I recommend reading this post I did a few months ago, it still works as the conditional loading logic is the same: viewtopic.php?f=94&t=36976&hilit=mobius ... 80#p272209
Can be done with only 1 arithmetic combinator, see the blueprints i provided in first post.1- Red wire from yellow combinator to an arithmetic combinator(1) with the signal "Each / <number of chests> | Each"
2- Red wire from the LTN station to another arithmetic combinator(2) with the signal "Each * -1 | Each"
3- Green Wire from the output of combinator (2) to the input of combinator (1)
With logistic loading system:
4- Red wire from the output of combinator (1) to each requester chest with the setting "set requests"
Filter Inserter in "set filter" mode are more secure and will work for multiple items from a single chest.With regular chest loading system:
4- Red wire from the output of combinator (1) to each loader inserter with the signal "Anything > 0"
Use Locked Slots per Wagon to prevent inserters getting stuck holding items the couldn't insert.
To fine tune delivery sizes you also need to set provide threshold at providers.This one also explains a little more the same thing: viewtopic.php?f=94&t=36976&hilit=mobius ... 00#p273248
Only thing different on those posts are the "min delivery size signal" it was replaced by "Request threshold signal".
Odhrean sent me an 100% correct, up to date diagram to include in the first post.
My Mods: mods.factorio.com
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
I postet a Bug at the official forum but Rseding91 said it is a Mod-Bug.
It happend only recently in Version 0.15.28 in two of my saves after I set the Requester Threshold in an algorithgmic Combinator Output....
It happend only recently in Version 0.15.28 in two of my saves after I set the Requester Threshold in an algorithgmic Combinator Output....
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
Would it be possible to add train lines?
My idea was that each station can be assigned a line ID, including depots. Trains for IDed depots would only serve runs with the matching ID, or from a no ID stop to one with an ID. It would give the player a bit more control over trains if this is desired.
This would allow to restrict fluid trains to the proper fluids, or keep certain trains always ready for supply runs.
My idea was that each station can be assigned a line ID, including depots. Trains for IDed depots would only serve runs with the matching ID, or from a no ID stop to one with an ID. It would give the player a bit more control over trains if this is desired.
This would allow to restrict fluid trains to the proper fluids, or keep certain trains always ready for supply runs.
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
Probably you removed Nixie Tubes.Odhrean wrote:I postet a Bug at the official forum but Rseding91 said it is a Mod-Bug.
It happend only recently in Version 0.15.28 in two of my saves after I set the Requester Threshold in an algorithgmic Combinator Output....
That's practically the description of Choumiko's Smarter Trains.whitecold wrote:Would it be possible to add train lines?
My idea was that each station can be assigned a line ID, including depots. Trains for IDed depots would only serve runs with the matching ID, or from a no ID stop to one with an ID. It would give the player a bit more control over trains if this is desired.
This would allow to restrict fluid trains to the proper fluids, or keep certain trains always ready for supply runs.
My Mods: mods.factorio.com
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.4
Thats exactly what i did.Optera wrote:Probably you removed Nixie Tubes.Odhrean wrote:I postet a Bug at the official forum but Rseding91 said it is a Mod-Bug.
It happend only recently in Version 0.15.28 in two of my saves after I set the Requester Threshold in an algorithgmic Combinator Output....
Thats the cause for this bug? How can it tappen?
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
Released 1.3.5
- fixed potential nil reference during stop update viewtopic.php?f=94&t=36976&start=820#p293588
- changed provider prioritisation making deliveries merge more reliably (#trains > provider priority > #existing deliveries from provider > amount)
Small change to provider sorting with potential big changes depending on the network. Should fix most of issues like this: viewtopic.php?f=94&t=36976&start=820#p293343
- removed "log level" and "log output" settings
- added "message level" for console messages only (no level 4: debug)
- added "write debug logfile" checkbox for debug log generation into factorio-current.log
I wanted to be able to generate logfiles for debugging while keeping console message at notification level.
Generating debug logs that are useful to me is a now a simple checkbox and won't spam in game console.
- fixed potential nil reference during stop update viewtopic.php?f=94&t=36976&start=820#p293588
- changed provider prioritisation making deliveries merge more reliably (#trains > provider priority > #existing deliveries from provider > amount)
Small change to provider sorting with potential big changes depending on the network. Should fix most of issues like this: viewtopic.php?f=94&t=36976&start=820#p293343
- removed "log level" and "log output" settings
- added "message level" for console messages only (no level 4: debug)
- added "write debug logfile" checkbox for debug log generation into factorio-current.log
I wanted to be able to generate logfiles for debugging while keeping console message at notification level.
Generating debug logs that are useful to me is a now a simple checkbox and won't spam in game console.
My Mods: mods.factorio.com
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
Hi there,
i really like to rework my train network with this mod
But i don't get how to let provider stations load only the requested amount.
I connected the station output directly to the filter inserters and that way the train always gets loaded until it's full.
I guess i need to put a combinator in between but i don't really get how...
Can you give me an example?
i really like to rework my train network with this mod
But i don't get how to let provider stations load only the requested amount.
I connected the station output directly to the filter inserters and that way the train always gets loaded until it's full.
I guess i need to put a combinator in between but i don't really get how...
Can you give me an example?
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
Please read the manual in the first post.bambusa wrote:Hi there,
i really like to rework my train network with this mod
But i don't get how to let provider stations load only the requested amount.
I connected the station output directly to the filter inserters and that way the train always gets loaded until it's full.
I guess i need to put a combinator in between but i don't really get how...
Can you give me an example?
My Mods: mods.factorio.com
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
I did, but it is not really explained how to connect the train content with the combinator to the inserters...Optera wrote: Please read the manual in the first post.
I got it now, but it is not that intuitive at first
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
Hi , thanks for all the tips ... i have my "problem" fixed. But i have to use 2 combinators per ore to be delivered ... one compare combinator and one algorith ... the compre combinator just looks how many is there and if the amount is less then what it should be it sends a signal to algorithm combinator , whis one is at ore *-1 as told ... to create a delivery. Now my problerm is that even when just 100 ore is missing , the mod sets 3 to 5 trains with each 24k of that ore to get the delivered item.... any idea whats wrong ?
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
You say the mod creates uo to 5 Trains with 24k delivery size each. I suppose you set the Request-Item Amount to -120k. The mod creates deliveries until the Request-Amount is fullfilled, trains underway count toward this. It is important to connect the buffer chests to the LTN input to substract whats already IN the Station from the Request-Amount. I think you forgot this and just direct the full Request-Amount to the Station.RynTyrell wrote:Hi , thanks for all the tips ... i have my "problem" fixed. But i have to use 2 combinators per ore to be delivered ... one compare combinator and one algorith ... the compre combinator just looks how many is there and if the amount is less then what it should be it sends a signal to algorithm combinator , whis one is at ore *-1 as told ... to create a delivery. Now my problerm is that even when just 100 ore is missing , the mod sets 3 to 5 trains with each 24k of that ore to get the delivered item.... any idea whats wrong ?
I made something similar with my Outpost Stations. I request supplies (Ammo, Repair Kit, Bots etc) and let the Request-Amount to the LTN Input only if an item type is too short. But I only made this with Combinators because I want LTN to ceate merged Deliveries of all Items that are missing, trigger is one items that is under the threshold. In general you don't need combinators if you just want LTN create deliveries if you are too short.
Look at this graphic and play with the Request-Threshold signal.
Only Request Items if your fill-Level is below the Request-Threshold. This is an inbuilt Decider combinator
EDIT: ... thinking more about it I think you want create LTN Stations with multiple Items and have a "Request-Threshold" for each distinct item. Then you must indeed use combinators and let the negative Request-Amount plus all Items already in the Station as Request-Amount to the LTN Input when your Threshold in the Decider Combinator for this Item is reached.
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
I just have one Station for my trains where i want the different ore unloaded. Its set up with active provider chests so that my logistic robosOdhrean wrote:EDIT: ... thinking more about it I think you want create LTN Stations with multiple Items and have a "Request-Threshold" for each distinct item. Then you must indeed use combinators and let the negative Request-Amount plus all Items already in the Station as Request-Amount to the LTN Input when your Threshold in the Decider Combinator for this Item is reached.
can unload and put them in my warehouses. Maybe i should make a screenshot of my "creation" ^^
Each row of combinators is for one ore.Decider has as example Iron Ore < 100000 Output Iron Ore with entrycounter . There it goes onto the arithmic with Iron ore counter from decider *-1 output is iron ore. Then it goes onto the constant which is at max length 3 of trains an minimum too and has a minimum requester amount of 6k
Re: [Mod 0.14/0.15] Logistic Train Network 1.3.5
As I guessed you don't connect the buffer chests to the input lamp. If you direct the iron signal * -1 to the LTN Input without adding all iron's which are already in the Station you always request the whole amount, which is 100000 in your example. (Request-Amount -100000 Iron Ore). Connect the Buffer Chests (your Warehouse Storage from the mod) and add the Iron ore Count to this signal.RynTyrell wrote:Each row of combinators is for one ore.Decider has as example Iron Ore < 100000 Output Iron Ore with entrycounter . There it goes onto the arithmic with Iron ore counter from decider *-1 output is iron ore. Then it goes onto the constant which is at max length 3 of trains an minimum too and has a minimum requester amount of 6k
I advise you look into the tutorial save game in the OP.
EDIT: Your Problem will be solved if you connect all Warehouse-Chests from the Station together with "Read Content" and connect this to the LTN Input directly (not via any combinator). To prevent the Station from providing the items to the LTN Network when there is no negative Request-Signal add a "Provider-Threshold: 1M" (or higher if you have more then 1M Items.... ) Signal via Constant Combinator to the LTN Input.
Re: [Mod 0.14/0.15] Logistic Train Network 1.4.0
Very good - this "fill one item up" was really bothering me, as was not dispatching multiple traing in one run Grats - I personalyl think this mod is so precious it should be folded into the main game. Backbone of my base
Re: [Mod 0.14/0.15] Logistic Train Network 1.4.1
I created on request of Optera a new subboard. This is definitely one of the bigger mods. Moved this thread into that board.
Optera: If there are problems with the rights, just PM.
Have fun.
Optera: If there are problems with the rights, just PM.
Have fun.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...