Stationeers

IC10 / MIPS script library

Browse community-submitted Stationeers scripts. Search, filter by tag, copy with one click, and submit your own to share with everyone.

2 scripts

Battery low-power alarm

by DragonflyGamerUK

Switches on an alarm, horn, or light when your station battery drops below 25% charge, so you get a warning before the lights go out. Adjust the threshold to taste.

Setup required

Station Battery on d0, Alarm / Horn / Light on d1. Threshold is a 0-1 ratio (0.25 = 25%).

IC10 · 11 lines
# Battery low-power alarm
alias Battery d0
alias Alarm d1
define Threshold 0.25   # 25% state of charge

main:
yield
l r0 Battery Ratio     # 0..1 charge level
slt r1 r0 Threshold    # r1 = 1 when below threshold
s Alarm On r1
j main

Dual-axis solar tracker

by DragonflyGamerUK

Points every solar panel at the sun for maximum power, all day. Works for both standard and dual solar panels on the same network.

Setup required

Place a Daylight Sensor and wire it to the IC Housing's d0 pin. All solar panels must share the same data network as the housing.

IC10 · 14 lines
# Dual-axis solar tracker
alias DaylightSensor d0
define SolarPanel HASH("StructureSolarPanel")
define SolarPanelDual HASH("StructureSolarPanelDual")

main:
yield
l r0 DaylightSensor Horizontal
l r1 DaylightSensor Vertical
sb SolarPanel Horizontal r0
sb SolarPanel Vertical r1
sb SolarPanelDual Horizontal r0
sb SolarPanelDual Vertical r1
j main