[SOLVED] Machine outputs more than 1 stack full
Posted: Mon Jun 06, 2016 6:55 pm
In my recycling mod under development, some of the reverse recipes produce more than 1 stack worth of a result. The worst case example, my recipe to recycle a rocket-silo, with 100% of the original inputs produced as output...
As you see, several of the results are greater than the stack size for that type. This has the very undesirable effect that putting a rocket-silo into the machine, NOTHING comes out and the silo is lost. 
Before I start trying to fix this, can anybody recommend any strategies to try to make the machine stop when any of the stacks have reached their limit.
Code: Select all
{
category = "recycling-3",
name = "dry411srev-rocket-silo",
ingredients = { { "rocket-silo", 1 } }
main_product = "",
results = {
{ amount = 1000, name = "steel-plate" }
{ amount = 1000, name = "concrete" }
{ amount = 100, name = "pipe" }
{ amount = 200, name = "processing-unit" }
{ amount = 200, name = "electric-engine-unit" }
}
enabled = false,
group = "dry411srev-combat",
subgroup = "dry411srev-defensive-structure",
order = "e[rocket-silo]",
hidden = false,
icon = "__base__/graphics/icons/rocket-silo.png",
type = "recipe"
}

Before I start trying to fix this, can anybody recommend any strategies to try to make the machine stop when any of the stacks have reached their limit.