Space Engineers

Space Engineers

66 hodnocení
CAT Life Support Manager - Oxygen, Airlocks and Alarms oh my
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Velikost souboru
Přidáno
Aktualizováno
16.671 KB
23. bře. 2015 v 11.54
12. říj. 2019 v 9.30
Poznámky ke změnám (15) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
CAT Life Support Manager - Oxygen, Airlocks and Alarms oh my

V 1 kolekci od uživatele Loues.S.Cat
CAT Scripts
12 položek
Popis
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).
Populární diskuze Zobrazit vše (2)
77
5. led. 2017 v 6.38
Support Thread (Life Support ;)
Loues.S.Cat
0
13. kvě. 2015 v 18.09
Copy Paste Version
Loues.S.Cat
Počet komentářů: 87
Herix_Lord 1. zář. 2024 v 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  [autor] 1. zář. 2024 v 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. zář. 2024 v 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. led. 2021 v 0.30 
( не устанавливается.
Pilot#1159 29. srp. 2020 v 5.01 
Can I specify panels to watch certain vents or groups containing vents?
ruze0110 28. bře. 2020 v 11.06 
merci
Loues.S.Cat  [autor] 12. říj. 2019 v 9.08 
Can't even remember what ship that was running on.
Can't hurt to remove it now.
Oloneus 12. říj. 2019 v 9.07 
pretty much yes xD to clean up the code
Loues.S.Cat  [autor] 12. říj. 2019 v 9.00 
You mean all the parts labled "//Really dont use this 0.o" :p
Oloneus 12. říj. 2019 v 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