In other languages: 日本語

Selector combinator: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Fixed typo in the word "output")
(→‎Function: Changed "non-item" to "virtual signals", added too heavy for rockets)
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
{{:Infobox:Selector combinator}}
{{:Infobox:Selector combinator}}
{{Stub}}
{{Stub}}
<!-- Todo: need images of GUI. -->


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]]{{SA}} enabled) to filter out various signals from an input wire.
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]]{{SA}} enabled) to filter out various signals from an input wire.
[[File:selector_combinator_anim.png]]


== Function ==
== Function ==
Line 12: Line 9:


* '''Select input'''  
* '''Select input'''  
** Passes through the largest or smallest value input signal to the output depending on the order and index signal
** In this mode, the combinator sorts its input signals by value and outputs one of them at the same value.
** If “descending” is selected, the combinator will pass through the signal with the largest value. If “ascending” is selected, the combinator will pass through the smallest signal.
** '''Sort descending''' (default): The signal with the highest value is selected.
** By default, the “index” value is set to a constant of 0. Setting this to 1 will make the combinator pass through the second-largest or second-smallest input. Increasing the index further will cause it to pass through the third largest/smallest, and so on.
** '''Sort ascending''': The signal with the lowest non-zero value is selected.
** If the combinator only has one input signal, changing the index value will make no difference.
** '''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.
** The value of the input signals is not considered.
** The value of the input signals is not considered.
* '''Random input'''
* '''Random input'''
** The combinator will pass through a random input signal every certain number of [[time#ticks|game ticks]]
** The combinator will pass through a random input signal every certain number of [[time#Ticks|game ticks]]
** By default, the combinator will update this every 1 tick, or 60 times per second.
** 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'''
* '''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 non-item signals
** 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 fluid or non-item 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
** 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.png
Selector combinator

Selector combinator anim.png

Recipe

Time.png
0.5
+
Advanced circuit.png
2
+
Decider combinator.png
5
Selector combinator.png
1

Total raw

Time.png
59.5
+
Copper plate.png
60
+
Iron plate.png
29
+
Plastic bar.png
4

Map color

Health

Quality normal.png 150
Quality uncommon.png 195 Quality rare.png 240
Quality epic.png 285 Quality legendary.png 375

Stack size

50

Rocket capacity

50 (1 stack)

Mining time

0.1

Prototype type

selector-combinator

Internal name

selector-combinator

Required technologies

Advanced combinators (research).png

Produced by

Assembling machine 1.png
Assembling machine 2.png
Assembling machine 3.png
Player.png
No-building-material-icon.png
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

See Also