Page 1 of 1

Selector Combinator: Mode of Operation = Select Channel

Posted: Thu Jul 10, 2025 12:05 pm
by Christof Zedlacher
I'm making running texts in Factorio V2 (see image) and for that purpose I could use the Selector Combinator to have an additional mode to select sorted Channels instead of sorted values:
Image
in that mode, if I define Channels 1 .. 4 in a Constant Combinator (see image) and select Channel 2 by Selector Combinator, the Selector would output the value of the 2nd Channel (sorted by Channel name), so the output would be the value of Channel 2 = 3.
My work-around for the missing mode needs n Decider Combinators, where n is the number of Channels defined, in my case 30.
Image

Re: Selector Combinator: Mode of Operation = Select Channel

Posted: Thu Jul 10, 2025 12:30 pm
by Tertius
To perform the action, you need 1 selector combinator, 1 decider combinator and 1 additional constant combinator:
07-10-2025, 14-21-57.png
07-10-2025, 14-21-57.png (63.23 KiB) Viewed 117 times
In the 1st constant combinator, you globally define all the signals you intend to handle. All with value 1, so a selector combinator will select by internal default order, which is well defined and stable.
07-10-2025, 14-22-56.png
07-10-2025, 14-22-56.png (67.33 KiB) Viewed 117 times
This will create a unique index for every signal, if you feed this to a selector combinator.

To pick the 3rd item (that's the signal 3):
07-10-2025, 14-24-09.png
07-10-2025, 14-24-09.png (63.76 KiB) Viewed 117 times
This maps index 3 to signal 3.

This ist the constant combinator with the values from where you want to pick:
07-10-2025, 14-25-00.png
07-10-2025, 14-25-00.png (49.5 KiB) Viewed 117 times
Notice the signal 3 has value 4. This is what we want to pick with the given value 3 in the selector combinator.

Finally, the decider combinator that performs the miracle:
07-10-2025, 14-26-25.png
07-10-2025, 14-26-25.png (93.17 KiB) Viewed 117 times

Re: Selector Combinator: Mode of Operation = Select Channel

Posted: Thu Jul 10, 2025 2:21 pm
by Christof Zedlacher
YESS - thank you!! 8-)
That's it!

Works fine with my running text :D
Image