Space Engineers

Space Engineers

Airlock Control
552 Comments
Sacrifxion Dec 28, 2024 @ 6:55pm 
Hey, very nice script!
Thank you for this work!
Can you add an "autoclose" feature pls?
MMaster  [author] Aug 25, 2024 @ 2:37pm 
@RaZ its hard to say what's wrong I've got testing room with 2 airlocks and it works completely fine.

@Octavius that's not something I am planning to add as groups are much more suitable to group blocks together than having to write to custom data for every single block:
1. groups have in-game interface allowing easy change for multiple blocks at once
2. groups have scripting interface which allows for fast access in scripts
3. looking for blocks with specific custom data in them would require checking custom data of every single block on ship/station regularly which would be very bad for performance
Octavius Aug 25, 2024 @ 1:04pm 
would it be possible to have the setup of each airlock moved to the custom data of the doors and airvent themself instead of needing to make 3 groups each airlock
RaZ I L May 21, 2024 @ 3:25am 
having problems with this script, works fine with 1 airlock but when i add another airlock to the rear of the same room strange thing start happening, both airlocks have different names i.e Station Airlock, for the front Airlock and Station Rear Airlock for the airlock at the rear of the room, if i use just 1 airlock all the time everything works fine but if i attempt to use both airlocks then strange things start happening, i.e airlock doors don't open or close as they are supposed to or i get and air vent depressurise repressurise loop that drains all the oxygen tanks and the only way to fix it is to recompile the programmable block.
MMaster  [author] Apr 28, 2024 @ 10:53am 
I'm afraid I can't help you - It's video from 8 years ago, the game and interface looked different back then.
Princess Yoda Apr 27, 2024 @ 9:43pm 
Hey MMaster, thanks for the mod :) Please could you tell me what mod you are using to have this terminal appearance with colors ? I couldn't find a mod that retexture the terminal menues and I really like the one you are using in that video. thanks
Aschran Oct 5, 2023 @ 2:05pm 
Thank you, with the new buttons panels with integrated lcd, i think it would be very good addition, thank you for considering this!
Atomhirsch Oct 4, 2023 @ 11:34am 
Sure, i didnt test it yet :D
MMaster  [author] Oct 4, 2023 @ 11:21am 
@Aschran good idea. I do not have access to my development machine right now, but I will try to look into it.
@Atmohirsch As far as I know there is nothing that would offer out of the box airlock control with all the functionality like this script does, but everyone is free to use whatever they want :)
Atomhirsch Oct 4, 2023 @ 4:28am 
Does this script still make sense while having ECs now?
Aschran Sep 19, 2023 @ 10:49am 
Hello, great script, do you plan to make it compatible with the Sci-Fi One-Button Terminal?
MMaster  [author] Aug 26, 2023 @ 12:13pm 
As the description says it was not our soundpack, it was made by Tartaross and called "Tartaross Inc. A.I. Soundpack #2: Community Wishlist". We just liked it and recommended it.

Unfortunately if he decided to remove it then there is nothing I can do about it - I don't have any replacement and you will have to find some other soundpack. I will remove the link from the description since its no longer accessible.
LePtitMetalleux Aug 25, 2023 @ 4:31pm 
Soundpack's link is down http://steamcommunity.com/sharedfiles/filedetails/?id=431231192 could you give an other link to get your pressurizing and depressurizing sounds ?
MMaster  [author] Aug 2, 2023 @ 2:42am 
I've tested it just now - it works with hangar doors both vanilla and modded, lights do not get turned off, everything works as it should. Not sure what is the issue in your cases, but I can assure you the script works as it always did.
Herr Doktor Aug 1, 2023 @ 11:12pm 
This seems to be doing everything I want...however it's turning the lights off. It changes their colors just fine. But they're off.
Elafis Apr 6, 2023 @ 9:39am 
Hello. I need help. Airlock doesn't work when I try the argument used. How to fix?
Next question. Is it possible to make an exception for the hangar door? I want to open a small hangar and if the big one is depressurized, the small one will leave both the outer and inner doors open, the inner ones lead to the big hangar, I found an option related to air pressure, but the outer doors will still close. Thnk you
Zaygh Feb 5, 2023 @ 7:53pm 
I'm trying to use Warfare II Hangar doors and every airlock script I've tried has consistently failed to fully close the doors, inner and outer, by a little bit. I thought my problems were fixed because this script has an option to increase the time taken to close but unfortunately that didn't help either.

I'm playing modded but I can't for the life of me figure out what would even cause this. Is this a common problem or an issue with just me, because if it's just me I'll have to sift through my mod list.
Mr.Green Feb 4, 2023 @ 8:34am 
Help me please, I beg you. I LOVE this mod, but I cannot get the airlock to work
YggdrasSoftGaming Jul 19, 2022 @ 10:03am 
Not sure if this has been addressed before or not but, how do I get the script to recognize the LCD screen on the "Sci-Fi One-Button Terminal" as I'm able to access it with other scripts such as the Fancy Status Displays script. I attempted to just use FSD to display the airlock status but... it can't seem to keep up with the airlock itself. The doors are already open before the display shows the vent is reading the room as (de)pressurized.

TL;DR - Can't figure out why the script doesn't recognize the LCD on the "Sci-Fi One-Button Terminal"
NorthWestTrees Jul 17, 2022 @ 12:57pm 
there may be a issue with warframe hanger doors with windows not working correctly, I hooked them up with the system for outer doors and nothing seemed to happen I do have a working airlock using regular doors though so I know the script is working just some issues with hanger doors I think, any chance to release a patch?
NorthWestTrees Jul 16, 2022 @ 8:09pm 
Just a update it was the game for some reason I did some digging around and it seemed to have to do with the %appdata%\roaming\SpaceEngineers folder most likely a config file, I found a old bug report and gave them the folder and logs so hopefully it will be fixed soon. deleting the folder fixed the issue I just backed up the old one and then let the game regenerate the files and it worked again if anyone has a similar issue.
NorthWestTrees Jul 16, 2022 @ 6:39pm 
I am not sure if anyone has the same issue but SE just decided to not let me use the open workshop list in the programmable block, like I click edit and then go to browse the script but the entire screen is frozen, I don't have any mods installed only scripts and it was working earlier today before I subscribed to this mod with the ones I did have, Any ideas what the issue could be please let me know because I really want this but I can't really use anything until I get this issue fixed and its not like I can go to Keen Software about the issue as program scripts need to be in experimental mode.
Nullharp Jun 22, 2022 @ 11:42pm 
In reply to Professor Farnsworth, it should all be the same name, the Inner Group, the Outer Group, and the Control Group
DutchGuy OnAStick May 31, 2022 @ 8:06am 
heya, amazing script but i have a question i did all the stuff i needed to do like you guys said. but as soon as i fill in the argument of the programmable block when you put it in a button panel. nothing happens :( i tried all the names and groups.

do you guys still remember wich group you put in? the airvent group or the inner/outer door group
Heroic_Brine Apr 7, 2022 @ 12:14am 
Blarg's aggressive airlocks works quite nicely just rename your doors to sliding door and your tag.
if you don't care that much about air loss whips autodoors and airlocks is perfect. although i have not tested either with the new doors the renaming just usually works with new dlc doors.
jglenn1562 Apr 6, 2022 @ 10:59pm 
Would you happen to know of a newer auto-airlock handling script? I already used SDS-OS's auto airlock handling, but I don't like how it handles time, and I just finished testing Blarg's aggressive airlocks, but that too, seems to be slightly broken with the new sliding hatch doors from Warfare II DLC.
jglenn1562 Apr 6, 2022 @ 10:56pm 
*Also my oxygen piping system is completely isolated from my hydrogen piping, and other conveyor systems.
jglenn1562 Apr 6, 2022 @ 10:54pm 
@Heroic_Brine, There's plenty of space, as this ship doesn't use O2/H2 generators, only tanks. However, this leads me to wondering if it's something to do with my oxygen supply being modular. The O2 tanks are merged to the ship, and connected to a connector, so they aren't necessarily on the same grid.
Heroic_Brine Apr 6, 2022 @ 10:47pm 
Do you have space in your oxygen tank? It might be depressurizing but since the tank is full it cannot empty the actual room. generally you should have a separate tank for your airlocks. that begin said might wanna get a slightly newer script that can be automatically setup. most newer scrips require either no setup or just setting a single group for everything.
jglenn1562 Apr 6, 2022 @ 9:54pm 
I followed instructions as carefully as possible, unfortunately this script doesn't seem to work. First thing that's broken is being able to change the "Inner", "Outer", and "Control" tags to something else, nothing happens. Next thing that's broken is when configuring an airlock exactly to standard setup; the outer door opens, lights change, but after closing the outer door, nothing happens. The air vent doesn't do anything, and the inner door never unlocks. It really is a bummer, since I thought I finally found a reliable solution to my auto airlock mess.
Heroic_Brine Feb 15, 2022 @ 11:22am 
I would suggest you find a newer script but if you are set on this one, There are 3 types of buttons
in pressurizes the airlock meaning if both sides are depressurized and you have set up vents, it won't do anything.
out depressurizes the airlock removes the air and opens the correct door
toggle toggles the airlock meaning if it is currently depressurized it will pressurize.

i suggest just using toggle it works the best, in and out are most useful if you want to have a button that only opens the correct side, (so an accidental click dose not make you have to wait)
Cigarette Feb 14, 2022 @ 8:30pm 
Please for the love of god explain the buttons, i got no idea how to do them.
mJrA Aug 30, 2021 @ 8:05am 
To be honest it works 100%, it is always good to have a closed oxygen system seperated with the rest of Base/Station/Ship. I so far didnt have any issues
Mercury Jul 19, 2021 @ 9:34am 
Doesn't seem to work for me - checked everything thrice
Heroic_Brine May 25, 2021 @ 5:32am 
No this script is too old
PhoenixIO May 22, 2021 @ 2:20pm 
Is there a way to have the LCD display work with the sci-fi buttons?
Heroic_Brine Apr 19, 2021 @ 5:10am 
This is not a mod but a script, altough sadly it is very outdated at this point i suggest you use another airlock script that is more modern. i suggest whips, check the update date on a script before using it, this one has not been upadated since 2019.
Orca Apr 18, 2021 @ 4:43pm 
Broken mod , once activating the button to cycle the airlock it will depressurise correctly but will then cause a bug that will cause all vents in that vessel to no longer re-pressurise the vents say there is a leak but the room is acutely sealed
this is on a persistent server

MMaster please fix , great mod when working correctly :steamthumbsup:
TheBlackFox Mar 15, 2021 @ 4:27am 
Can I make the script ignore Airlocks on other ships that are connected (via connector)? For Example I have a big capital ship that has two "dropships" on each side with the same script in it (one in each ship), so I have three in total and the Airlocks don't work on the main ship for some reason. The Air vents are definetly connected to oxygen tanks of which a couple are full and a couple with enough space to depressurize.My theory is that the scripts on the dropships are interfering with the Main ship's script.
Doctor Verum Feb 20, 2021 @ 4:29pm 
I've realised a huge problem with this mod.

Essentially, because this script for some reason requires that the air vent depressurises the airlock before opening the outer door, it will fail to depressurise and thus also open the outer doors if the oxygen tanks are full.

Since there is no effective way to get rid of oxygen in an atmospheric environment this will effectively force the player to construct new oxygen tanks and prevent them from becoming full, or else the airlocks will be quite literally inoperable.

I recommend setting the script to ignore depressurisation requirement when tanks are full, because this is a huge issue.
Doctor Verum Feb 20, 2021 @ 4:22pm 
For some reason it now refuses to open the outer airlock doors.
Doctor Verum Feb 20, 2021 @ 4:22pm 
I managed to fix the first thing but for some reason this system is prone to breaking down every 5 minutes. Having the system close/open automatically based on air status is unstable and prone to breaking, should switch it to just cycling the airlock. The whole automated thing is pretty redundant.
ProzAction Jan 16, 2021 @ 8:16am 
Can this be modified so that the Air Vents go to sleep when the airlock isn't being cycled? They use a lot of power, 100kW each so it's very wasteful to have them idling in a large base.
EvilTreerat Jan 9, 2021 @ 3:46pm 
Working great here. Was trying to make a number of T-shaped airlocks work in my ship using just timer blocks and the air vents but something always got stuck. Put the script in as per setup (minus lights & sound blocks) and after a little fixing of group names work just fine. As a plus I know have half a dozen extra timer blocks to play wiith. :)
The Caveman Jan 7, 2021 @ 4:12am 
This breaks on planets with Oxygen....because the Tank fills up and then the room cant "depressurize"

I am on a custom planet with sandstorms that remove the oxygen when the sandstorm happens hence why i need the airlock
game plays 1230 Dec 8, 2020 @ 1:08pm 
Balloonie-cat i just use tanks (spreated from the oxygen system and fill them up on earth)
game plays 1230 Dec 8, 2020 @ 1:06pm 
hay i fix the problem of the airlock however i made a new one the program seem to open and close any-door it's made to open and close (every group will be activated only toggle matters in the argument)
i need some help to diagnose this problem
mainly where the problem would lay at
to my eyes everything is obeying what its told to obey
ronon_dex Oct 24, 2020 @ 5:57pm 
the airlock doesnt adapt to external pressure with a vent (on planets),is this a problem with the script or my setup?
shiva chirr Oct 13, 2020 @ 5:08pm 
i wonder if your going to add support for the new lcd button panels. might be a good idea with this script, if its still supported. otherwise i have no issues with it
Heroic_Brine Oct 1, 2020 @ 7:25am 
@Balloonie-cat
It is not really a problem filling oxygen tanks up just add a seperate tank for the airlock then it never fills up too much (unless you have a really massive airlock then you would need multiple)
While i have not played in a long time i can help you if you add me we could figure out a time when we could join a world together i can properly help you xD.