Space Engineers

Space Engineers

242 avaliações
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures
   
Premiar
Adic. a Favoritos
Nos Favoritos
Desfavoritar
Tamanho:
Publicado em:
Atualizado em:
19.948 KB
21 dez. 2017 às 1:48
7 jan. 2018 às 2:27
3 notas de alterações ( ver )

Subscreve para transferir
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures

Numa coleção por Lightwolf
Lightwolfs IngameScripts
2 itens
Descrição
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 comentários
DiabeticDuckling 17 de jul. às 3:44 
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 dez. 2023 às 13:56 
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 out. 2023 às 9:46 
has errors
Axel-of-Atheara 27 ago. 2021 às 8:08 
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 ago. 2021 às 13:59 
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 ago. 2020 às 2:14 
the skribt is Broken the Performenc update have changt the languag of the hydro tanks so it is broken pls fix it
_chaoticgood_ 11 abr. 2020 às 1:17 
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 às 2:56 
Script is still broken by default and needs an update.
trocadero 18 jan. 2020 às 11:32 
That worked like a charm Kewlpatate, Awesome
Kewlpatate 4 jan. 2020 às 10:59 
Quick "fix"
Change TankStatus_Lcd_X.ShowPublicTextOnScreen(); to TankStatus_Lcd_X.ContentType = VRage.Game.GUI.TextPanel.ContentType.TEXT_AND_IMAGE; and WritePublicText to WriteText