Space Engineers

Space Engineers

Not enough ratings
Hydrogen Gauge
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.414 KB
26 Dec, 2015 @ 12:10pm
11 May, 2019 @ 3:19pm
4 Change Notes ( view )

Subscribe to download
Hydrogen Gauge

In 1 collection by p3st|cIdE
Scripts
13 items
Description
Draws a pretty bar graph of the hydrogen fill state to a text panel lcd.

I totally stole the code for finding of hydrogen tanks and the calculation of the gas fill percentage from MMaster! I got the bar graph idea from him too. Credit and kudos!

There's a new version that uses Morphik's mod images for the display!

run with "go" to start displaying a little text graph onto a text panel named "LCD Hydrogen Gauge" by default. run with "stop" or "reset" to shut it down. It no longer requires a timer block.

I hope to update it to better support the multiple screens per block feature and other new stuff.
21 Comments
p3st|cIdE  [author] 14 Mar, 2023 @ 3:41pm 
It works with mods, but if the mod doesn't have the expected substrings, you may need to alter the script to detect the modded tanks. Unfortunately it only aggregates all tanks total storage. A bit of creative code editing could probably convert it to do what you need.
NitroGTRi 14 Mar, 2023 @ 10:26am 
Does this work with mods? The server I play in uses the Tiered Tech mod, and all my tanks are modded. Also, does it recognize individual tanks? Can I assign one LCD for each tank using only one prog block? I have a business in the server selling H2...
p3st|cIdE  [author] 9 Feb, 2017 @ 9:24pm 
There's a string in the script at the top with the name of the LCD block. I believe it should be called "LCD Hydrogen Gauge" by default iirc.
Keatosis 9 Feb, 2017 @ 7:14pm 
How do I pick the Lcd?
G777GUN 16 Sep, 2016 @ 2:44pm 
Thankyou very much.
p3st|cIdE  [author] 14 Sep, 2016 @ 8:00pm 
Sorry, I see the description does indeed assume some basic level of SE ingame scripting / timer block setup experience. Just Setup a timer block to Run with Default Argument the programmable block holding this script, then Start itself, every so often, and Start it.
G777GUN 14 Sep, 2016 @ 6:10am 
Thankyou . It could just be that I really have no idea how to set these things, I set the ownership and I got the gauge to show up but how does it update the gauge reading?
p3st|cIdE  [author] 12 Sep, 2016 @ 11:59am 
Tanks must be on same grid as programmable block. Not attached by rotor or piston. Maybe your ownership is a problem - try setting owner to yourself or nobody, for everything. If they're mod tanks, maybe it's not recognizing them.
G777GUN 12 Sep, 2016 @ 7:15am 
The text on the screen is orange but my tanks are full but the graph shows 0%. I have 4 tanks what do I do?
p3st|cIdE  [author] 18 Aug, 2016 @ 11:13pm 
It compiles with new version of SE