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

Devices

Logic Writer

Logik-Schreiber

PrefabStructureLogicWriter Hash-1326019434in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Logic Writer (StructureLogicWriter) in Stationeers: device, hash -1326019434, 10 W. With build steps, 8 IC10 logic values and connection diagram.

The logic writer is the end of a logic chain. It takes a value and writes it into a logic value of a target device – for example the result of a Logic Compare into On of a vent.

How to set it up: With the Screwdriver you click three setting points; every click moves one step forward, with the C key held one step back:

  • Target: a device on the data network at its output that has writable values,
  • Value: the logic type that gets written there,
  • Source: a logic unit on the data network at its input. What gets written is its Setting – that of a reader, memory, compare unit, dial or lever, even that of an IC housing.

Important in daily use: the writer only writes when something changes – the source value, the source or the target. If somebody switches the vent by hand, it stays that way until the value at the input changes again. If you want to enforce a value again, write a number above 0 into ForceWrite; it then writes once more on the next tick.

Unlike the reader it has no readable Setting. Its logic values are On, Power, Error and ForceWrite, which is write only. It has a data input, a data output and a power port and, according to the game data, draws 10 W.

When something is missing: If source or target is missing, one of them is no longer on the right network, or the target has no writable values, Error is 1 and the writer writes nothing. Without power or with On at 0 it does not write either.

The writer hits exactly one device. If all devices of a type should get the same value, use the Batch Writer. If you only want to hit the devices of one room, sbn with a name in IC10 is the safe way, see IC10: control a device by name.

IC10 and logic

8 logic values, 7 readable and 2 writable.

  • Power R 1
  • Error R 4
  • On RW 28
  • RequiredPower R 33
  • PrefabHash R 84
  • ForceWrite W 85
  • ReferenceId R 217
  • NameHash R 268

Example: address by name

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

# Logic Writer address by name
define DEVICE -1326019434  # StructureLogicWriter
define NAME HASH("Logic Writer")  # name in game (labeller)
define TARGET 1  # On 1 = on
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 On TARGET  # set value
j start

Connections

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

Building and deconstruction

Grid: small grid (0.5 m) · mounting: on wall or floor

  1. 1

    Place

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Logic I/O)

Material, fire and recycling

Flammable according to game data: flash point 373.2 K (100 °C); Autoignition 573.2 K (300 °C); burn time 5 s

Raw values from the game code (3)

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

LogicUnitBase.ConnectionTypeFlatExhaustive
LogicUnitBase.Input1Index0
LogicUnitBase.OutputIndex1

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere