I am recently new to LTN but am attempting a modular rail build. I've spent a couple of days searching and attempting to find videos but I can't seem to find the solution to my problem. I am pretty sure its related to how I am wiring things up. The text that LTN creates look accurate I.E. Deliver x amount from station y and deliver it to station z. The problem I see is that the train stays too long at the loading station and collect almost twice what was needed. So i believe my problem is at the provider station. I downloaded the LTN Demo map just I am still pretty lost on the circuit network except for basic designs.
Any help would be much appreciated.
Loading/Delieverling too much...
Moderator: Optera
-
- Filter Inserter
- Posts: 549
- Joined: Fri Jan 29, 2016 2:48 am
- Contact:
Re: Loading/Delieverling too much...
This is "One of Those Things that is Hard in Factorio." It's hard because:
So, you click on the cargo wagon to open up the interface, click on the red "X" and then drag out the desired number of slots to restrict them from being used (if we are going for ten slots, that would be everything but the first row), and then click again to finalize your "order". Now you can just set your train to leave "when full" and it will interpret that first row of item slots filling up as "full."
For a non-multiple of the stack size, or a dynamic size that comes from the circuit network, or a bunch of different types of items, or something really crazy like, a dynamically determined bundle of quantities of items taken from the circuit network at the moment the train stops, there are also solutions, but they do get harder and harder to accomplish as your needs become more complex!
- Trains have no connection to the logistic network. They will stop and wait until whatever condition you set but nowhere can you set "until you have this list of things"
- Stack inserters, and even regular inserters, like to operate in multiples of items.
- Even if you set the stack size of your inserters to one manually, you probably have multiple inserters putting stuff in your train. Therefore, they can all stuff things in at once and easily go over the amount you wanted to go in
- It's a pain in the caboose to go into a train-car and restrict all the train-car inventory boxes one-by-one. Also, even if you do this, it's a static configuration that will only do one thing. As soon as you want a dynamic setup that can do multiple things, it's a non-solution.
- Combinators are hard
So, you click on the cargo wagon to open up the interface, click on the red "X" and then drag out the desired number of slots to restrict them from being used (if we are going for ten slots, that would be everything but the first row), and then click again to finalize your "order". Now you can just set your train to leave "when full" and it will interpret that first row of item slots filling up as "full."
For a non-multiple of the stack size, or a dynamic size that comes from the circuit network, or a bunch of different types of items, or something really crazy like, a dynamically determined bundle of quantities of items taken from the circuit network at the moment the train stops, there are also solutions, but they do get harder and harder to accomplish as your needs become more complex!
Re: Loading/Delieverling too much...
golfmiketango wrote:Trains have no connection to the logistic network. They will stop and wait until whatever condition you set but nowhere can you set "until you have this list of things"
See schedules generated by LTN on how to set conditions for exact amounts of x.
LTN offers the locked slot per wagon signal. Set it to inserters * stacksize so LTN knows how much excess it can expect.Stack inserters, and even regular inserters, like to operate in multiples of items.
Even if you set the stack size of your inserters to one manually, you probably have multiple inserters putting stuff in your train. Therefore, they can all stuff things in at once and easily go over the amount you wanted to go in
Never lock slots or set filters. It breaks LTNs calculations.It's a pain in the caboose to go into a train-car and restrict all the train-car inventory boxes one-by-one. Also, even if you do this, it's a static configuration that will only do one thing. As soon as you want a dynamic setup that can do multiple things, it's a non-solution.
However, there are solutions that work. For your particular case, I get the impression you want 1000 plastic in each car. You don't need circuits for that, because the quantity you want happens to be a multiple of the item stack size. If I recall correctly, plastic stacks to 100 per inventory slot. So if you want to move 1000 plastic, you are in luck: that's 10 inventory slots. All you need to do is restrict the inventory of the car to 10 slots (or five, if I got it wrong and plastic stacks to 200). You can do that like shown in the picture (just pretend the cargo wagon is a big box, the interface is the same):
My Mods: mods.factorio.com
Re: Loading/Delieverling too much...
These are all vanilla topics that I believe I already know. My questions is specific to the LTN mod.golfmiketango wrote:This is "One of Those Things that is Hard in Factorio." It's hard because:
However, there are solutions that work. For your particular case, I get the impression you want 1000 plastic in each car. You don't need circuits for that, because the quantity you want happens to be a multiple of the item stack size. If I recall correctly, plastic stacks to 100 per inventory slot. So if you want to move 1000 plastic, you are in luck: that's 10 inventory slots. All you need to do is restrict the inventory of the car to 10 slots (or five, if I got it wrong and plastic stacks to 200). You can do that like shown in the picture (just pretend the cargo wagon is a big box, the interface is the same):
- Trains have no connection to the logistic network. They will stop and wait until whatever condition you set but nowhere can you set "until you have this list of things"
- Stack inserters, and even regular inserters, like to operate in multiples of items.
- Even if you set the stack size of your inserters to one manually, you probably have multiple inserters putting stuff in your train. Therefore, they can all stuff things in at once and easily go over the amount you wanted to go in
- It's a pain in the caboose to go into a train-car and restrict all the train-car inventory boxes one-by-one. Also, even if you do this, it's a static configuration that will only do one thing. As soon as you want a dynamic setup that can do multiple things, it's a non-solution.
- Combinators are hard
So, you click on the cargo wagon to open up the interface, click on the red "X" and then drag out the desired number of slots to restrict them from being used (if we are going for ten slots, that would be everything but the first row), and then click again to finalize your "order". Now you can just set your train to leave "when full" and it will interpret that first row of item slots filling up as "full."
For a non-multiple of the stack size, or a dynamic size that comes from the circuit network, or a bunch of different types of items, or something really crazy like, a dynamically determined bundle of quantities of items taken from the circuit network at the moment the train stops, there are also solutions, but they do get harder and harder to accomplish as your needs become more complex!
Re: Loading/Delieverling too much...
Sorry I forgot to answer your original question.Ghosted wrote:These are all vanilla topics that I believe I already know. My questions is specific to the LTN mod.
Your loading stations is using dumb inserter.
Use filter (stack) inserter wired up against a counter to load only requested amount as seen in demo map and design thread.
My Mods: mods.factorio.com
Re: Loading/Delieverling too much...
Thanks for the help, I believe I have it working now after some careful reverse engineering from the demo map. I now have a it working with stack filter inserters wired to the output of the station.Optera wrote:Sorry I forgot to answer your original question.Ghosted wrote:These are all vanilla topics that I believe I already know. My questions is specific to the LTN mod.
Your loading stations is using dumb inserter.
Use filter (stack) inserter wired up against a counter to load only requested amount as seen in demo map and design thread.
-
- Filter Inserter
- Posts: 549
- Joined: Fri Jan 29, 2016 2:48 am
- Contact:
Re: Loading/Delieverling too much...
Ah, my derp, I kinda completely missed that part, sorry for the noise.Ghosted wrote:These are all vanilla topics that I believe I already know. My questions is specific to the LTN mod.