Selector combinator: Difference between revisions
Jump to navigation
Jump to search
(→Function: Added new interaction to random output) |
(→Function: Changed "non-item" to "virtual signals", added too heavy for rockets) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
* '''Select input''' | * '''Select input''' | ||
** | ** In this mode, the combinator sorts its input signals by value and outputs one of them at the same value. | ||
** | ** '''Sort descending''' (default): The signal with the highest value is selected. | ||
** | ** '''Sort ascending''': The signal with the lowest non-zero value is selected. | ||
** If | ** '''Index''': Determines which position among the sorted values is selected, starting at 0, i.e. first (0), second (1), third (2) | ||
*** If multiple signals are provided and index is out of bounds, then '''no signal''' is passed through. The valid bounds is 0 through 1 less the total quantity of input signals. | |||
*** If a single input signal is provided, it is '''always''' passed through even if the index is out of bounds. | |||
* '''Count inputs''' | * '''Count inputs''' | ||
** The combinator will count and output the number of unique inputs on the selected signal. | ** The combinator will count and output the number of unique inputs on the selected signal. | ||
Line 22: | Line 24: | ||
* '''Stack size''' | * '''Stack size''' | ||
** The combinator will output the stack sizes of the input items | ** The combinator will output the stack sizes of the input items | ||
** The combinator will not output any fluid or | ** The combinator will not output any fluid or [[Circuit network#Virtual signals|virtual signals]] | ||
** The value of the input items is not considered | ** The value of the input items is not considered | ||
* '''Rocket capacity'''{{SA}} | * '''Rocket capacity'''{{SA}} | ||
** The combinator will output the rocket capacity of the input signals | ** The combinator will output the rocket capacity of the input signals | ||
** The combinator will not output any | ** The combinator will not output any fluids, virtual signals, or items too heavy for a rocket (the [[atomic bomb]] and [[rocket silo]].) | ||
** The value of the input items is not considered | ** The value of the input items is not considered | ||
* '''Quality filter'''{{SA}} | * '''Quality filter'''{{SA}} |
Latest revision as of 21:17, 23 December 2024
Selector combinator |
Recipe |
|||||||||||||
+ + → | |||||||||||||
Total raw |
|||||||||||||
+ + + | |||||||||||||
Map color |
|||||||||||||
Health |
|
||||||||||||
Stack size |
50 |
||||||||||||
50 (1 stack) |
|||||||||||||
Mining time |
0.1 |
||||||||||||
Prototype type |
|||||||||||||
Internal name |
selector-combinator |
||||||||||||
Required technologies |
|||||||||||||
Produced by |
|||||||||||||
This article is a stub, and not comprehensive. |
---|
You can help this wiki by expanding it. |
The selector combinator is part of the circuit network and one of four types of combinators available in the game (the other three being the constant combinator, arithmetic combinator and decider combinator). It has four different modes of operation (or seven with Space Age enabled) to filter out various signals from an input wire.
Function
The selector combinator can select a signal to output from one of the following modes of operation:
- Select input
- In this mode, the combinator sorts its input signals by value and outputs one of them at the same value.
- Sort descending (default): The signal with the highest value is selected.
- Sort ascending: The signal with the lowest non-zero value is selected.
- Index: Determines which position among the sorted values is selected, starting at 0, i.e. first (0), second (1), third (2)
- If multiple signals are provided and index is out of bounds, then no signal is passed through. The valid bounds is 0 through 1 less the total quantity of input signals.
- If a single input signal is provided, it is always passed through even if the index is out of bounds.
- Count inputs
- The combinator will count and output the number of unique inputs on the selected signal.
- The value of the input signals is not considered.
- Random input
- The combinator will pass through a random input signal every certain number of game ticks
- By default, the combinator will update this every 1 tick, or 60 times per second.
- If there is only one input signal, it will be output after this threshold is met. If the input is removed before that happens, nothing will be output.
- Stack size
- The combinator will output the stack sizes of the input items
- The combinator will not output any fluid or virtual signals
- The value of the input items is not considered
- Rocket capacity
- The combinator will output the rocket capacity of the input signals
- The combinator will not output any fluids, virtual signals, or items too heavy for a rocket (the atomic bomb and rocket silo.)
- The value of the input items is not considered
- Quality filter
- The combinator will pass through any input signals that meet a conditional against a certain quality grade
- The combinator can compare an input's quality that is greater than, less than, equal to, greater or equal to, less or equal to, or not equal to, any one quality grade.
- If comparing against any quality grade, the only valid comparison is equal to
- Quality transfer
- The combinator will take the selected target signal from its inputs and output it with a particular quality grade.
- If direct slection is selected, the combinator will attach the specified quality grade to the target signal, but only if that target signal is among the inputs
- If select from input is selected, the combinator will search for the selected item within its inputs and apply the quality of selected input to the target signal, but only if both the selected input and the target signal are among the inputs.
History
- 2.0.7:
- Introduced