Setting stack size for smart smelter with bricks and steel
Posted: Thu Feb 15, 2018 7:44 am
Hi all,
I have created a "Smart Smelter" setup using bots, primarily based on Teathymeterror's setup from last year (that itself is based on Scarhoof's setup). I have attached a picture of my setup, however pretty well all the logic seems to work beyond figuring out how to set the stack sizes to not be an issue and prevent clogging of the furnaces.
The solution that I currently have in place is that if stone or iron is requested to be placed into the smelter, that another decider combinator detects this and outputs a signal S with a value of 2 or 5 respectively for bricks or steel. This value of S is then sent along the same circuit network as the filter signal, and all the stack filter inserters are set up to "set stack size" based on a control signal of "S". Most of the time this seems to work fine, and when the demand is for iron plates to be inserted they are inserted 5 at a time, and stone is inserted 2 at a time.
Frequently (as in, far too frequently to ignore) an issue shows up at changeover time though, where less than 5 iron or only 1 stone wind up being placed into the smelters. I originally thought this was an issue with the input running out (the iron plates literally ran out at one point) and so set up an interceptor that overrides the iron plate or stone signals if there is not adequate spare demand, and I have also heavily increased the quantity of logistics bots in play. However, the issue still occurred, and I was able to confirm that the issue occurs even when plenty of stock is in the input chest.
As far as I can tell I think this is related to different ticks being used to specify the two different signals (what to filter on and how many to insert), and the issue seems particularly prominent if there is a very short demand for a type of item (say, stone) and a flicker occurs. So, the main question is: how can I ensure that the tick that the item filter requests occur is the same tick that the stack size requests occur? Alternatively, has someone else had the same situation and came up with a novel solution to this dilemma of the furnaces getting jammed.
I have created a "Smart Smelter" setup using bots, primarily based on Teathymeterror's setup from last year (that itself is based on Scarhoof's setup). I have attached a picture of my setup, however pretty well all the logic seems to work beyond figuring out how to set the stack sizes to not be an issue and prevent clogging of the furnaces.
The solution that I currently have in place is that if stone or iron is requested to be placed into the smelter, that another decider combinator detects this and outputs a signal S with a value of 2 or 5 respectively for bricks or steel. This value of S is then sent along the same circuit network as the filter signal, and all the stack filter inserters are set up to "set stack size" based on a control signal of "S". Most of the time this seems to work fine, and when the demand is for iron plates to be inserted they are inserted 5 at a time, and stone is inserted 2 at a time.
Frequently (as in, far too frequently to ignore) an issue shows up at changeover time though, where less than 5 iron or only 1 stone wind up being placed into the smelters. I originally thought this was an issue with the input running out (the iron plates literally ran out at one point) and so set up an interceptor that overrides the iron plate or stone signals if there is not adequate spare demand, and I have also heavily increased the quantity of logistics bots in play. However, the issue still occurred, and I was able to confirm that the issue occurs even when plenty of stock is in the input chest.
As far as I can tell I think this is related to different ticks being used to specify the two different signals (what to filter on and how many to insert), and the issue seems particularly prominent if there is a very short demand for a type of item (say, stone) and a flicker occurs. So, the main question is: how can I ensure that the tick that the item filter requests occur is the same tick that the stack size requests occur? Alternatively, has someone else had the same situation and came up with a novel solution to this dilemma of the furnaces getting jammed.