Factorio

Factorio

View Stats:
This topic has been locked
pat May 16, 2018 @ 6:17am
Limiting an equal number of each item in a chest
I tried searching for this, but maybe I'm using the wrong terms.

I have two different items on a belt. I'd like to store some excess in a chest. I know how to limit the quantity in a chest by stacks, but is there a way to do it so that I have an equal number of each item? That is, I only want the chest to hold two stacks of each. I understand that I could simply use two chests - one for each item - but there isn't room for that.
< >
Showing 1-15 of 23 comments
brian_va May 16, 2018 @ 6:28am 
middle mouse click, select the items wanted. do that for as many slots as desired, then limit the chest to that size.
brian_va May 16, 2018 @ 6:29am 
using 1 inserter for this will end up in it grabbing 1 too many at some point and then stopping, and it wont grab the other item to fill the box. maybe limiting the stack size to 1 will work, but i dont think so.
pat May 16, 2018 @ 6:46am 
Originally posted by brian_va:
middle mouse click, select the items wanted. do that for as many slots as desired, then limit the chest to that size.
Sorry to be obtuse, but middle-mouse-click on *what*? I'm assuming you mean in the chest itself. I've tried clicking on the red 'X', on an empty spot and on an item stored in the chest. Nothing happens.
brian_va May 16, 2018 @ 6:48am 
on an item it will lock it to that item, the square should turn blue. can do it on an empty slot and should get a popup where you select an item. its the same process as locking a slot on your toolbelt.
pat May 16, 2018 @ 6:54am 
Originally posted by brian_va:
on an item it will lock it to that item, the square should turn blue. can do it on an empty slot and should get a popup where you select an item. its the same process as locking a slot on your toolbelt.
That's not happening for me. If I hover the mouse over the medium-grey colored empty square in a chest, the color lightens. If I press the middle mouse button, the highlight goes away. Nothing else.
brian_va May 16, 2018 @ 6:56am 
options -> controls -> inventory -> toggle filter, see what its set to
pat May 16, 2018 @ 7:03am 
Originally posted by brian_va:
options -> controls -> inventory -> toggle filter, see what its set to
Thanks. I checked and it is indeed set to middle mouse button. I tried changing it to CTL-SHIFT-LMB. When I went back to the chest and tried that, the result was the same.
pat May 16, 2018 @ 7:13am 
Interestingly, this *does* work on my toolbelt. I can middle-button an item and it turns that square blue. If I middle-button an empty slot on the belt, I get the option to select an item.
Setting these filters does not work on chests. It works on your own inventory, quickslots and trains, but not on chests.
My only idea for your scenario would be to use two circuit controlled filter inserters...
pat May 16, 2018 @ 7:22am 
Thanks, Brawndo. Learning circuits is on my to-do list.
Warlord May 16, 2018 @ 7:32am 
Originally posted by pat:
Thanks, Brawndo. Learning circuits is on my to-do list.

It's not that difficult. Just hook up an inserter to the chest with a wire, and set it to only run if "ITEM <= TWO STACKS". Do this with two different inserters if you want two items in a chest.
Have the inserters set to filter only the one item (if the belt it pulls from has more than one item) that they are checking for.
brian_va May 16, 2018 @ 7:35am 
Originally posted by Brawndo - The Thirst Mutilator:
Setting these filters does not work on chests. It works on your own inventory, quickslots and trains, but not on chests.
My only idea for your scenario would be to use two circuit controlled filter inserters...
Never tried it on a chest, just assumed it would be the same as a cargo wagon. Either way, 2 controlled inserters is the way to go.
Teh Freek May 16, 2018 @ 8:16am 
You need:
- Arithmetic combinator: Each * -1 -> Each
- Constant combinator outputting the item and quantity you want in the chest.
- Filter inserter grabbing from the belt into a chest.

Connect the chest to the arithmetic combinator input. Connect the two combinator's outputs to the filter inserter. Change the filter inserter circuit network option to "Set Filter". Win the game.
As Warlord said there is a much simpler solution:
One chest, two green wires and two filter inserters, no combinators needed...
https://steamcommunity.com/sharedfiles/filedetails/?id=1387237398
< >
Showing 1-15 of 23 comments
Per page: 1530 50

Date Posted: May 16, 2018 @ 6:17am
Posts: 23