Page 1 of 1

Use stored items for further production

Posted: Wed Aug 16, 2017 6:08 pm
by firefist235
Hi all,
how can i do this to use stored items first for further production instead of producing new ones.
For example:
for Fast belts you need standard belts to.
I alway keep 200 of them in stock (passive provider, limited to 2 stacks)
but when i replace the standard belts with fast belts, the standard belts are stored in storage chests and new ones start to produce.
I want to use those stored items first. And only start producing if the storage runs empty.
I tried some possible solutions but nothing really worked for me.

I hope i could explain my question, my englisch is a little bit out of practice ;)

Re: Use stored items for further production

Posted: Wed Aug 16, 2017 6:56 pm
by twepy
Stack limits on a chest only applies to that chest, it doenst apply to other chests with the same item.

If you want to have 200 belts no matter in how many chests they are spread, the easiest solution is connecting the inserter that takes the belts from the assembler to the logistic network and set the enabled condition: Belt < 200. Now all the belts in a provider chest or storage chest within the logistic network will be counted and if the total is below 200 belts the inserter starts taking belts from the assember and putting them in the chest, if it goes above 200 the inserter stops.

Re: Use stored items for further production

Posted: Wed Aug 16, 2017 7:04 pm
by firefist235
That's it. I have to read out the whole logistic ;)
why i don't thought of this by myself ;)
thank you

Re: Use stored items for further production

Posted: Wed Aug 16, 2017 8:03 pm
by torne
Are you using the passive provider chest where you make the standard belts as the input for your fast belt assembler? If so then twepy's solution won't work, because any time there are >200 belts in storage chests elsewhere the supply of belts to the fast belt factory will stop.

There's a couple of ways to do more or less what you want:

1) Wait for the buffer chest being added in 0.16 and mentioned in a recent FFF. This will enable you to "pull" some of the standard belts to the right place for the fast belt assembler's input without them becoming unusable for other purposes (as with a regular requester chest). This is the ideal solution but you can't do it in the current version of the game :)

2) Just don't bother having the standard and fast belt assemblers directly connected: supply the fast belt assembler with a requester chest instead of having it pull directly from the standard belt assembler's output chest. The bots will have to do more work moving the belts to the right place, and you'll have some extra standard belts in the system (since the ones in the requester chest don't count any more as they aren't usable for any other purpose), but it will always work.

3) Use a roboport to read out the contents of the logistic network into the circuit network and then use a couple of combinators to OR the conditions together such that you make standard belts if there are <200 in the logistic network *or* fewer than, say, 10 in the chest that feeds into the fast belt assembler. This still adds the extra standard belts to the system as 2) does but doesn't create a bunch of work for bots. Downside is you need to use the circuit network for this because you can't directly set a condition for an inserter based on circuit and logistic network at the same time.

Re: Use stored items for further production

Posted: Thu Aug 17, 2017 3:51 pm
by Engimage
The way I do it
Produce yellow belts into requester chest which requests 4000 yellow belts
Limit output with filter inserter set to yellow belt < 200

This way all yellow belts that you trash or deconstruct will go into this chest that you will use to produce red belts
If there are less than 200 items they will be manufactured

The downside here is that you can't provide yellow belts as they will always be requested by this chest. Or you can request say 400 items and set production limit to 100...

Re: Use stored items for further production

Posted: Thu Aug 17, 2017 4:34 pm
by firefist235
Thanks for all your replies. Looks like there are many ways to achieve this.
I've done it like this
The first inserter pulls out items and is only activated when less then 200 items are available in the network.
The second inserter pulls out items from the requester chest (requesting 100 items)
The third inserter gives items into the passive chest (limited to 2 stacks=200 items)

Re: Use stored items for further production

Posted: Thu Aug 17, 2017 5:21 pm
by torne
firefist235 wrote:Thanks for all your replies. Looks like there are many ways to achieve this.
I've done it like this
The first inserter pulls out items and is only activated when less then 200 items are available in the network.
The second inserter pulls out items from the requester chest (requesting 100 items)
The third inserter gives items into the passive chest (limited to 2 stacks=200 items)
This will cause an endless bot loop under certain circumstances: it's possible for the robots to end up in a cycle of delivering items from the passive chest to the requester chest right next to it, which just puts them on the belt and then picks them back into the passive chest again.

Re: Use stored items for further production

Posted: Fri Aug 18, 2017 7:48 am
by ili
I have solved this in my old base like this:
1. Wire up you central storage chests together.
2. Distribute this signal around your base on big poles.
3. Build the reclaimer system on the items you want (set the item type in the Combinator).

All the reclaimed items will go back to the bus and/or the Provider chest
You can request the reclaimed items without any bot looping problems

Code: Select all

0eNqVVF1vqzAM/S9+hglYyzQ07U/cx2lCAdzWGiS5iUEXVfz3m8DWT9qVF6Ik+Pj4HMd7KOoWtSHJkO2BSiUtZB97sLSVovZn3GuEDIixgQCkaPyuVluyTGVY7tByqIW11GGojeqoQgNDACQr/AdZPARL0Qz+bd16BpMsh7GsjNjiCcjz8BkASiYmnMocN30u26Zw6bL4gGVZlF8hSYvGEwlAK+vClPTZHVSYBNC7xZUHFRksp7s0ACchG1XnBe5ER8r4gJJM2RLn7q46oGzIWM6vaurIcOtOjlTGP0Ls0PS8I7n1FXmjWHjX1lHkt40WRrBPB2/+h7GA/IcMSd0uyPUHhimHnAqzPib2H4PVqXBUeWs+h8HbcyFm8nC3XKsbH9V9kEV8g8XzgUWFpc8WOq0KkqNWV4mjp/Wsr8m8r9+QR1/tHWPPm7VUWnsyoqjx3NBLO99dkGp51sDfMHXvuLWS841RzdQFkLFpccbf5Iay6Q1lV0sfS3Sh6Qzm+gQTsZ4a5mZ/RHO00t/HyhVefOB37/U2qsJcbXLlRBZT9IIGdY34A3Tv1bw8rGo0L6obcWNXZCejPQA3POw0oVarJE1fkjh5HYb/OHERNw==