Space Engineers

Space Engineers

Airlock Manager
12 Comments
Noy  [author] 3 Aug, 2017 @ 8:24pm 
Currently working on a version 2.0 that should be more stable and easier to setup. Will post a link to it once I finish.
BladedDingo 18 Dec, 2016 @ 2:38pm 
Do you still maintain this script? I've tried using it as of the beta, but it doesn't seem to want to work properly.

When I am inside my ship, and I click the inner airlock door, I get blasted with vacuum, it doesn't equalize, then open, it just opens right away making air rush in, then barely waits for it to decompress before opening the outer door.

Then when I come back in from outside, it does the same, it decompresses the chamber, then lets air flood in from the interior room to fill it back up.

Shouldn't it be waiting to decompress before opening the other door, or equalizing the pressure first? I don't know if I'm doing anything wrong, the tags seem to be set up correctly.
737✈Garrus 21 Mar, 2016 @ 8:39am 
Haha cool thumbnail :)
Noy  [author] 3 Oct, 2015 @ 7:45am 
and updated the airlock code. It's now better. Though now I need to make it filter out blocks from other ships/station that are docked, to prevent logic collisions, and boost performance in those scenarios.
Noy  [author] 19 Sep, 2015 @ 7:01pm 
Just noticed that Keen added a door related variable. Will use this to make the airlocks more stable, accurate, and possibly removing the need for the "C>{state change delay}" tag.
Noy  [author] 28 Aug, 2015 @ 6:11am 
It's been a while since I touch this code but, if I recall, the situation you described should be doable. More likely something is tagged wrong.

Hall Door [Sector: N>Hanger]

Air Vent 1 [Sector: N>Hanger]

Toggle Light 1 [Sector: N>Hanger: T>:HangerD1]
hanger door 1a[Sector: N>Hanger: G>:HangerD1]

Toggle Light 2 [Sector: N>Hanger: T>:HangerD2]
hanger door 2a[Sector: N>Hanger: G>:HangerD2]

Toggle Light 3 [Sector: N>Hanger: T>:HangerD3]
hanger door 3c[Sector: N>Hanger: G>:HangerD3]
...

the tags should resemble the above. from there make sure that you are not maxed out for oxygen storage, and look to see if any of the individual blocks (typically airvents) are bugging out.
LuckyLegs 28 Aug, 2015 @ 2:42am 
Hi, really like the look of your script but I'm having a lot of trouble implementing it for use with a hangar. In this particular case, I have 6 hangar doors (3 on each side), a vent, and a door leading to a connecting hallway. I tried using the Sector tag for all objects involved, and all of the hangar doors are grouped, however the hangar won't depressurize upon opening.

Also, if the hangar doors are grouped and I command only one of them to open, are the rest supposed to open as well? This didn't happen for me.

Any help you could offer would be greatly appreciated.
Noy  [author] 11 May, 2015 @ 2:32pm 
I believe what you are asking for requires you to simple not use the A> tag. As that's what enables that automation. Granted if you do not use automation, the code defaults the air vent to always depressurize, to help prevent accidental air loss.
Steve 11 May, 2015 @ 12:15pm 
Could be my fault but when I enter the airlock the outer door opens/closes, then pressurizing, the inner door opens/closes and then depressurizing. Thats what I mean with "automated cycle".
For me it would be nice if i could set the airlock either to "automated" or to only "open/close door and de-/pressurize" if i would use a outer or inner door.

Maybe there is a way to do that yet and i dont get it.
Noy  [author] 10 May, 2015 @ 4:58pm 
The reason the airlock is left depressurized on idle, is that the outer doors are unlocked during idle (so you can open them without a button,) and could let all the air out, when opened unexpectedly. It's a simulaur issue with the inner doors as well (I can't "hook" into the door buttons to prevent them from opening before, the airlock is ready.)

Also what do you mean by "cycle automated or to open the doors separately", just so I understand exactly what you meant.
Steve 10 May, 2015 @ 5:12am 
[h1]Thanks for your work.[/h1]

I like that:
- i dont need to use additional buttons to activate the airlock
- the airlock is closed in idle

I dont like that:
- the airlock is always depressurized in idle. It would be great if the airlock stays in last state
- the inner door instantly opens even if the airlock isnt pressurized (new cycle)

I wish:
- I could configure the airlock to cycle automated or to open the doors separately





Hope the points are understandable. My English skills are... limited :D
Noy  [author] 1 May, 2015 @ 2:38pm 
Working on a really nice feature, right now. look forward to it.