Space Engineers

Space Engineers

123 ratings
[CUB3] Life Support Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
508.335 KB
19 Jan, 2020 @ 2:49am
24 Jan, 2020 @ 2:07am
7 Change Notes ( view )

Subscribe to download
[CUB3] Life Support Manager

Description
DISCLAIMER
After a lot of user feedback it seems there are some issues and some missing features to the script. I'd like to solve bugs and add features in a timely manner, but unfortunately my real life job is keeping me a little too busy, so I'll try to fix it and add features little by little as soon as possible.
So, for the sake of clarity, I'd like you to consider this script as an alpha version of it, and we're actually at version 0.2a.
Thanks for your patience, your support, and your feedback! You're awesome!

UPDATES
PLEASE UPDATE YOUR SCRIPT IN THE PROGRAMMABLE BLOCK, THERE IS NO AUTO-UPDATE IN SP!!!
  • 2020/01/24 - Ver 0.2a: Fixed a bug with airlock screens (they were always a single airlock)
  • 2020/01/19 - Ver 0.1a: Release

FEATURES
Life Support Manager is a script for the Programmable Block that wants to simplify gases management in every aspect.
With this script, you can:
  • Create a massive number of airlocks. Every airlock can be managed on its own
  • Find leaks in your ship / station, and automatically seal your ship to avoid losing oxygens from airtight rooms
  • Automate oxygen and hydrogen production, settings limits to your tanks when you want to stop producing (and saving resources and evergy) and when to start again

INSTRUCTIONS
1. FIRST CONFIGURATION
Simply load the script in the programmable block!
As soon as the script is loaded, inside the Custom Data there will be written some configurations related to the script.

2. AIRLOCK CONFIGURATION
The script can manage several airlocks in the same ship / station.
To create an airlock follow these steps:
  1. create an airtight room
  2. add two doors, one that leads to the base (Internal Door) and one that leads in the vacuum of space (External Door)
  3. in the "Custom Data" field of the doors, add "internal" for the internal door, "external" for the external door
  4. add an air vent connected to an oxygen tank. For best result, the air vent and oxygen tank should be disconnected from the rest of the ship, to avoid the oxygen tank to fill
  5. add three screens, one inside the airlock and two outside the airlock, inside and outside the ship / station
  6. add three lights, one inside the airlock and two outside the airlock, inside and outside the ship / station
  7. add three button panels, one inside the airlock and two outside the airlock, inside and outside the ship / station
  8. create a block group with all the doors, air vents, oxygen tanks, screens and lights of a single airlock. Name the airlock however you want, BUT the word "Airlock" must be in it, and every airlock must have a unique name
  9. run this script from a programmable block
  10. in the button panels, configure two buttons to run the programmable block with the following parameters:
    • cycle pressurize "Airlock Group Name"
      to pressurize
    • cycle depressurize "Airlock Group Name"
      to depressurize

2.1. ISSUES THAT MIGHT ARISE
The airlock won't work as intended if there are the following issues:
  • the room is not airtight
  • the oxygen tank is completely full, or completely empty
  • the oxygen tank or the air vent are connected to the rest of the ship via conveyors
  • there are missing blocks from the group
  • the group name doesn't contain the word "Airlock"
  • two or more airlocks have the exact same name
  • the doors don't have the words "internal" and "external" in the Custom Data field

3. LEAK MANAGEMENT
The script can seal automatically the ship / station if an air vent finds a leak,
and at the same time show informations about all the air vents on board of the ship / station.

As a matter of fact, as soon as a leak is found, all the doors in the ship will be closed and will be kept closed.
To disable the leak management, run the programmable block with the following parameter:
leak off
To enable it again, run the programmable block with the following parameter:
leak on
Of course you can simply add these commands to a Button Panel.

You can configure one or more screens to show the status of every air vent on board.
Just write
[LSM Airvent Screen]
inside the Custom Data field of the text panels you want to status to show.

If you have too many air vents to show on a single screen, you can create more screens and add "page=<number>"
inside the Custom Data field of the screen. "page=1" is not needed, the first page is always shown if no parameter is given.

4. PRODUCTION MANAGEMENT
The script can manage production and oxygen and hydrogen automatically, starting and stopping oxygen farms
and h2/o2 generators when a certain amount of oxygen and hydrogen is reached in the tanks.
At this points, generators will start when tanks have less than 30% oxygen / hydrogen, and stop when tanks have more than 70%.
These values can be changed inside the Custom Data panel of the programmable block, both for oxygen and hydrogen.

To disable the production management, run the programmable block with the following parameter:
prod off
To enable it again, run the programmable block with the following parameter:
prod on
As for the Leak Management, you can simply add these commands to a Button Panel.

Production and tanks status can be shown on screen like leak management, writing
[LSM Production Screen]

5. THINGS TO KNOW
1. Actually only LCD Panels and Wide LCD Panels can be used, due to some limitations and bugs in drawing screens
2. If you want to use a Large LCD Panel, you can write "[LSM Airvent Screen] [LSM Production Screen]" to show both of the screens in a single panel
3. Some features are missing and will be added in the near future, but remember that you'll have to update the script manually!

WHAT NEXT?
I don't consider the script "feature complete". I'd like to add support for every kind of screen, not only LCD Panels and LCD Text Panels (but it will require some changes of course). Other things should be streamlined a little more, and there probably some bugs here and there (let me know if you find them in the comments, I'll fix them as soon as possible).
Popular Discussions View All (1)
0
20 Dec, 2022 @ 3:27am
Some Improvments
Kazblack
100 Comments
myerk2008 13 Feb, 2023 @ 8:28am 
does anybody have an example build with multiple rooms that i can look at to make im doing everything correctly, i seem to not be able to get this working rn.
Bladedragon0 3 Jun, 2022 @ 4:52am 
if i had two doors that i wanted to be ignored by leak prevention would that be possible?
Raion  [author] 19 Jun, 2021 @ 12:09am 
@Gear Shift long time that I don't have a look at the script, but you should put them in the LCD "Custom Data" field. Then, to be sure that it worked, restart the script!
Gear Shift 18 Jun, 2021 @ 11:31pm 
I might be blind but I don't see any actual instructions on how to actually get the vent status and production status to appear on an LCD, at least not instructions that work. I've tried adding the [LSM Production Screen] and [LSM Airvent Screen] in all the possible places I can on my LCD's to try and get it to work, but it doesn't. How do I actually get them to work?
Netherspark 20 Feb, 2021 @ 2:47pm 
I guess it's not possible to display on a block with multiple screens? Like a cockpit for example?
Jon The Engineer 14 Feb, 2021 @ 7:03am 
@Raion is it possible you could make a quick tweak and make the scrip so it only effects the grid its on?
Dots 9 Jan, 2021 @ 2:27am 
@Raiion Thanks! I guess I have to wait...
I am trying to replace/update scripts inside this BP and is proven futile so far.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1572719539

As far as this script goes I don't understand how to set this script up and was hoping someone would make a video on how to make it work.
Raion  [author] 8 Jan, 2021 @ 1:29pm 
@Dots unfortunately it's not entirely possible - especially for airlocks - to "place and forget". I won't get in technical details, but there is no way to differentiate between an air vent that is used for the airlock and another used for its normal scope. A certain degree of setup from the user is always needed (as far as I know there is not airlock script that does this without configuration).

At the same time I know that I've been overkill with the configuration, and some things could be simplified, like, a lot. Grouping all the airlock blocks into a single group seemed a good compromise at the time. Well, let's see if I'll ever find some time to work on it!
Dots 8 Jan, 2021 @ 12:10pm 
lets hope that next one is a set and forget script.scans and self renames and tags on next version.
Raion  [author] 8 Jan, 2021 @ 11:29am 
@Hawkwar thanks! I would really like to start working on it again, but like, I can barely play at all T_T I would even like to create version 2 (lightweight version) but time is really a problem in the last year...

@Dots yeah, I know, the thing is that when I created the script I had more a ship/station with 1/4 airlocks in mind, if I ever succeed in having enough time to work on version 2, I'll see if I can make it more manageable (this is actually the first script I have ever worked on :D)