Stationeers

Stationeers

Adaptive Airlock
17 Comments
Vulpsune Aug 5 @ 1:28pm 
You're getting an "out of bounds" error because you're using dr12 and dr13 as device registers, which do not exist in Stationeers MIPS. The dr## syntax is invalid — it goes beyond the normal register space.

In Stationeers MIPS, you must use the actual aliases you've defined, like OpenedDoor, ClosedDoor, etc., which map to d0, d1, d2, etc.

Replace:

l r0 dr12 Setting
l r1 dr13 Setting

With:

l r0 DoorInterior Setting
l r1 DoorExterior Setting
Vulpsune Aug 4 @ 10:11am 
doesnt work
boblefurieu Apr 9 @ 1:09pm 
Got the same error : Error OutOfDeviceBounds at line 87
Macgunius Aug 15, 2024 @ 7:30am 
dr12/dr13 are OpenedDoor/ClosedDoor
Sakata Mar 24, 2024 @ 4:13am 
@TryCatch
Hey, just wondering if you planned to update this code. Looks a lot better than some of the other airlock IC's ive seen but the bug on line 87 I don't know how to fix (not sure what dr12/13 are)
Ed Mar 13, 2024 @ 9:24am 
yea this IC seems broken... :(
Kyr Dec 11, 2023 @ 12:05pm 
When I turn on the IC Housing I get an "Error OutOfDeviceBounds at line 87".
ShamblerDK Aug 28, 2022 @ 10:59am 
For some reason it's super slow for us. We are on a planet, with 2 kPa outside and ~35 kPa inside. The airlock is at the top of an elevator with 1 space inbetween the airlock and the elevator, if that is of any importance.
Flat Duck Fridays Mar 13, 2021 @ 9:02am 
It should be noted that if you are retrofitting an existing airlock, the active vents will have the PressureExternal and/or lock settings set by the old airlock chip. You should deconstruct and reconstruct any existing active vents in your airlock, before turning on the IC housing. This is probably the issue that @Cpt Nuggets was having below.
Vorg Jan 16, 2021 @ 10:56am 
Going to look at this latter today sometime. Think I know how you are doing this with just 1 chip. A change is coming from testing branch that lets IC10 do batch reading through hash. The advantage is, you don't need to use a pin for that. I always put my airlock on an APC so it's the last thing to go down in power outages. Because of that, you can is "lb/sb" batch commands to work the diode freeing up a pin. If you stick with just one sensor, you can do the same for that. If you use different door types for inside and outside, you can free up 2 pins there. Lots of options.
小月猫 Dec 15, 2020 @ 8:21pm 
i actually already found a fix for airlock speed, i have an active vent inside the wall girder, this is just to set the mode, i then use logic to read the mode the airlock sets on the active vent, then have it flip on 1 of my 2 volume pumps connected to a PASSIVE vent, one volume pump will pump fresh air into the airlock, the other will suck everything out into my filtration system. as it relies only on passive vents, its very fast
Wafflez [CZE] Dec 9, 2020 @ 11:54pm 
Cpt. Nuggets, the active vent is the only constraint, which can pump out max of 101 kpa. I am afraid you will have to change your design to accommodate this limitation.
Cpt. Popoto Nov 17, 2020 @ 10:11am 
I can't get it to pump past 101kpa, I have two rooms that are at 150kpa, works perfectly 101 and below, any ideas on how i can fix this?
小月猫 Aug 18, 2020 @ 9:11pm 
theres nothing wrong with this, its just not going to work for what i needed, since the way i intend to use it there will be multiple entrences to the room that changes pressure, meaning the airlock can be on the wrong side when you cycle and not be able to know that the pressure changed

i can likely get this to work with a minor modification to have it read from a sensor outside using another chip
TryCatch  [author] Aug 18, 2020 @ 6:08pm 
it's a pity, I had no intention of misleading. It automatically measures and memorizes the pressure with every cycle. Therefore, in my opinion, I see no point in additional sensors for each side.
小月猫 Aug 18, 2020 @ 1:59pm 
what im reading this wont do quite what i want, one side will depressurize and pressurize as it does its function, and will have a seperate door as well, if the airlock has the door on that side closed it cant read the pressure change and will mess up, adding a second IC chip to read the pressure from a gas sensor on both sides would be helpful for this task
Chrisbitz Aug 12, 2020 @ 5:46am 
Nice to see a detailed description. Might give it a try sometime!