Factorio

Factorio

データを表示:
このトピックはロックされています
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.
< >
16-23 / 23 のコメントを表示
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.
Unfortunately a general purpose solution (not dead slow, and supporting more than 5 item types) might be a little bit more involved.
https://steamcommunity.com/sharedfiles/filedetails/?id=1387344122

0eNrdWlmSnDgQvYu+qQ4ksVWFx0fwBRwOggKVW+EqUSFEh9sdHGDuMSebk4wAl5tmzaQnXMx89MKiR6L3lMqFF3I8l+KqpTLk8EJkmquCHD6/kEJ+Vcm5Pmeer4IciDTiQhyikkt9ZHSiimuuze4ozoZUDpEqE9/JgVbO4uBMpDITepfml6NUicl1B4BVXxwilJFGitaU5uA5VuXlKLR9wpQRDrnmhR2Wq/rJFmoXOOTZ/mEWPZNapO01rzaxB8rQoHwZlM+98RDYb4Hpg9+Ddoilxej8HB/FY/Ik7Wg75CdmbK9lDU5Rnz1JXZh4QMCT1Ka0Z35Z1N6xE0n6WE9+zbtJahHsKKsPL9dEN3YeyN9//mXH5aW5lgjkTy3s9dkaWCoTn3R+iaWyGORwSs6FqNrHqvY1G+Np/UuLrEu7tEd2ZlKp01Ka5pBWX+xYVt/8VQuhFm63iqqqEXo8OOf+KOfBCKiP49zbCOd0c5zzPufOm8sRThK8L4lZtCnFBHDFeGDFhDjFsG0oZr85wUTzgmncGkIx0bxi+nBTkolw7PKN+AN3c/SG8/S+d4tw5h42Re4e7g842B/Ucw9FZXBUihKiuw0dhpuT4dCNvFUOd4fSmRPi0I+8xWPArYkynKOh2yA42h7BdJ7gEOdowoVthALp5XCnQOFOAR4Cu3BQHwyKsBQeeiF8YggGRbjvCAwKjxEpfKf5lfOOZbnwrQWe8TCKtQ0Cik7IXUCSz9FZPgWgemvSfPfOjjfYnONlyBCOAdN8tiolvzc//vb48eY3RobcGft4bAFvkt9gTQJ9b3759vhdyLDYHsnvQujTx5vkN1yTQt+bX+8/4F97fARIfoMFfqH+OVqRmd6b3u3VS4fL852JKcUu37fXvWiK7/2aTPXehG+vKTJcr/OVg8X1vFDxHK73cX65i+KXPvijoXbwW/nt1zs/rCD3FXWUX6NLVP+js0BXlCnG2B9lC1cX9CbYYv83ttDtqv5y4d4sfzwE8vOaCN/ef5YgjllMJ3k2QoMa/mluLzbTUbb5iYtq+RcmV6I7vo4OXjv+iHmmuG1ucl5xzfluUHlHoX+8v9C9/b+ja6+jDSHOu/RRFJM1Mvc9ApkwwMeWregoTICEcUdRcDnOJkpI/Yjojw044YU2P6eTMfCY0qciWB5h64i9L5DYGOgeCwqoTXou9osFgKUexX44AwFl2K4nBJRjG7QQUGzTBILpY9s7EFBszwSCGSKbOxDMqLMVJOm3XRuW7KQqhLb/TG0KFOT9buv9kmcizk9xfhXWYzUjOt6gEPanfrj1XT9EG6w7rTnxDbVxSqhcD+G5hsVOB5qmTXzdtkf2oRgoor89WqjkeBZxJov6709X/WqZFkkWPyYqa2bPmlbc5vR2x+18e2vNTsvoSlc/tc37LrLHBxCsj+14jUYOPkOijLb0fI5s6Q3ezwqtidUPnU+BHfJk84I2dYhCxtjeCyOvqv4BLsQhzw==
最近の変更はAlexMBrennanが行いました; 2018年5月16日 10時22分
AlexMBrennan の投稿を引用:
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.
Unfortunately a general purpose solution (not dead slow, and supporting more than 5 item types) might be a little bit more involved.

If you came up with a way to limit the output of the combinators to the five largest values then it would probably be faster (and naturally work with more than 5 types).
Woody 2018年5月16日 10時50分 
Teh Freek の投稿を引用:
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.

You can do it these 2 ways also.

1. Use two decider combinators set to "item" >= "# of items wanted". Output "signal of choice " w/ value of 1. Connect one to each inserter. So one less combinator needed than using your method.

Set inserters to "signal you selected"= 0 . This will disable them.

2. The easiest. Connect the inserters directly to the chest. Set them to enable when the amount of items in the chest is =< than the amount you want. No combinators needed.



Looks like version 0.17 will have "blacklist" option on "filter inserters". https://wiki.factorio.com/Filter_inserter Would it be possible to use a "circuit network" to blacklist items in chest that have at least quantity x? Then one filter inserter&chest would be enough right?
Potential issue using just 1 inserter is that if it is holding something that can't go into the box it will stop, and won't load anything else.
Would it be possible to use a "circuit network" to blacklist items in chest that have at least quantity x?
Yes, you can potentially save one arithmetic combinator by using the new blacklist option. Yay?
https://steamcommunity.com/sharedfiles/filedetails/?id=1729940624

Potential issue using just 1 inserter is that if it is holding something that can't go into the box it will stop
If you are using circuits to control inserters than the chest won't be limited so I don't think that this is a problem you need to worry about.
最近の変更はAlexMBrennanが行いました; 2019年5月2日 9時02分
Teh Freek の投稿を引用:
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.
THANKS!!! FINALLY AN ANSWER THAT WORKSSS!!! TYVM <3
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
16-23 / 23 のコメントを表示
ページ毎: 1530 50

投稿日: 2018年5月16日 6時17分
投稿数: 23