Smart Insert Circuit - Stopping at 1

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
HolyNessaDin
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 20, 2020 11:13 pm
Contact:

Smart Insert Circuit - Stopping at 1

Post by HolyNessaDin »

Hey All, the only references I have been able to find on this question are either not answered or OLD. Hoping y'all can help me out before my brain implodes.

Built a simple circuit - 48 chests connected to each other [green wire] and to the input of an arithmetic combinator. [Iron / -48]. Output of combinator connected to inserters [green wire]. Inserts set to [iron < 1]. Inserters connected to boxes [red wire]. My boxes are not filling evenly. The last 7 boxes are not filling beyond one stack from the inserter. Since I am using green inserters I get 10 ore in the box. After playing with manually moving ore in boxes, I have 27K ore total. 630 - 650 per box until I get to the last 7 in the chain.

What am I doing wrong?
HolyNessaDin
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 20, 2020 11:13 pm
Contact:

Re: Smart Insert Circuit - Stopping at 1

Post by HolyNessaDin »

Found It.... one inserter was missing a green wire. This is why I could not find answers when googling! Knew it was something stupid. 3 hrs later. LOL
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 884
Joined: Sun Mar 20, 2016 2:51 am
Contact:

Re: Smart Insert Circuit - Stopping at 1

Post by Impatient »

The conditions for this solution can be made more generic, so you can use one blueprint for all item types.

When you load from a belt into n boxes:

The calculation in the arithmetic is EACH/n = A (the average).
The condition in the inserters is EVERYTHING <= A
So only the inserters of the boxes with an ammount below (or equal to) the average will load.

When you load from n boxes onto a belt or wherever:
The calculation in the arithmetic is the same.
The condition in the inserters is EVERYTHING >= A
So only the inserters of boxes with an ammount above (or equal to) the average will load.

That way you can construct an even loading/unloading buffer that uses one arithmetic combinator and works for any type of item.
Post Reply

Return to “Gameplay Help”