Space Engineers

Space Engineers

Pressure Lockdown Protocol
17 Comments
SJ_Omega  [author] 5 May, 2023 @ 4:35am 
@bazingaaa Are you talking about the mods page in Space Engineers? If so, it's an in-game script, so you just need to subscribe, then load it onto a programmable block.

Also, I've got an overhauled version of the script that I'm planning to upload soon.
S.T.A.L.K.E.R. 4 May, 2023 @ 5:45pm 
I can't find it at mods
TheBlueChocolate 10 Jul, 2021 @ 6:02am 
Thanks, it now works (I guess I don't need to tell you how I set it up).
Having tried things a bit, I guess your script consider every configured room as airlocks linked to other airlocks.

However, I noticed one hing: When using the OpenLock argument while the inner door is open, it start depressurising before the door is fully closed, and sometimes don't switch the door state (Keep the inner door on and the outer door off)

One thing I would like is a way to auto open the doors once unlocked (Could be a tag).
Another suggestion I have is to add a different display, for the inside of an airlock (example : Display the room pressurisation, A connected room and the other connected room).

I tried multiple airlock script, this updated script is not the one with the most features (example : No detailled display, but that's not a problem for me) but it is easier ton configure than scripts with more features.
SJ_Omega  [author] 10 Jul, 2021 @ 12:05am 
@TheBlueChocolate I just made a small fix and uploaded it. Let me know if this newest version works. If not, could you walk me through what you did for set up?

Did you rename the doors and vents to include sector tags? Did you set up the vent actions?

This is one of my older scripts, and looking at it now, I realize it badly needs some tweaks. It probably wouldn't hurt for me to do a tutorial video as well.
TheBlueChocolate 9 Jul, 2021 @ 4:57pm 
I tried to set up a test platform for this script, but it didn't work. At first, I thought I set it up wrong, so I downloaded your "Pressure Lockdown Demonstration Chamber (Using the old version of the script), and apart from the wrong font scale for the LCD, It was working fine.
Then I tried to load the latest version of the script inside another PB, and turned off the other one, and It didn't work anymore. Then I Turned the lates version off an the old version back on and it worked...

The config on the demonstration chamber looks like the one you describe, so my questions are
WTF is going on? Why does the latest version not work but the old one does?And How can I use the new one then?
SJ_Omega  [author] 22 Jun, 2020 @ 3:25am 
Glad you got it working, and thank you for the suggestions. I definitely think an override all is a good idea, and shouldn't be too hard to implement.
SNBartek 21 Jun, 2020 @ 11:37pm 
Ok. That was my bad. Now i understand how this script works. I didn't have the "CheckDoors" command in the vent, so the script would close the door, but not check the pressure difference after closing. Now everything works fine. If you will want to change the script in the future, i have a two suggestions. Dimming lights during lockdown and option for override all sections. Thank you for this script! Its amazing! :D
SJ_Omega  [author] 21 Jun, 2020 @ 2:29pm 
I have a couple thoughts on what it could be:

Are you running the "CheckDoors" command from the first vent trigger action? Did you include the section tag? You can also run the script with default action from the vent trigger as well. This would actually run a door check for each vent. The door won't lock immediately. It will only lock once the room is pressurized.

If that doesn't work, I'd also check the name of the door that's not locking. Is there more than 1 word before the first sector tag? (i.e. something like "Hangar Door S01 S02"). If that is the case, you'll need to rename the door so that there's a single word before the sector tags, so something like "Door S01 S02" or "Hangar_Door S01 S02".

This is one of my older scripts. In the future I really need to go through and make the whole thing more user friendly.
SNBartek 21 Jun, 2020 @ 10:38am 
None of that. I am trying to make an emergency lockdown if the hull is damaged. At this moment i named two vents (in two sections) and gate(from frostbite). Vents uses first setup so i dont use timer block. Everything works fine, but after closing door, they arent turned off. They only turn off if they were closed when the script was activated
SJ_Omega  [author] 21 Jun, 2020 @ 9:51am 
@SNBartek Is this specifically in a section you're using as an airlock or a hangar?
SNBartek 21 Jun, 2020 @ 4:12am 
On your test world script looks amazing. I was trying to use it on my ship, but i have a problem. When door is open at the moment of depressurisation, script closes door but doesnt turn it off. Switches the door off only when the door was closed during depressurisation. Do you have an idea what I could do wrong?
SJ_Omega  [author] 5 Aug, 2018 @ 9:33pm 
I think that might be doable. :steamhappy:
Jim Paper 5 Aug, 2018 @ 10:59am 
That a good news. By the way could you add option where after fully pressurized door automatically open up? But still left option where door after lockdown stay closed?
SJ_Omega  [author] 5 Aug, 2018 @ 8:30am 
Thank you Jim Paper. That's a possiblilty I didn't concider. I'm planning to release a beefier version of the script in the near future. I'll try to have a look at that before I update it.
Jim Paper 4 Aug, 2018 @ 12:53pm 
there is a Bug inside your code if you use OverrideDoor command between "S1"_"S2" but if you left one door open between "S2"_"S3" the oxygen from room will never be the depressurized. also same problem whit ResetOverride door from sector whit broken wall will be not closed
Dr. Distortion 29 Aug, 2017 @ 9:47pm 
I've been needing this. Thank you!
Stelnor 22 Aug, 2017 @ 8:14am 
interesting