Space Engineers

Space Engineers

Oxygen Lockdown
311 Comments
Verkos May 9 @ 8:02am 
im make edits to me save and its working so write and i can show it ;)
Verkos May 9 @ 5:42am 
nice script working good, and i have suggection to disable doors to decompressed sections from prevent to miss opening
MMaster  [author] Feb 22 @ 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 Feb 21 @ 6:52pm 
Does this mod still work?
Bear Aug 17, 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 Apr 13, 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 Apr 9, 2022 @ 11:24pm 
The doors won't open after lock down and I followed all of the steps
KittenPixel Jun 6, 2021 @ 3:59pm 
any stations with this yet? that I can use
Heroic_Brine Mar 14, 2021 @ 11:21pm 
It works fine.
Feel free to add me then we can find sometime to teach you.
Fry™ Mar 14, 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 Mar 14, 2021 @ 9:32am 
I'll check but it properly still works
Fry™ Mar 13, 2021 @ 1:02pm 
Is this Script still working? ive tried everything to get it to work for me with no luck
spaghet_again Nov 22, 2020 @ 5:59pm 
will it lock down if there is corona
GrandBravo Apr 5, 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 Feb 28, 2020 @ 11:43pm 
johnraku
Is the map out yet?

no not yet
HaloSpartanCats Feb 28, 2020 @ 5:23pm 
Is the map out yet?
Heroic_Brine Jan 27, 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 Jan 26, 2020 @ 12:29pm 
i just cant figure it out :/
ThatGuyConnor Jan 26, 2020 @ 12:17pm 
oh ok thanks is there any good tutorial for it?
Heroic_Brine Jan 26, 2020 @ 12:34am 
@ThatGuyConner

Yes it still works, i use it on a regular basis.
ThatGuyConnor Jan 25, 2020 @ 1:25pm 
does this still work?
Heroic_Brine Jan 24, 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 Jan 11, 2020 @ 10:34am 
is filling up [0.0%]
Feuerspucker Sep 19, 2019 @ 8:16am 
But still keep its original function.
Feuerspucker Sep 19, 2019 @ 8:16am 
is it possible to change the script so if you enter an argument that the sections get locked down?
Phoenix Jun 27, 2019 @ 8:07am 
Is there a way that when doors are in 'lockdown' to also turn the doors off? :)
R_Oerich May 31, 2019 @ 11:49pm 
@MMaster
Thanks for the answer. it works.
Heroic_Brine Apr 28, 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 Apr 28, 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] Apr 28, 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 Apr 28, 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 Apr 27, 2019 @ 6:26am 
does this still work?

Heroic_Brine Nov 1, 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 Nov 1, 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 Oct 11, 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 Aug 5, 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 Mar 4, 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 Jan 7, 2018 @ 8:35am 
Díky bro...
Heroic_Brine Jan 2, 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:
http://steamcommunity.com/sharedfiles/filedetails/?id=416810412
"
also this mod dose not include any doors only a scrip.
PandaPlayZ Jan 2, 2018 @ 10:13am 
What is the name of the mod with this doors?
Andman Nov 19, 2017 @ 4:20am 
Thanks a lot
TenTech Nov 19, 2017 @ 3:15am 
I popped over from the LCD one to check, and you've juuust updated it, heh. Thanks muchly!
MMaster  [author] Nov 19, 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 Nov 19, 2017 @ 1:11am 
An update would be very nice
DarkNova Oct 20, 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 Oct 2, 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) Aug 29, 2017 @ 11:34am 
Is the ship available yet?
JangoXIII Aug 17, 2017 @ 7:59pm 
dang, its not working
Xyadran Aug 12, 2017 @ 7:38am 
becaus it not working again
Xyadran Aug 12, 2017 @ 7:36am 
looks like this needs another small update lol