[Solved] Balance chests BETWEEN them

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
coolfarmer
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Jun 10, 2019 10:16 pm
Contact:

[Solved] Balance chests BETWEEN them

Post by coolfarmer »

Is it possible with circuit network to balance chests BETWEEN them?

Image

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? :mrgreen:
Last edited by coolfarmer on Fri Jun 21, 2019 1:02 am, edited 2 times in total.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Balance chests BETWEEN them

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

coolfarmer
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Jun 10, 2019 10:16 pm
Contact:

Re: Balance chests BETWEEN them

Post by coolfarmer »

ALLELUIA! Thanks mate it work very nicely! :D

slippycheeze
Filter Inserter
Filter Inserter
Posts: 587
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: Balance chests BETWEEN them

Post 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. :)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [Solved] Balance chests BETWEEN them

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

Post Reply

Return to “Gameplay Help”