Page 1 of 1

[2.1.9] Inconsistent parameterized formula results

Posted: Fri Jul 03, 2026 4:29 pm
by barnaclebob
i stumbled upon this when i was trying to reduce the number of combinators in my gambling machines. I was trying to get the count of distinct ingredients for a recipe using 'min(p0_i1,1) + min(p0_i2,1) + min(p0_i3,1) + min(p0_i4,1) + min(p0_i5,1) + min(p0_i6,1)' every time i tried to use this it didnt work and i eventually discovered it was just setting it to whatever the initial value i used to make it was.

So i setup a combinator that gives me access to all the data individually to see whats wrong. I is ideally the ingredient count, the 6 potential ingredients (A-F) with their correct qty and an attempt to just get the qty of ingredients to signals 1-6.

Image

And parameterized as:
I is min(p0_i1,1) + min(p0_i2,1) + min(p0_i3,1) + min(p0_i4,1) + min(p0_i5,1) + min(p0_i6,1)

Image

You can see this is mostly what you expect:

Image

The ingredient count doesnt work, it just shows its default value this is what i was trying to debug. The A-F work as i expect. the excess ingredients are gone. signal 1-4 work as expected. 5 and 6 show their default values which is interesting. Maybe i could set all those to 0 and the formula will work.

Image

Now everyone i edited is 0

Image

I dont know whats going on with the 2nd blueprint where a changed value overrides the formula, but in general it would be great if p0_i<x> returns 0 instead of the value when that ingredient doesnt exist.

Here are the 3 blueprints:
0eNrtWl1vmzAU/SuRnzYNKmMwbSPtYe02qdIeJk3ay1RFTuO01sAwMFG7Kv991+SLFIbjNDTqhvqCDT7nnsvlXvUoj2gcFTzNhFSjcZL8RMPHzU6Ohj8qS31P3CRysZ2LW8kivSdZzNEQ6TuKSeXeJPFYSKaSDM0dJOSE36OhN792EJdKKMEXAOXiYSSLeMwzeMBpA3JQmuRwNpGaEfDcAJ+eUAc9wKXnn59QoIKDKkui0ZjfsZmAU/Bozm/0qXz7GuhXcTloKiLFs6e7y2D4fZrxPHdVxmSeJplyxzxSEM+vgkUQPzwikyyGTGj+OGVZGe8QvS83Cp02QBOxPjuaZkmsT7BiJnLIzprQd5B6SDXhTGSqKOGWESwS7V7ZcdIKuOcZ0T/YoROvCk+M8BeW8KQKb87NpSW8X4UPjPAf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