Page 1 of 1
Automation of train loading
Posted: Sat Dec 07, 2024 9:42 am
by Strannik324
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?
Re: Automation of train loading
Posted: Sat Dec 07, 2024 7:22 pm
by HadesSupreme
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
Posted: Sun Dec 08, 2024 7:10 pm
by Premu
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.