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

Devices

Vending Machine

Verkaufsautomat

PrefabStructureVendingMachine Hash-443130773in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Vending Machine (StructureVendingMachine) in Stationeers: device, hash -443130773, 5 W. With build steps, 18 IC10 logic values and connection diagram.

In Stationeers the vending machine is storage with a dispenser: 100 storage slots plus an import and an export slot. Items come in through the chute input and are handed out on request through the chute output. Power and data have separate ports; base draw is 5 W.

Its strongest tool is logic. RequestHash requests an item by its prefab hash, DispenseSlot a specific slot. Readable are Quantity and Ratio for the fill level, and TargetSlotIndex and TargetPrefabHash for what is currently being dispensed. A chip can, for example, request iron ore whenever the furnace's import slot is empty. The chute from the machine's output leads straight into the furnace:

define MACHINE -443130773      # Vending machine (StructureVendingMachine)
define FURNACE 1947944864      # Furnace (StructureFurnace)
define NMACHINE HASH("Ore Store")    # name of the machine
define NFURNACE HASH("Iron Furnace") # name of the furnace
define IRONORE 1758427767      # Ore (Iron) (ItemIronOre)
define PAUSE 2                 # s to wait after each request
alias amount r0
alias busy r1

start:
yield
lbn amount MACHINE NMACHINE Quantity 0
bnan amount start              # no machine with this name
blez amount start              # machine is empty
lbns busy FURNACE NFURNACE 0 Occupied 0
bnan busy start                # no furnace with this name
bnez busy start                # furnace slot still occupied
sbn MACHINE NMACHINE RequestHash IRONORE
sleep PAUSE                    # ore on its way, wait briefly
j start

It also plays a part in trading: if it is switched on and connected to a landing pad's data network, the game puts bought goods into its free storage slots, and traders take goods for sale from it. More in Trading: satellite dish, trader classes, landing pad.

It is built in three stages: place two kits, insert two plastic sheets, finish with the screwdriver. The electronics printer makes the Kit (Vending Machine) from 25 gold, 10 steel, 25 electrum and 5 solder. More on storage and chutes in Chutes and logistics: basics, inputs and outputs.

IC10 and logic

18 logic values, 17 readable and 6 writable.

  • Power R 1
  • Error R 4
  • Activate RW 9
  • Lock RW 10
  • Ratio R 24
  • Quantity R 27
  • On RW 28
  • RequiredPower R 33
  • RequestHash RW 60
  • ClearMemory W 62
  • ExportCount R 63
  • ImportCount R 64
  • PrefabHash R 84
  • ReferenceId R 217
  • NameHash R 268
  • TargetSlotIndex R 270
  • TargetPrefabHash R 271
  • DispenseSlot RW 357

Values per slot (slot logic)

Slot valuereadable in slotwritable in slotNumber
Occupied0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–1
OccupantHash0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–2
Quantity0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–3
Damage0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–4
Class0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–12
MaxQuantity0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–15
PrefabHash0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–17
SortingClass0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–24
ReferenceId0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–26
FreeSlots0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–31
TotalSlots0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101–32

Example: address by name

Reads Quantity, 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.

# Vending Machine address by name
define DEVICE -443130773  # StructureVendingMachine
define NAME HASH("Vending Machine")  # name in game (labeller)
define TARGET 1  # On 1 = on
alias value r0

start:
yield
lbn value DEVICE NAME Quantity 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

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

Slots and modes

#SlotTakes
0ImportNone
1ExportNone
2StorageNone
3StorageNone
4StorageNone
5StorageNone
6StorageNone
7StorageNone
8StorageNone
9StorageNone
10StorageNone
11StorageNone
12StorageNone
13StorageNone
14StorageNone
15StorageNone
16StorageNone
17StorageNone
18StorageNone
19StorageNone
20StorageNone
21StorageNone
22StorageNone
23StorageNone
24StorageNone
25StorageNone
26StorageNone
27StorageNone
28StorageNone
29StorageNone
30StorageNone
31StorageNone
32StorageNone
33StorageNone
34StorageNone
35StorageNone
36StorageNone
37StorageNone
38StorageNone
39StorageNone
40StorageNone
41StorageNone
42StorageNone
43StorageNone
44StorageNone
45StorageNone
46StorageNone
47StorageNone
48StorageNone
49StorageNone
50StorageNone
51StorageNone
52StorageNone
53StorageNone
54StorageNone
55StorageNone
56StorageNone
57StorageNone
58StorageNone
59StorageNone
60StorageNone
61StorageNone
62StorageNone
63StorageNone
64StorageNone
65StorageNone
66StorageNone
67StorageNone
68StorageNone
69StorageNone
70StorageNone
71StorageNone
72StorageNone
73StorageNone
74StorageNone
75StorageNone
76StorageNone
77StorageNone
78StorageNone
79StorageNone
80StorageNone
81StorageNone
82StorageNone
83StorageNone
84StorageNone
85StorageNone
86StorageNone
87StorageNone
88StorageNone
89StorageNone
90StorageNone
91StorageNone
92StorageNone
93StorageNone
94StorageNone
95StorageNone
96StorageNone
97StorageNone
98StorageNone
99StorageNone
100StorageNone
101StorageNone

Building and deconstruction

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

  1. 1

    Place

    Take back with Hand Drill

  2. 2

    Build stage 2

    Take back with Crowbar

  3. 3

    Build stage 3

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Vending Machine)

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.

DeviceImportExport.ExportConnectionId1
DeviceImport.ConnectionTypeFlatExhaustive
DeviceImport.ImportConnectionId0

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere