Space Engineers

Space Engineers

242 个评价
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
19.948 KB
2017 年 12 月 21 日 上午 1:48
2018 年 1 月 7 日 上午 2:27
3 项改动说明 ( 查看 )

订阅以下载
Hydro & Oxygen Status Script [Vanilla] - by Lightwolfs Adventures

在 Lightwolf 的 1 个合集中
Lightwolfs IngameScripts
2 件物品
描述
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 条留言
DiabeticDuckling 7 月 17 日 上午 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 2023 年 12 月 27 日 下午 1: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 2023 年 10 月 8 日 上午 9:46 
has errors
Axel-of-Atheara 2021 年 8 月 27 日 上午 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 2021 年 8 月 10 日 下午 1: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 2020 年 8 月 14 日 上午 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_ 2020 年 4 月 11 日 上午 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 2020 年 1 月 23 日 上午 2:56 
Script is still broken by default and needs an update.
trocadero 2020 年 1 月 18 日 上午 11:32 
That worked like a charm Kewlpatate, Awesome
Kewlpatate 2020 年 1 月 4 日 上午 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