[2.0.58] "Each" signal leaks between OR combinator conditions

Bugs that are actually features.
SuperBananaBomb
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu May 07, 2020 9:50 pm
Contact:

[2.0.58] "Each" signal leaks between OR combinator conditions

Post by SuperBananaBomb »


06-28-2025, 03-27-52.png
06-28-2025, 03-27-52.png (344.38 KiB) Viewed 410 times
The top condition is false (due to Deny signal being 0), but the "Each" signal is picking up all inputs from the Green wire.
The bottom condition is true, but it is not reading the Green wire. Yet, because of the top condition, the "Each" signal gets substituted with all inputs from the Green wire and they all pass the 0 = 0 condition.

From this experiment, it seems the "Each" condition is global to the combinator, and not separately considered for each OR condition. I can see that being by-design, but I was not expecting signals to leak from one OR condition to another; I was expecting them to be independent like individual combinators would. If we split this into 2 combinators, one for each OR condition, then there is no output signal.


06-28-2025, 11-19-26.png
06-28-2025, 11-19-26.png (233.05 KiB) Viewed 410 times
06-28-2025, 11-19-36.png
06-28-2025, 11-19-36.png (234.08 KiB) Viewed 410 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4012
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by boskid »

Well, that is not a bug. There is one set of "each" signal substitutes and it is used throughout all conditions.
robot256
Smart Inserter
Smart Inserter
Posts: 1224
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by robot256 »

It makes sense to me since I know how Each works. It seems like the only way to communicate that to the user would be to synchronize the R/G boxes on all Each entries in a given combinator.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
sparr
Smart Inserter
Smart Inserter
Posts: 1519
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by sparr »

Synchronizing those checkboxes would reduce the functionality of the combinator. There is no obvious/simple way to "fix" this without eliminating other ways the combinator could be used intentionally.
robot256
Smart Inserter
Smart Inserter
Posts: 1224
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by robot256 »

sparr wrote: Sun Jun 29, 2025 11:15 am Synchronizing those checkboxes would reduce the functionality of the combinator. There is no obvious/simple way to "fix" this without eliminating other ways the combinator could be used intentionally.
I meant only for the entries where the Each signal is selected. It would be a rather invasive bespoke piece of code to check "is this signal Each, and are there other Each signals that should be changed at the same time" every time the R/G boxes are clicked. But the Each signal already changes the entire operation of the combinator in a totally unique way.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Tertius
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by Tertius »

This "linking" of the EACH signals is useful. Think it this way. It enables you to create signals from nothing on one wire as well as compare to 0 (usually not possible with EACH), if these signals are present on the other wire. It's the only place in Factorio where you're able to have a collection of signals with value 0 to work with.
What you describe as leak and give the example, is what others like me do explicitly use. I would interpret this behavior as just given and meant to be implemented this way.
robot256
Smart Inserter
Smart Inserter
Posts: 1224
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.58] "Each" signal leaks between OR combinator conditions

Post by robot256 »

Tertius wrote: Sun Jun 29, 2025 2:11 pm This "linking" of the EACH signals is useful. Think it this way. It enables you to create signals from nothing on one wire as well as compare to 0 (usually not possible with EACH), if these signals are present on the other wire. It's the only place in Factorio where you're able to have a collection of signals with value 0 to work with.
What you describe as leak and give the example, is what others like me do explicitly use. I would interpret this behavior as just given and meant to be implemented this way.
This is amazing and I stand corrected. The existing behavior is great and should not be changed. OP just needs to build a second combinator so the two halves of their condition are executed on different sets of signals.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Post Reply

Return to “Not a bug”