[2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Bugs that are actually features.
triggerman602
Inserter
Inserter
Posts: 28
Joined: Sat Nov 07, 2015 9:18 pm
Contact:

[2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Post by triggerman602 »

I created a blueprint that has parameters referencing a recipe's second ingredient in the conditions of decider combinators.

When placing the blueprint, if the selected recipe doesn't have a second ingredient, the conditions in the combinators are deleted.

I expected the conditions to remain and the slots with the parameters to be empty(and therefore 0) instead.

Here is the blueprint that demonstrates this. Select a recipe that only has 1 ingredient and check the decider combinators vs when selecting a recipe with 2 or more ingredients.
robot256
Smart Inserter
Smart Inserter
Posts: 1199
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Post by robot256 »

Empty slots do not evaluate to zero. They cause the condition to always evaluate to false. The behavior you observe was added in response to another bug report where the unpopulated conditions would break the intended logic because of this.
triggerman602
Inserter
Inserter
Posts: 28
Joined: Sat Nov 07, 2015 9:18 pm
Contact:

Re: [2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Post by triggerman602 »

Empty Slots do evaluate to 0.
Attachments
EmptySlot.JPG
EmptySlot.JPG (171.14 KiB) Viewed 506 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3940
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Post by boskid »

I am not a fan of this behavior but it is an intended feature implemented because of 118455. If you want it changed then you need to provide a better argument than that topic to convince kovarex it should be reverted.
tinker9
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Sat Nov 09, 2024 4:51 am
Contact:

Re: [2.0.52] Decider combinator conditions are deleted when they contain an empty parameter.

Post by tinker9 »

kovarex wrote: Sat Mar 29, 2025 2:39 pm I hope I don't break something by this change, but for the next version, decider combinator conditions which would be evaluated to empty signal on the left side of the comparison are just deleted isntead of kept empty.
As a workaround, you could put the parameter on the right?
Post Reply

Return to “Not a bug”