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

Devices

Sorter

PrefabStructureSorter Hash-1009150565in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Sorter (StructureSorter) in Stationeers: device, hash -1009150565, 50 W. With build steps, 13 IC10 logic values and connection diagram.

The sorter takes items in through a chute input and sends each one to one of two outputs. It has three slots (import, export, export 2), a shared port for power and data, and draws 50 W.

Three modes are available, set via Mode:

ModeNameHow it works
0Splitalternating: one to export, the next to export 2
1Filterfilter list matches to export 2, everything else to export
2Logica chip decides via Output

The mapping according to the game code: Output 0 sends the item into the export slot and on to the "output" connection (no. 3 in the connection plan), Output 1 into export 2 and to "output 2" (no. 1). The plan is schematic – which opening on the model is which, your first test run will show.

In Logic mode the sorter waits until Output is set. After every item it resets Output to −1 itself – so the chip has to decide anew for each item. Read OccupantHash in slot 0 for that and only write when something actually lies there. Otherwise the diverter for the next item is already set before the chip has seen it.

Careful when switching: if Mode changes to Split or Logic, the sorter deletes its filter list. If you add a filter, it switches to Filter by itself.

For the filter list the game has the Sorter Motherboard, which the electronics printer makes from 5 gold and 5 silver. You build the sorter itself from the Kit (Sorter) (autolathe: 10 iron, 1 gold, 5 copper). It is taken down with the hand drill.

A complete IC10 program that separates ore by type is in Sorters, stackers and chute valves with logic.

IC10 and logic

13 logic values, 12 readable and 5 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
  • Output RW 70
  • PrefabHash R 84
  • ReferenceId R 217
  • NameHash R 268

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.

# Sorter address by name
define DEVICE -1009150565  # StructureSorter
define NAME HASH("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 = Split, 1 = Filter, 2 = Logic

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 (5)

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

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

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere