Space Engineers

Space Engineers

810 ratings
Oxygen Lockdown
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
41.482 KB
4 Apr, 2015 @ 9:06am
28 Apr, 2019 @ 1:05am
24 Change Notes ( view )

Subscribe to download
Oxygen Lockdown

Description
v:0.73 (1.190 compatible) Timer block not required anymore
In-game script by MMaster & Morphologis

UPDATE: Compatible with 1.185 - You need to install it again to programmable block just as you did first time.
Timer block is not required anymore!

Closes doors, starts warning lights, dims normal lights and plays sound in sections
if any of the section air vents report depressurization.
Reports leaking sections on text panels and LCDs.

This is vanilla script. So it supports non-modded games as well as modded.

NO PROGRAMMING NEEDED.


VIDEO BY MORPHOLOGIS
https://www.youtube.com/watch?v=t7LovBc7670


VERY SPECIAL THANKS
Morphologis for this idea, his help with debugging this script and for his support of community & awesome videos!
Make sure to check out his YouTube channel:
https://www.youtube.com/user/Morphologis


QUICK GUIDE:
* Load this script to programmable block:
  • Click Edit in Programmable Block control panel
  • Click Browse Workshop
  • Find Oxygen Lockdown in list
  • Click Ok
  • Click Check code
  • Click Remember & Exit
* Setup timer block to 1 second
* Set timer actions to: 1. run programmable block, 2. start timer
* Start timer

Setup groups for sections like this:
1. group needs to be named "O2 Section: Section Name"
This group should contain:
* monitored air vents inside section
* doors that will be closed during lockdown & opened when lockdown ends
* warning lights that will be turned on during lockdown & off when lockdown ends
* sound blocks that will play sound when lockdown starts

2. group is named "O2 Section Close: Section Name"
This group should contain:
* doors that will be closed during lockdown but not opened when it ends
(useful for NOT opening outside doors)
There needs to be O2 Section with airvent and the same Section Name for this to work!

3. group is named "O2 Section Dim: Section Name"
This group should contain:
* normal lights that will be dimmed (intensity lowered to 0.5) during lockdown
There needs to be O2 Section with airvent and the same Section Name for this to work!

4. group is named "O2 LCDs"
All LCDs in this group will report leaking sections.
* Use LCD Public title to specify header displayed on that LCD.
* Set LCD Public title to empty string to hide header.

EVERYTHING IS OPTIONAL - You don't need to use any doors, lights or sound blocks & you don't need to have 2., 3. group and 4. group.

* Done.


You can now also change the MMConfig.SHOW_ALL option in the script Configuration() section to show all sections even when they are full.


ALWAYS check the OWNERSHIP
Programmable block needs to have the same ownership as all the other blocks you want it to control.
So all doors, lights, airvents, sound blocks and LCDs need to have the same owner as programmable block.

Step-by-step Video Guide by MMaster
http://www.youtube.com/watch?v=Pipu_oqQVug


MY POPULAR MODS
Airlock Control:
http://steamproxy.net/sharedfiles/filedetails/?id=436109051

Medium Medbay mod:
http://steamproxy.net/sharedfiles/filedetails/?id=423346486

Retractable Glass Bridge (door) mod:
http://steamproxy.net/sharedfiles/filedetails/?id=419124752

Large Armor Gates mod:
http://steamproxy.net/sharedfiles/filedetails/?id=415051704

Configurable Automatic LCDs
http://steamproxy.net/sharedfiles/filedetails/?id=403921671


Troubleshooting

Are your doors opening & closing in a loop?
The oxygen behaves strangely on large stations & ships so this script has to figure out when do the values that game reports actually make sense. Following setting is to let script know how laggy the world is so it can adapt to it.

You need to modify the line in Configuration() section inside the script:
MMConfig.LAG_LEVEL = 5;

to higher number for example:
MMConfig.LAG_LEVEL = 10;

This option is made exactly for big laggy stations / ships. You need to find the ideal value for your ship.

Not working as expected?
Make sure you followed the instructions exactly and make sure that you watched the video guide by Morphologis. Always check that your group names are correct.


FAQ
What are those doors in the video?
Those are Sektans Airtight Doors:
http://steamproxy.net/sharedfiles/filedetails/?id=416810412

What is that Transparent GUI in the video?
You can get one for example here:
http://www.reddit.com/r/spaceengineers/comments/2qzegu/transparent_gui/

Can I get that map from the video?
Yes.. as soon as it is released. Stay tuned ;)


Watch MMaster's Steam group: http://steamproxy.net/groups/mmnews
Twitter: https://twitter.com/MattsPlayCorner
and Facebook: https://www.facebook.com/MattsPlayCorner1080p
for more crazy stuff in the future :)


If you think my work is worth it then feel free to donate. Thanks! :)
Donate <3[www.paypal.com]
Popular Discussions View All (1)
3
16 May, 2017 @ 4:10am
Small update?
Jim Paper
307 Comments
AlienAirl 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: