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

Solar panal dual axis tracker, mapped to pins

by DragonFlyGamerUK

Keeps your solar panels tracking the sun in both the horizontal and vertical plane, this code assumes that the panels are mapped to pins d1 for the nomal solar panel and d2 for the 5 x 1 normal solar panel

Setup required

d0 - Sun Sensore d1 - Nornal single solar panel (not dual or heavy) d2 - Normal 5 x 1 solar panel (not dual or heavy) Sun sensore needs to be on the power generation side of the IC Housing

IC10 · 18 lines
alias DSens d0
alias Sol1 d1
alias Sel5 d2

main:
yield
l r0 DSens Horizontal
l r1 DSens Vertical

s Sol1 Horizontal r0
s Sel5 Horizontal r0

sub r2 90 r1

s Sol1 Vertical r2
s Sel5 Vertical r2

j main