Selector Combinator - Input ID
Posted: Sat Dec 07, 2024 6:54 pm
TL;DR
Add a way to convert a signal to a signal ID (the ID of the icon).What?
Allow a mode in which the Selector Combinator converts the input signals into their signal ID.For example, Iron Ore could have an ID of 1, Copper Ore an ID of 2, Stone an ID of 3, etc.
In essence, like the stack size mode, but instead it outputs a unique ID corresponding to that specific material/rarity combination.
This could either be set to output "Each" (i.e. Iron Ore with any value becomes Iron Ore with value 1) or to a specific, chosen value (i.e. Iron Ore with any value becomes "T" with value 1). In the latter case however, you would be unable to support multiple input signals (could maybe allow for a sort ascending/descending option to decide the output).
Why?
This specific suggestion doesn't solve any immediate problems, but it would allow for other problems to be solved in much more elegant ways.For example, instead of having to give an assembler a "Blue belt" signal to set its recipe to that, you could tell it to parse the "T" input as its recipe (if nothing is specified, use the existing logic). This would remove any confusion of which signal to process as the recipe, as well as allow for fewer problems with things like input/output signal overlap.
Some problems/suggestions that can be very elegantly solved via this feature:
- viewtopic.php?t=122510 - No need for doing something arbitrary like taking the highest or some specific value
- viewtopic.php?t=116694 - Again, no need to apply any special logic to the signals to act as a tiebreaker
It is also possible to provide an option to reverse this process, as it could allow for some useful things too, but it'd be secondary priority for me.