[2.0.72] Blueprint formula with redundant ingredient parameter not calculated

Post your bugs and problems so we can fix them.
nmuhlbauer
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Nov 08, 2024 6:37 am
Contact:

[2.0.72] Blueprint formula with redundant ingredient parameter not calculated

Post by nmuhlbauer »

Hello,
I'm trying to make a blueprint with parameters set up to craft various products.
I have everything mostly working and when you select the product to make, the ingredients are applied successfully to the parameter slots.
The issue is varying numbers of ingredients.
I have a total of 4 parameter slots defined and if the recipe chosen has fewer ingredients it ignores the extra ingredient parameter slots. That's all good.
The issue is I have another parameter I'm trying to set to the max quantity of any of the individual ingredients that may be needed for the recipe. max(p0_i1,p0_i2,p0_i3,p0_i4)
With a 4 ingredient recipe it works perfect. If the recipe has fewer than the 4 ingredients the whole calculation is aborted and the default value is used.
I've tried researching if there's any way to filter for null values and I can't seem to find anything. Any guidance would be appreciated. I'm not sure whether this counts as a bug, but I would expect the "max" function to return the max value out of the values that actually exist. (or have a way to filter out null's)

Thanks for the assistance!
Post Reply

Return to “Bug Reports”