Another 'set recipe' setup
Posted: Thu Mar 06, 2025 11:43 am
Hi everyone!
I wanted to do something with 'set recipe' and to make production even more automated. The key reason being that the easiest way to set up a new planet is not to fetch things, but to make them in space. At least the basic material, but it applies to more than that I suppose. I was tired of switching the production by hand anyway.
What makes 'set recipe' a bit difficult to use is that naive sorting will fluctuate and if you also want to set requests, those are necessarily on the same signal as the input, but you don't want the product to be in the requests.
So this setup does the following:
Set the target product and number in the constant combinator(first green)
The right side of the circuit compares and sorts and gives the production target(first red)
This is sent to the green loop (second green) in the center
While the amount you have (second red) is less than your target(first green), the target (third red) is used to keep a loop alive.
When that is no longer the case, the lower center disables the (second green) loop, that allows the top center to accept a new product.
The top left decider filters production target and the ingredients, to make sure that none of the ingredients end up in the (second green) loop.
And then finally there is a multiplier for the ingredients.
Suggestions on how to improve are welcome!
I wanted to do something with 'set recipe' and to make production even more automated. The key reason being that the easiest way to set up a new planet is not to fetch things, but to make them in space. At least the basic material, but it applies to more than that I suppose. I was tired of switching the production by hand anyway.
What makes 'set recipe' a bit difficult to use is that naive sorting will fluctuate and if you also want to set requests, those are necessarily on the same signal as the input, but you don't want the product to be in the requests.
So this setup does the following:
Set the target product and number in the constant combinator(first green)
The right side of the circuit compares and sorts and gives the production target(first red)
This is sent to the green loop (second green) in the center
While the amount you have (second red) is less than your target(first green), the target (third red) is used to keep a loop alive.
When that is no longer the case, the lower center disables the (second green) loop, that allows the top center to accept a new product.
The top left decider filters production target and the ingredients, to make sure that none of the ingredients end up in the (second green) loop.
And then finally there is a multiplier for the ingredients.
Suggestions on how to improve are welcome!