Page 1 of 1
[Solved] Balance chests BETWEEN them
Posted: Thu Jun 20, 2019 11:33 pm
by coolfarmer
Is it possible with circuit network to balance chests BETWEEN them?
Warehouse A : 100 woods
Warehouse B : 0 wood
Warehouse C : 0 wood
Warehouse D : 0 wood
I want the inserters (between each warehouse) to auto-balance woods in warehouse B, C and D, then stop.
So at the end we have ~25 woods in each (no necessary to be EXACTLY 25).
Is it possible?

Re: Balance chests BETWEEN them
Posted: Thu Jun 20, 2019 11:45 pm
by DaveMcW
Arithmetic combinator
Input: Red wire from all warehouses
Output: Red wire to all inserters
Formula: Each / -4 -> Each
Inserter
Input: Red wire from arithmetic combinator, green wire from warehouse
Condition: Wood < -4
If you end up with the last piece of wood cycling around, change the inserter condition to something more negative.
Re: Balance chests BETWEEN them
Posted: Fri Jun 21, 2019 1:01 am
by coolfarmer
ALLELUIA! Thanks mate it work very nicely!

Re: Balance chests BETWEEN them
Posted: Fri Jun 21, 2019 10:40 pm
by slippycheeze
DaveMcW wrote: Thu Jun 20, 2019 11:45 pm
If you end up with the last piece of wood cycling around, change the inserter condition to something more negative.
As a new player, can you tell me why "negative" here? I'm hoping this helps me understand why a design controlling an inserter based on crate content didn't work out for me.

Re: [Solved] Balance chests BETWEEN them
Posted: Fri Jun 21, 2019 10:48 pm
by DaveMcW
Negative numbers represent demand (in this case, the average of 4 warehouses). Positive numbers represent supply (in this case, 1 warehouse).
Having a negative target means you accept supply being a bit less than demand.