Stationeers

Stationeers

Not enough ratings
Vulcan Brutal Start Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
195.297 KB
Jan 20 @ 10:16am
1 Change Note ( view )

Subscribe to download
Vulcan Brutal Start Script

Description
This is the script I use during a brutal start on Vulcan. It runs in an AC unit that is used to cool my O2/CO2 supply. It also controls a growlight and solar panels.​

#This script is an all-in-one control script for a minimalist base on Vulcan. #To set up the ac unit, nighttime air is to be pumped through the input and released #from the output, while the air tank being cooled is hooked into the waste connection. alias acUnit db #ac for cooling alias intakeVent d0 alias daylightSensor d1 define panelId HASH("StructureSolarPanelDual") define growlightId HASH("StructureGrowLight") define maxAirTemp 298 #temp to start cooling air tank define minAirTemp 293 #temp to stop cooling air tank define maxCoolantTemp 401 #temp below which to use as coolant define maxOutletTemp 410 #max exterior temp while cooling (uses ac output) define rotation 270 #solar panel horizontal rotation define lightMinutes 5 #minutes for growlight ON per cycle define nightMinutes 3.3333 #minutes for growlight OFF per cycle alias timer r15 alias totalTime r14 alias nightTime r13 #set up initial parameters mul totalTime lightMinutes 120 mul nightTime nightMinutes 120 add totalTime totalTime nightTime s acUnit Setting 420 #nice StartIdle: s acUnit Mode 0 s intakeVent On 0 DoIdle: jal DoAux yield l r0 acUnit TemperatureOutput l r1 acUnit TemperatureOutput2 slt r0 r0 maxCoolantTemp sgt r1 r1 maxAirTemp and r0 r0 r1 bnez r0 StartCooling j DoIdle StartCooling: s intakeVent On 1 DoCooling: jal DoAux yield l r0 acUnit PressureInput sgt r0 r0 3000 #high pressure to increase efficiency, but not produce liquids s acUnit Mode r0 l r0 acUnit TemperatureInput l r1 acUnit TemperatureOutput2 slt r0 r0 maxCoolantTemp sgt r1 r1 minAirTemp and r0 r0 r1 bnez r0 DoCooling l r0 acUnit PressureInput #flush input line when done to prevent heating beqz r0 StartIdle yield jr -3 DoAux: #do solar tracking l r0 daylightSensor Vertical sub r0 90 r0 sb panelId Vertical r0 l r0 daylightSensor Horizontal add r0 r0 rotation sb panelId Horizontal r0 #do growlight timer sub timer timer 1 sgt r0 timer nightTime sb growlightId On r0 slez r0 timer select timer r0 totalTime timer j ra