Space Engineers

Space Engineers

66 beoordelingen
CAT Life Support Manager - Oxygen, Airlocks and Alarms oh my
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
16.671 KB
23 mrt 2015 om 11:54
12 okt 2019 om 9:30
15 wijzigingsnotities (weergeven)

Abonneren om te downloaden
CAT Life Support Manager - Oxygen, Airlocks and Alarms oh my

In 1 verzameling van Loues.S.Cat
CAT Scripts
12 items
Omschrijving
O2 and Airlock Manager.
This script is the start of a Life Support manager with LCD Display, light indicator and sound block alert. (It also contains a Work In Progress Airlock System which can be enabled by setting the varialbe ENABLE_AIRLOCK_NAMAGER = true;)

The script aims to keep the pressure in Oxygen tanks between two provided values. This avoids the tanks being at 100% all the time which prevents airlocks from being depressurised saving you on O2 when your exterior doors are opened.
If Tank pressure falls too low, O2 production is turned on. If it falls way too low, an alarm goes off. O2 production remains on until O2 pressure in tanks reaches the maximum desired level assigned and then it is turned off, saving you power.
The current status of the O2 system is tracked and displayed on LCDs and by interior light indicators if desired.

/*
* Cats makes the best programmers!
*/

The following variables can be adjusted to alter behavior

This uses Prefix Filtering to ensure it only acts on the ship it is running on. The script will only effect blocks which have names that start with SHIP_PREFIX. or set SHIP_PREFIX = null; to disable this feature, allowing the script to act on all blocks, including those on docked ships.

Any Tank. Vent or Oxygen Generator which has a name containing the keyword indicated by the variable O2_SYSTEM_TAG will be tracked and controled by the script.

It has a minim, maximum and critical integer which are relavent to tank pressure
if tank pressure falls below TANK_O2_MIN then the Oxy-Generators will be turned on until tank pressure rises to be equal or greater than TANK_O2_MAX.
If tank pressure falls below TANK_O2_CRITICAL an alarm will be sounded.

If an alert goes off all sound blocks with the tag SOUND_TAG will be played. They will be stopped if the tank pressure goes back above the TANK_O2_CRITICAL value.
Setting SOUND_TAG = null; disables this feature.

All lights which have names containing the keyword indicated by LIGHT_TAG will have their colour adjusted relative to tank pressure. green = 100%, yellow = 50%, red = 0%.
The colour of the light shifts proportionatly to the tank pressure rather than 3 fixed colours.
setting LIGHT_TAG = null; disables this feature.

The string LCD_DISPLAY_TAG is the keyword that indentifies LCD panels to be used. (null means all panels)
LCD_DISPLAY_FONT_COL determins the colour of the text
LCD_DISPLAY_COLOUR determins the colour of the background.
LCD_FONT_SIZE determins the size of the text.

/*
* Cats makes the best programmers!
*/

There is a basic Airlock Control section to the script, but this is a work in progress.

Setting ENABLE_AIRLOCK_NAMAGER to true enables the Airlock manager.
VENT_LCK is the full name of airlock vent (including ship prefix if any).
LIGHT_LCK is the full name of airlock indicator light (including ship prefix if any).
LOCK_DOOR_INT is the full name of interior airlock door (including ship prefix if any).
LOCK_DOOR_EXT is the full name of exterior airlock door (including ship prefix if any).
Populaire discussies Alles weergeven (2)
77
5 jan 2017 om 6:38
Support Thread (Life Support ;)
Loues.S.Cat
0
13 mei 2015 om 18:09
Copy Paste Version
Loues.S.Cat
87 opmerkingen
Herix_Lord 1 sep 2024 om 4:55 
Well I be studying the script if I did something wrong until you look in to it or I figure it out.
Loues.S.Cat  [auteur] 1 sep 2024 om 4:49 
haven't been in SE for a fair while, but I shall have a look see when I get a moment
Herix_Lord 1 sep 2024 om 4:25 
Hi! I have a problem with pressurizing the room in nut shell i turn the tank ON and whe all rooms are 100% pressurized the Tank will go OFF with is fine but it wont go back ON until I set
it to. I played little bit with the code so maybe I messed up something.
aleks 13 jan 2021 om 0:30 
( не устанавливается.
Pilot#1159 29 aug 2020 om 5:01 
Can I specify panels to watch certain vents or groups containing vents?
ruze0110 28 mrt 2020 om 11:06 
merci
Loues.S.Cat  [auteur] 12 okt 2019 om 9:08 
Can't even remember what ship that was running on.
Can't hurt to remove it now.
Oloneus 12 okt 2019 om 9:07 
pretty much yes xD to clean up the code
Loues.S.Cat  [auteur] 12 okt 2019 om 9:00 
You mean all the parts labled "//Really dont use this 0.o" :p
Oloneus 12 okt 2019 om 8:23 
please take a look at this pastebin: https://pastebin.com/Df73UGL6

I removed everything "Air Lock" from it, hope you don't mind

it's somewhat obsolete xD