Automation of train loading
-
- Manual Inserter
- Posts: 1
- Joined: Fri Dec 06, 2024 11:04 pm
- Contact:
Automation of train loading
Hi all. I'm interested in this moment. How to make a logistics system so that a certain number of items are loaded into a carriage? That is, it is conditional that two types of resources be loaded into the same car, but in different quantities. For example: I need a wagon to be loaded with iron plates, but at the same time, 500 copper plates should be loaded into the same wagon. No more, no less. How to implement this?
-
- Long Handed Inserter
- Posts: 79
- Joined: Fri Nov 03, 2017 3:53 pm
- Contact:
Re: Automation of train loading
You can set a filter on individual cargo wagon inventory slots. So make 50% iron and 50% copper, or 30%/70%, whatever you like. Do it by middle clicking the slot.
Re: Automation of train loading
Another alternative: you could do it with some circuitry as long as you don't load one item into several carriages.
Read out the content of the train and substract that from a constant value you defined as a target value. Use the result as both the stack size and the activation condition of the inserter putting the specific item in the carriage.
Note that in case you have several inserters loading the same item, you might get a little bit more as inserters which have already picked something up will finish their swing.
The advantage of that method is that you don't need a specificly prepared train for that like HadesSupreme suggested. It is trickier to implement though with some more possible limitations and potential problems.
Read out the content of the train and substract that from a constant value you defined as a target value. Use the result as both the stack size and the activation condition of the inserter putting the specific item in the carriage.
Note that in case you have several inserters loading the same item, you might get a little bit more as inserters which have already picked something up will finish their swing.
The advantage of that method is that you don't need a specificly prepared train for that like HadesSupreme suggested. It is trickier to implement though with some more possible limitations and potential problems.