Space Engineers

Space Engineers

241 ratings
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
19.948 KB
21 Dec, 2017 @ 1:48am
7 Jan, 2018 @ 2:27am
3 Change Notes ( view )

Subscribe to download
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures

In 1 collection by Lightwolf
Lightwolfs IngameScripts
2 items
Description
This script shows Filling amount and state of Hydrogen and Oxygentanks as digital symbols, on LCDs-, Wide LCD Panel or Text Panels.
[Vanilla / No Mods needed]

Installation:

Just paste my script inside your Programmable Block, and edit your favorite Settings...

Here's my Tutorial how to edit Settings, or you watch my Video on YouTube.
https://youtu.be/xr3XwEny3Q0

Only Hydrogen Status:
● bool SearchHydro = true;
● string LCD_NameTag = "[Hydrogen-Status LCD]"; // Input this keyword to the name of every LCD-Panels for
Hydrogenstatus!
- Show only Specific Hydrotanks:
● bool OnlyTanksWithNameTag = true;
● string SpecificNameTag = "[Hydro-Status]"; // Input this keyword to the name of every specific
Hydrogentanks!


Only Oxygen Status:
● bool SearchHydro = false;
● string LCD_NameTag = "[Hydrogen-Status LCD]"; // Input this keyword to the name of every LCD-Panels for
Oxygenstatus!
- Show only Specific Oxygentanks:
● bool OnlyTanksWithNameTag = true;
● string SpecificNameTag = "[Hydro-Status]"; // Input this keyword to the name of every specific
Oxygentank!


Switch between Hydrogen & Oxygen Mode:
● int AutoChangeInterval = 1; // 1 = Switch mode on every script activation, 2 every 2nd time etc.
● string LCD_NameTag = "[Hydrogen-Status LCD]"; // Input this keyword to the name of every LCD-Panels for
status!
- Show only Specific Hydro & Oxygentanks:
● bool OnlyTanksWithNameTag = true;
● string SpecificNameTag = "[Hydro-Status]"; // Input this keyword to the name of every specific Hydrogentanks!
● string SeperateSpecificNameTag ="[SepSpecfic-Status]"; // Input this keyword to the name of every specific
Oxygentank!


Hydrogen & Oxygen on seperate LCD Panels:
● bool ShowOnSeperateLCD = true;
● string LCD_NameTag = "[Hydrogen-Status LCD]"; // Input this keyword to the name of every LCD-Panels for
Hydrogenstatus!
● string SeperateLCD_NameTag = "[Seperate-Status LCD]"; // Input this keyword to the name of every LCD-
Panels for Oxygenstatus!
- Show only Specific Hydro & Oxygentanks:
● bool OnlyTanksWithNameTag = true;
● string SpecificNameTag = "[Hydro-Status]"; // Input this keyword to the name of every specific
Hydrogentanks!
● string SeperateSpecificNameTag ="[SepSpecfic-Status]"; // Input this keyword to the name of every specific
Oxygentank!


Global Settings:
● string Hydro_ident_String = "Hydro"; // This keyword, must be in every name of Hydrogentanks!
● bool WideLCD = true; // on wide LCD Panels, show up to 100 Tanks
● bool OnlySmallSigns_Enabled = true; // Show always small Symbols
● bool SelfUpdatingSys_Enabled = false; // deaktivate self-updatings-system
● int SelfUpSys_perSecond = 2; // Updating interval in seconds


Other Settings:
● bool StatusTitle_Enabled = false; // deactivate title "HYDROGEN STATUS" / "OXYGEN STATUS"

● lines:
● bool Underline_1_Enabled = false; // deactivate line under title
● bool BatSpaceline_Enabled = false; // deactivate line between total Amount and filling amount
● bool Underline_2_Enabled = false; // deactivate line under total Amount and filling amount

● bool TankAmountEnabled = false; // deactivate total amount
● bool TankAllStoredVolumeEnabled = false; // deactivate filling amount
● bool VolumeOnlyInM2 = true; // Show always units in cubicmeter (m²)


General Thanks to the Community, to all that share their knowledge, that helped me a lot to bring my scribts to life.
Thanks for that.
62 Comments
DiabeticDuckling 17 Jul @ 3:44am 
how do i get them to work as i had them working before but i cant remember what i did
and that to the battery one as well

a updated video would be nice
bogdi 27 Dec, 2023 @ 1:56pm 
First of all, thank you for your script. I'm using battery status too, these scripts are awsome.
I've got some errors but with MonkeyGaming's corrections (thanks to him too), it almost works. I have always a bug, my hydrogen tanks are not detected. No problem with oxygen (with specific Tag), but hydrogen (with or without Tag) does not work. I have specified Tag into script and in tank's name, but with no result. Does anyone can help me ? Thank you
pcodea xonos 8 Oct, 2023 @ 9:46am 
has errors
Axel-of-Atheara 27 Aug, 2021 @ 8:08am 
I've been having issues with the original script. I just put a few more oxygen tanks on my base, and copied the nametag from the pre-existing tanks, and recompiled the script, but the new tanks aren't showing up...
🍌⁧⁧Monkey Gaming 10 Aug, 2021 @ 1:59pm 
I fixed the script and uploaded it to the workshop. No worries i linked you and everything. Works like a charm now. Very good!
Tobias 14 Aug, 2020 @ 2:14am 
the skribt is Broken the Performenc update have changt the languag of the hydro tanks so it is broken pls fix it
_chaoticgood_ 11 Apr, 2020 @ 1:17am 
Kewlpatate's update fixes are essencial - Thanks for them! -, though there is another minefield in the source:

if (tank_X_Typ.Contains(Hydro_ident_String))

The type of the gas tank is a "Hydrogen Tank" or an "Oxygen Tank" while the identification string may be changed freely by the user:

string Hydro_ident_String = "Hydro";

Though these strings are having common section by default, but the first moment a user would give some custom id string!...

So maybe worths for consideration... ;)

--------------------
Why we would go out from quarantine, while we can fly into the space?? ;D
Stay healthy engineers, the blocks will not weld themselves! XD
Dots 23 Jan, 2020 @ 2:56am 
Script is still broken by default and needs an update.
trocadero 18 Jan, 2020 @ 11:32am 
That worked like a charm Kewlpatate, Awesome
Kewlpatate 4 Jan, 2020 @ 10:59am 
Quick "fix"
Change TankStatus_Lcd_X.ShowPublicTextOnScreen(); to TankStatus_Lcd_X.ContentType = VRage.Game.GUI.TextPanel.ContentType.TEXT_AND_IMAGE; and WritePublicText to WriteText