Space Engineers

Space Engineers

Oxygen Lockdown
311 Comments
Verkos 9 May @ 8:02am 
im make edits to me save and its working so write and i can show it ;)
Verkos 9 May @ 5:42am 
nice script working good, and i have suggection to disable doors to decompressed sections from prevent to miss opening
MMaster  [author] 22 Feb @ 6:42am 
Not a mod, but in-game script but yeah.
Tested it just now - it is fine and dandy working like it always did :)
Operator_Yuri 21 Feb @ 6:52pm 
Does this mod still work?
Bear 17 Aug, 2022 @ 2:44am 
Doesn't work anymore, if I open a door it won't close and the alarm just turns on. But all sections are done right
Heroic_Brine 13 Apr, 2022 @ 4:07am 
Do you have space in your oxygen system so it can empty the airlock, and or do you have enough air in your oxygen system so it can fill the airlock?
Pailus 9 Apr, 2022 @ 11:24pm 
The doors won't open after lock down and I followed all of the steps
KittenPixel 6 Jun, 2021 @ 3:59pm 
any stations with this yet? that I can use
Heroic_Brine 14 Mar, 2021 @ 11:21pm 
It works fine.
Feel free to add me then we can find sometime to teach you.
Fry™ 14 Mar, 2021 @ 12:13pm 
Heroic_Brine if you could that would be amazing. maybe im just in the wrong trying to implement it. I love building but this coding stuff is foreign to me
Heroic_Brine 14 Mar, 2021 @ 9:32am 
I'll check but it properly still works
Fry™ 13 Mar, 2021 @ 1:02pm 
Is this Script still working? ive tried everything to get it to work for me with no luck
spaghet_again 22 Nov, 2020 @ 5:59pm 
will it lock down if there is corona
GrandBravo 5 Apr, 2020 @ 3:19am 
@MMaster, can you add a code that turns off the doors when closed? I had some twats venting my entire ice reserve just by opening the wrong doors by accident :steamfacepalm:
Feuerspucker 28 Feb, 2020 @ 11:43pm 
johnraku
Is the map out yet?

no not yet
HaloSpartanCats 28 Feb, 2020 @ 5:23pm 
Is the map out yet?
Heroic_Brine 27 Jan, 2020 @ 7:14am 
I figured it out with @ThatGuyConnor yesterday he mispleed O2 as 02, can be very difficult to see with se text. (just in case anyone else has the same issue)
ThatGuyConnor 26 Jan, 2020 @ 12:29pm 
i just cant figure it out :/
ThatGuyConnor 26 Jan, 2020 @ 12:17pm 
oh ok thanks is there any good tutorial for it?
Heroic_Brine 26 Jan, 2020 @ 12:34am 
@ThatGuyConner

Yes it still works, i use it on a regular basis.
ThatGuyConnor 25 Jan, 2020 @ 1:25pm 
does this still work?
Heroic_Brine 24 Jan, 2020 @ 5:40am 
@itegnis is filling up [0.0%] is useally caused by not having enough oxygen in you system another is having one vent not in the oxygen lockdown system set to decrompression
Disabled 11 Jan, 2020 @ 10:34am 
is filling up [0.0%]
Feuerspucker 19 Sep, 2019 @ 8:16am 
But still keep its original function.
Feuerspucker 19 Sep, 2019 @ 8:16am 
is it possible to change the script so if you enter an argument that the sections get locked down?
Phoenix 27 Jun, 2019 @ 8:07am 
Is there a way that when doors are in 'lockdown' to also turn the doors off? :)
R_Oerich 31 May, 2019 @ 11:49pm 
@MMaster
Thanks for the answer. it works.
Heroic_Brine 28 Apr, 2019 @ 3:38am 
@MMaster

also, just as I was getting ideas maybe add a maintenance mode where you would add a new group with all the section you would want in maintenance mode. then it would not force close any door, and only turn on lights and no sirens. Or something like that

that is of course if only if you are still modding/scripting.

:)
Heroic_Brine 28 Apr, 2019 @ 3:20am 
@MMaster

sure no problem

also could you add so we could use the built in LCD of the programmable block as a display it was recently added and would be really nice to have oxygen status there ( i have added it to the LCDs group but dose not work by default

also OMG that update frequency down to 10 works soooo much quicker.
MMaster  [author] 28 Apr, 2019 @ 1:10am 
I updated the script to remove the deprecation warnings. It should also fix the "Online" blinking that you've noticed. Everything should still work :)
Thank you Heroic Brine for helping other people here! Much appreciated :)

@R_Oerich you can try to modify the script to make it check more often.
Scroll down in the script and change line:

Runtime.UpdateFrequency = UpdateFrequency.Update100;

to

Runtime.UpdateFrequency = UpdateFrequency.Update10;

This will make it check for leaks 10 times more often.
Heroic_Brine 28 Apr, 2019 @ 12:51am 
@Leopard_432
Yes i can confirm that this still works (just tried in my test world)
tough it does come up with a few warnings when you compile it, it still works.
Glue_Drinker 27 Apr, 2019 @ 6:26am 
does this still work?

Heroic_Brine 1 Nov, 2018 @ 12:12pm 
@nirahiel
Yeah but don't place the o2 vent in any group or else every time it opens the alarm will go off
i surggest addin both doors as o2 section close to the group of the room next to the airlock incase there is a leak somewhere there
Nirahiel 1 Nov, 2018 @ 6:41am 
How would one use this alongside MMaster's Airlock Control ? Should I add the airlock as a O2 room but set it to not open doors on end of lockdown ? Or something else ?
R_Oerich 11 Oct, 2018 @ 5:14am 
@MMaster: Great mod used it for a long time.
But have anuthing possibly change the reaction time on this mod. I have notived that it takes ome time before the doors closes or opens again. Like it has quite a delay for registrating a leak.
I have also notice the "online" on the LCS's that others noticed..
GT500 5 Aug, 2018 @ 12:22pm 
MMaster, long time user of your mod. Is there a solution to seeing the LCD screen say "Online" for a split second on screen updates?
Jon 4 Mar, 2018 @ 1:40pm 
When can we get the map and preferably with the O2 lockdown already installed as it was in the demo. I checked all of your workshop uploads and failed to find the station.
Danielczech 7 Jan, 2018 @ 8:35am 
Díky bro...
Heroic_Brine 2 Jan, 2018 @ 11:29am 
@Panda_PlayZLP
Look in the description it clearsy says
"FAQ
What are those doors in the video?
Those are Sektans Airtight Doors:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=416810412
"
also this mod dose not include any doors only a scrip.
PandaPlayZ 2 Jan, 2018 @ 10:13am 
What is the name of the mod with this doors?
Andman 19 Nov, 2017 @ 4:20am 
Thanks a lot
TenTech 19 Nov, 2017 @ 3:15am 
I popped over from the LCD one to check, and you've juuust updated it, heh. Thanks muchly!
MMaster  [author] 19 Nov, 2017 @ 2:53am 
Hi everyone,

I've updated this one so it doesn't show the deprecated stuff warnings. Also - Timer block is not required anymore :)

Please update scripts in your programmable blocks.

Enjoy
Andman 19 Nov, 2017 @ 1:11am 
An update would be very nice
DarkNova 20 Oct, 2017 @ 4:06am 
Is Airlock Control the same as Oxygen Lockdown only the Airlock Control is more current or are the completely different Mods?
RareKiwi 2 Oct, 2017 @ 10:12pm 
Yea, update would be nice.

You can fix most of it easliy. Some corrections below.
Don't know anything about C# to fix the IsDepressurized obsoleteness

//475
light.CustomName = light.CustomName + " ~Dim " + light.Intensity.ToString("F1");
//553
light.CustomName = name.Substring(0, seppos);
//842
if (exact == "OxygenTank") _GridTerminalSystem.GetBlocksOfType<IMyGasTank>(blocks);
//844
if (exact == "OxygenGenerator") _GridTerminalSystem.GetBlocksOfType<IMyOxygenGenerator>(blocks);
//1113
ant.CustomName = ant.CustomName + message + "\n";
//1115
ant.CustomName = "PROG: " + message + "\n";
//1123
debugpanel.CustomName = "[DEBUG] Prog: " + message;
addi-4th (it/its) 29 Aug, 2017 @ 11:34am 
Is the ship available yet?
JangoXIII 17 Aug, 2017 @ 7:59pm 
dang, its not working
Xyadran 12 Aug, 2017 @ 7:38am 
becaus it not working again
Xyadran 12 Aug, 2017 @ 7:36am 
looks like this needs another small update lol