stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. Stationeers wiki
  3. Devices
  4. Logic Sorter

Devices

Logic Sorter

PrefabStructureLogicSorter Hash873418029in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Logic Sorter (StructureLogicSorter) in Stationeers: device, hash 873418029, 5 W. With build steps, 13 IC10 logic values and connection diagram.

The logic sorter looks like the Sorter and has the same connections: one chute input, two chute outputs and a shared power and data port. The slots are the same too (import, export, export 2). But it draws only 5 W instead of 50 W.

The difference is in how it is operated. It has no Output logic value. Instead it has its own memory with 32 places (StackSize), into which a chip writes rules once – with put on its ReferenceId. After that it sorts on its own, even if the chip does nothing more.

Every rule is a number: the lowest byte is the instruction from the SorterInstruction. namespace, above it sit comparison and value. It can check the prefab hash (equal or not equal), the sorting class, the slot type and the stack quantity. A place holding 0 is skipped. Mode decides how the rules combine:

ModeNameto export 2 if …
0Allall rules match
1Anyat least one rule matches
2Noneno rule matches

Everything else goes to export – also when the memory is completely empty. Old rules stay until you overwrite them or clear the memory with clrd. How to build the numbers is shown step by step in the IC10 Academy: logic sorter.

Also readable are ImportCount, ExportCount, On, Lock and Error. The game has no German name for it. Both sorters are built from the Kit (Sorter) and taken down with the hand drill. More in Sorters, stackers and chute valves with logic.

IC10 and logic

13 logic values, 12 readable and 4 writable.

  • Power R 1
  • Mode RW 3
  • Error R 4
  • Lock RW 10
  • On RW 28
  • RequiredPower R 33
  • ClearMemory W 62
  • ExportCount R 63
  • ImportCount R 64
  • PrefabHash R 84
  • ReferenceId R 217
  • NameHash R 268
  • StackSize R 280

Values per slot (slot logic)

Slot valuereadable in slotwritable in slotNumber
Occupied0, 1, 2–1
OccupantHash0, 1, 2–2
Quantity0, 1, 2–3
Damage0, 1, 2–4
Class0, 1, 2–12
MaxQuantity0, 1, 2–15
PrefabHash0, 1, 2–17
SortingClass0, 1, 2–24
ReferenceId0, 1, 2–26
FreeSlots0, 1, 2–31
TotalSlots0, 1, 2–32

Example: address by name

Reads On, shows the value on the IC housing and writes Mode. Name the device with the labeller first; devices with the same name are addressed together.

# Logic Sorter address by name
define DEVICE 873418029  # StructureLogicSorter
define NAME HASH("Logic Sorter")  # name in game (labeller)
define TARGET 0  # Mode mode 0
alias value r0

start:
yield
lbn value DEVICE NAME On 0  # 0 = average of all with this name
bnan value start  # no device with this name
s db Setting value  # show on the housing
sbn DEVICE NAME Mode TARGET  # set value
j start

Connections

2Chute1Chute3Chute4
Schematic: inputs left, outputs right, waste on top, power and data at the bottom. Position and spacing do not match the model.
  1. 1Chute · output 2
  2. 2Chute · input
  3. 3Chute · output
  4. 4Power and data

Slots and modes

#SlotTakes
0ImportNone
1ExportNone
2Export 2None

Modes: 0 = All, 1 = Any, 2 = None

Building and deconstruction

Grid: small grid (0.5 m) · mounting: free in the grid

  1. 1

    Place

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Sorter)

Raw values from the game code (4)

Field names as in the game code, untranslated. Useful for mods and exact limits.

DeviceImportExport2.ExportConnectionId20
DeviceImportExport.ExportConnectionId2
DeviceImport.ConnectionTypeFlatExhaustive
DeviceImport.ImportConnectionId1

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere