Space Engineers

Space Engineers

Otillräckligt med betyg
Hydrogen Gauge
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
5.414 KB
26 dec, 2015 @ 12:10
11 maj, 2019 @ 15:19
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
Hydrogen Gauge

I 1 samling av p3st|cIdE
Scripts
13 artiklar
Beskrivning
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 kommentarer
p3st|cIdE  [skapare] 14 mar, 2023 @ 15:41 
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:26 
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  [skapare] 9 feb, 2017 @ 21:24 
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 @ 19:14 
How do I pick the Lcd?
G777GUN 16 sep, 2016 @ 14:44 
Thankyou very much.
p3st|cIdE  [skapare] 14 sep, 2016 @ 20:00 
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:10 
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  [skapare] 12 sep, 2016 @ 11:59 
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:15 
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  [skapare] 18 aug, 2016 @ 23:13 
It compiles with new version of SE