How to filter chest slots with circuit networks?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
DailyFrankPeter
Inserter
Inserter
Posts: 27
Joined: Tue Mar 08, 2016 4:26 pm
Contact:

How to filter chest slots with circuit networks?

Post 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?

Post Reply

Return to “Gameplay Help”