Space Engineers

Space Engineers

CAT Life Support Manager - Oxygen, Airlocks and Alarms oh my
87 Comments
Herix_Lord 1 Sep, 2024 @ 4:55am 
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  [author] 1 Sep, 2024 @ 4:49am 
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 @ 4:25am 
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 @ 12:30am 
( не устанавливается.
Avarice 29 Aug, 2020 @ 5:01am 
Can I specify panels to watch certain vents or groups containing vents?
ruze0110 28 Mar, 2020 @ 11:06am 
merci
Loues.S.Cat  [author] 12 Oct, 2019 @ 9:08am 
Can't even remember what ship that was running on.
Can't hurt to remove it now.
Oloneus 12 Oct, 2019 @ 9:07am 
pretty much yes xD to clean up the code
Loues.S.Cat  [author] 12 Oct, 2019 @ 9:00am 
You mean all the parts labled "//Really dont use this 0.o" :p
Oloneus 12 Oct, 2019 @ 8:23am 
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
Oloneus 12 Oct, 2019 @ 7:05am 
Thumbs up :) I I`ll give it another go later today.
Loues.S.Cat  [author] 12 Oct, 2019 @ 6:56am 
The Single Missing line to set the LCD to show text has been added.
Loues.S.Cat  [author] 12 Oct, 2019 @ 6:46am 
I do already have some functions for string parsing used to save and loading data from strings which I have used in custom data storage. I could use that to have the pb format its content, save to the block custom data and then read it back out to see if it has changed. I don't like doing a lot of string parsing though, it tends to be costly.
If people are loading scripts they know about the editor. If I make a custom control solution I'd have to tell them how to use it.
still, I shall have a poke at that.
And looks like I missed the set show text thing on the LCD setup oups.
Oloneus 12 Oct, 2019 @ 6:07am 
btw. is there a way, to read settings from the custom data of the programmable block?`

say, the defined Tag,
max/min values.

so instead of changing the values in the editor, which I'm sure some ppl may either completely screw up or never actually find.

You could have a "hint" on the LCD screen, stating: "change settings in Progammable Blocks "custom data" ... something along that line.

but works smoothly again thank you
Oloneus 12 Oct, 2019 @ 6:03am 
first thing I found, when placing an LCD screen, and adding the tag to it, it shows "online" and does not yet switch to "text" etc.
Loues.S.Cat  [author] 12 Oct, 2019 @ 5:32am 
There we go.
Give that one a go and let me know how it goes for you.
Loues.S.Cat  [author] 12 Oct, 2019 @ 5:14am 
I am addressing the warnings and getting rid of the old sub-grid function in favour of methods keen gave us that cut down on the scripts resource demands.
When I am done is should auto set the LCDs to the right display type anyway, but the script was 'working', just not a drop in solution. You just needed to set the LCDs to show text manually because that was changed.
Oloneus 12 Oct, 2019 @ 2:18am 
Thank you :)


Tasks you might want to take a look:

- LCD panels don't work anyomre (lotsa deprecated errors)
- LCD panels on blocks can be used now (see ISY's mods, like "!IIM-performance"
- Timers are not necessary anymore

- Would be nice to use the programmable Blocks LCD Screen, to have "runtime infos" or smthg to get feedback, if the program is running at all.

if you need feedback, contact me anytime, especially for testing, I'm currently playing around with SE again, to see if I can build decent airlocks.
Loues.S.Cat  [author] 12 Oct, 2019 @ 2:06am 
Sure, I have some time. I'll have a look see now
Oloneus 12 Oct, 2019 @ 1:36am 
Heyho Cat,

it's been a while since march and I wonder, is there any way we can see an update on your awesome script?

I'm usually using MMasters Airlock, and have been using your script to keep my Oxygen levels stable.

have a nice weekend.
UncleAge
Vermillion 12 Mar, 2019 @ 5:04am 
please put it on github so we can contribute :)
Loues.S.Cat  [author] 11 Mar, 2019 @ 4:55pm 
This is so old... I have rewritten 80% of it.
At this point I'm not sure much of it is worth salvaging.
I may just replace it shortly.
mat1k 11 Mar, 2019 @ 4:52pm 
The airlock system proved a pain but the main part was ok. I was using it along side mmasters airlock control to ensure the o2 tanks had space for the airlock to cycle
Loues.S.Cat  [author] 11 Mar, 2019 @ 1:12pm 
Hmm I shall have a look at it now and see what is still does.
mat1k 11 Mar, 2019 @ 12:31pm 
I had this working back in september. Might see if i can get it going again now
JoMakaFloe 21 Feb, 2019 @ 8:16am 
will this script ever be updated? (if you are going to update it, do so after full release)
Vermillion 21 Feb, 2019 @ 12:57am 
is there a github? it would be nice to make a pull request
Loues.S.Cat  [author] 27 Feb, 2018 @ 3:31pm 
Sorry. life has been distracting me.
I'll see if I can update it with all Keen's changes.
HeavyGuns 22 Feb, 2018 @ 2:54pm 
Pretty sure this needs an overhaul. I would love to see it working. Can anyone suggest another way to mange O2 in tanks?

You can get it to compile by changing the 'float' variables to 'double', but then the compiler warns that several methods have been deprecated and it says what the new methods are. But it looks like a full rewrite, which is beyond me...
Ambi 16 Feb, 2018 @ 11:09am 
I get this error when trying to compile

Program[496,17]: Error: Cannot implicitly convert type 'double' to 'float'.
An explicit conversion exists (are you missing a cast?)

That is a letter for letter retype of the error
Lozzie's Friends 7 Jan, 2018 @ 2:46am 
For some weird reason the script fails to recognise my oxygen tanks. Any ideas as to why?
Conflicted Shadow 7 Nov, 2017 @ 7:06pm 
can this work in conjunction with a different airlock script?
Wyldhunt 18 Jun, 2017 @ 5:16pm 
I agree. Excellent mod. I'd be thrilled to see it updated.
phoech 22 May, 2017 @ 3:43am 
Hiya Cat, would be awesome to see this script up and running fully again, you've done such a good job so far.
Loues.S.Cat  [author] 15 Mar, 2017 @ 8:47pm 
Old script.
A lot of commands have gone into legacy.
I'll update it when I have a bit of time.
Tiger 15 Mar, 2017 @ 7:52pm 
Yes, the hydrogen issue seriously limits this script's usefulness... which is very unfortunate, since any ship with oxygen farms really needs a script like this to avoid wasting ice.

It also spits out a ton of errors when compiling, yet the script still works (for controlling oxygen production, anyway).
Warlocc 29 Sep, 2016 @ 8:03am 
I want to echo a previous post. The HUGE issue with this script is that it disables hydrogen generation.

Ideally it would toggle the tanks off/on instead of the generators, allowing hydrogen to still fill.

Or, it should detect hydrogen like it detects oxygen tanks.
Varana 18 Jul, 2016 @ 8:42am 
I dont understand what I must do to get this airlock control to work :S

So I want to do this, I have a corridor with a vent, a door, and a room with another vent. I want to set up that if there is a leak in the corridor or if the corridor vents starts suckin air, the door of the room closes automatically. And viceversa, if the rooms vent starts suckin air or id there is a leak, the room door will close autocatically.

Can I do that with this script? I tried to change "SETUP ACTIONS" of each vent, but I think the script wipes those controls.
phoech 21 Jun, 2016 @ 7:21pm 
Finally got this sucker working after much hassle, now I notice that my O2 is full and turns off O2 Gens, Now I can't turn them on to generate hydrogen for my Thrusters or hydr tanks. :-(
phoech 16 Jun, 2016 @ 5:06am 
YES PLEASE! Some kind of guide would be good, I can't get anything to work at all, did what I thought were the rights things but nothing.
[KONA]Kumacuda 27 May, 2016 @ 7:48am 
Any chance on putting a tutorial together? I got it half way working but can't for the love of me figure out how to get the LDC panel working.
greypurple 30 Jan, 2016 @ 3:58pm 
Will this track multiple airlocks?
Krougal 17 Jan, 2016 @ 10:34pm 
Another suggestion/request.
Seperate thresholds for O2 generators and farms. For example if I hit critical I want to use the generator, but only up to say maybe the minimum setting. Farms I want to run all the way up to maximum setting (but I need them to stop before filling 100%)
Krougal 16 Jan, 2016 @ 1:59pm 
Amazing work!

Is it possible to have demand from Cryopod and Medbay also turn on O2 gen?

The use case I have is I have 1 O2 tank & AV (ship is too small for airlock so I depressurize it instead). The thing is I still need to generate H2 on demand for jetpack. Not to mention I like topping off O2 supply without resorting to bottles.
Loues.S.Cat  [author] 18 Sep, 2015 @ 2:41am 
O2 Farms are a pain in the backside. Turning them off means they still work, but they will only draw on solar power. so... while off, and in sunlight, they will still produce O2 if you have any solars. What kind of ship will take advantage of light and O2 farms, but not also have solars...
TheAndyman707 17 Sep, 2015 @ 5:20am 
Hey, using this and it is fantastic. Did you manage to get it to support Oxygen Farms?
KilledJoy 29 May, 2015 @ 8:02pm 
Ah completely understand that.
Loues.S.Cat  [author] 29 May, 2015 @ 6:15pm 
Yes. I have exams in 5 days though. So a bit busy right now
KilledJoy 29 May, 2015 @ 6:12pm 
Can you add Air Farms to the script??
Tamster 28 May, 2015 @ 6:41am 
i've worked and edit your script a bit to use farm, it work like this :
activate farm at min lvl, (set at 70
activate gen at Critical lvl set at 40
gen fill up till wanted lvl (set at 75
farm finish to fill up to 85
contact me ;)