Stationeers

Stationeers

Not enough ratings
AC code
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
154.790 KB
Sep 18, 2022 @ 8:49am
Jan 21, 2023 @ 9:52am
4 Change Notes ( view )

Subscribe to download
AC code

Description
​d0 -> input pump
d1 -> Input sensor

The code needs to read the pipe that sits on the volume pump input. Most ACs do not need an input sensor because it can read that information from the waste port, so you should leave that pin blank. The exception is the first row of cooling ACs that has a passive vent on the waste port.

Code is fitted with multiple safety checks. Keep the IC lid on the AC closed. If it still refuses to run, there's probobly not enough pressure in the pipe.
13 Comments
Volkar Davasten Sep 3, 2024 @ 7:43pm 
So after many hours of testing, I found an error with my previous code patch. Not sure why it even works, as I mixed up the breqz and brnez (they should be reversed). However, here is a more elegant version (replaces the whole patch segment):

select r1 IsCooling TempOut TempIn
sgt r1 r1 MinTemp
and r0 r0 r1
Volkar Davasten Aug 14, 2024 @ 10:36am 
For anyone having the liquid problem, here is a fix:

In the definitions section put the following (doesn't really matter where as long as it is before the Start: section, but I like to put it right after the max pump setting):

define MinTemp X #Replace X with the lowest temp you want the gas to get to in Kelvins

Then in the SetMode: section, there is a section that looks like this:

l r1 db Open
seqz r1 r1
and r0 r0 r1
s db Mode r0.

Put the following section of code after the and r0 r0 r1:

breqz IsCooling 2
sgt r1 TempOut MinTemp
brnez IsCooling 2
sgt r1 TempIn MinTemp
and r0 r0 r1

the new sections should look like this:

l r1 db Open
seqz r1 r1
and r0 r0 r1
breqz IsCooling 2
sgt r1 TempOut MinTemp
brnez IsCooling 2
sgt r1 TempIn MinTemp
and r0 r0 r1
s db Mode r0

This will work for both the hot and cold ac units, and will prevent the coldest side of the ac from going below the target temperature.
Yogi Jan 21, 2024 @ 9:01am 
Works just great, Thank you!
Lila Gummibärchen Nov 15, 2023 @ 6:28pm 
what can i do, if the gases go to liquid? If i pump more mol in the pipe and its cool down, n2 go by 95°C to liquid and my pipes are broken. can enybody help me? Thanks...
Sakata Oct 13, 2023 @ 4:24pm 
For some reason this explodes pipe on only one AC unit with 6 total running this code. Runs the volume pump despite being at well over 300MPa
Mikey Jun 4, 2023 @ 8:22am 
I think the code is broken after the update suddenly my ac units wont work i tried everything
Ouchtime May 30, 2023 @ 12:18pm 
Did this code break with the IC update? I can't get it to work. As soon as I insert the chip into the AC everything just shuts off
Skayriver Apr 20, 2023 @ 7:00am 
Lids of IC10 slots on AC should be closed (after you configured the screws)
Pressure of hot side should be sufficient enough. Just pump more H2 or N2 (best to use) or other gases inside hot pipe until AC start to cycle on and off. Then pump some more (look at first pump from hot side, it should be set below 30L to start ACs)
Schack Apr 5, 2023 @ 12:09am 
Hi
How to get it started?
I have Operational Temperature Efficiency: 0%
Temperature Differential Efficiency: 121 %
Pressure Efficiency: 0 %
And the cold curcuit don't get cooled down.
Rat Boy Mar 17, 2023 @ 2:21pm 
MrCanerican's modification will cause the pipes to explode eventually. The code works perfect without it.