Page 1 of 1

How to filter chest slots with circuit networks?

Posted: Thu Mar 24, 2016 1:54 pm
by DailyFrankPeter
Hi,

I find the circuit system a bit... mystifying. A good tutorial mission for them would be nice.

In the meantime, how would I achieve filtering slots - as can be done for the bottom bar and (as I understand) also for rail carriages - but with a smart instrter, a chest and wires? I want it to do this, in pseudocode:

for each material in [advanced_circuit, smart_inserter, battery, steel]
{
if material count < stack size for material:
{
keep loading material
}}

or at least:

everything = [advanced_circuit, smart_inserter, battery, steel]
if (batteries_count == 0):
{
keep loading batteries
stop loading everything but batteries
} else
{
keep loading everything
}

Now, how many smart insterters, wires, combinators would I need for that? And what kind of combinators? Can each only take 1 material into account? Can 1 smart inserter take a logical AND of 4 different booleans, one from each combinator? Or is there a combinator for this as well?