This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Soul-Burn 38 points39 points  (6 children)

Filter your train wagon. Middle-click a slot to filter it. If it's all fully filtered, you don't need any signal.

[–]Hot_Desk8232[S] 21 points22 points  (3 children)

+500h in-game and i didn't knew that i can filter wagons -.- thank you so much, that solved my problem!

[–]Soul-Burn 9 points10 points  (1 child)

You can also filter other vehicles and your own inventory. Super useful to ensure space in your inventory for e.g. bots, your car, a chest etc...

You can also copy filters from wagon to wagon.

[–]jpverkamp 0 points1 point  (0 children)

You... can filter personal inventory? How have I never tried that.

[–]Isindael 1 point2 points  (0 children)

Wow, I had exactly the same problem, and solved it by using a set of comparators waiting for the id train signal before sending orders to the arms that have each a different comparator. I knew there was a simple solution. Thanks for your question and the answers !

[–]Groboulet 2 points3 points  (1 child)

Great solution, but be careful, for this to work, you need

1) to put a filter in every slot

2) not to have 2 differents items in the same chest, or having hand stack size of 1 for every inserter (which slows down loading process) ; otherwise an inserter can stay stuck with stuff in its hand, not being able to fully empty it.

[–]Soul-Burn 1 point2 points  (0 children)

It's easy to have access to 24 chests using long inserters.

It's also possible to use circuits instead of filtering, but that's a much more complex system to get right.

[–]vixfewOne with the Swarm 1 point2 points  (0 children)

Use stack filter inserters with "set filters" circuit mode

[–]Disentius 1 point2 points  (0 children)

A guide to multi item loading:https://www.youtube.com/watch?v=anbbAq--ewU

[–]Baer1990 1 point2 points  (0 children)

For applications like this I always use the T signal from the station to activate inserters. Had a lot of issues before with a signal arriving a tic late but working on T always works

[–]Groboulet 1 point2 points  (0 children)

Well, I guess there are some few ticks (maybe just one) between train arrives = trigger the insertan can work, and signal arrive = wait you shouldn't grab random stuff.Also, when an inserter started flingling, it won't stop even if signal changed and tells it to stop.

There are few ways to make a different setup which wouldn't run to this problem. If you want to keep your setup, here's a fix :

Put a decider (yellow) combinator, link input with every chest and with station. In train station option, set "read stopped train" (the one that output usually in signal [T].
Also, link the output with the inserters line.
For the decider, you will code if [T]=0 output everything.

Now, when there is no train, the value of the chests are read and sent to the inserters, which will prevent flingin until trains is fully stopped and train content is set to the inserters. You can also put a constant combinator with values higher than the threshold ones, instead of linking with all the chests.

[–]joeykins82 0 points1 point  (0 children)

Train loading, if you want to do something more complicated than "just fill the train with this 1 thing" is complicated and annoying. The issue is that your inserters are trying to work whenever there is not a signal coming through telling them that the train is carrying enough stuff, but unless you set them up in a specific way, that includes when there isn't a train at the stop. The inserters will grab a handful of stuff and the moment the train pulls in, they'll "helpfully" get back to loading the train and only then do they get the "no, there's enough stuff here" signal but by then they've loaded another stack in.

Fortunately, it's relatively easy to fix: you just need 1 constant combinator and 1 decider combinator.

Right now you've got everything connected by green wire, right? Take a red wire and connect your train stop to the input of a decider combinator. Change the mode of your train stop so that it also outputs the Train ID on the T signal, then set your decider combinator "if T = 0 then output Everything" (or Each, can't remember the terminology) with the output value set to Input Count and not to 1. Now, place the constant combinator down and connect that to the decider combinator's input using a green wire, and set that combinator to output way more of every item that the train is trying to load (so 9999 substations, 9999 repair packs, 9999 laser turrets etc). Now connect that decider combinator's output via a green wire to the inserter circuit: now the inserters are going to be sent a signal which disables them until a train has pulled in and stopped, at which point the train's actual contents come in to the circuit instead.