Space Engineers

Space Engineers

Hydrogen Gauge
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
p3st|cIdE  [author] 3 Jan, 2016 @ 5:58pm 
Everyone keeps installing the latest runtime so I still haven't been able to track down the actual problem.
p3st|cIdE  [author] 3 Jan, 2016 @ 5:57pm 
You may have better luck with this one: http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=586295966
supersquid2000 3 Jan, 2016 @ 5:32pm 
If you figure it out, let me know. I'm having the same problem. I also have the latest .NET runtime. :) I really need this.
Bosmanious 28 Dec, 2015 @ 6:44am 
add me on steam and we can figure it out
p3st|cIdE  [author] 28 Dec, 2015 @ 5:31am 
Things I think it might be caused by: System.Text.StringBuilder use on lines 21 and 45. It's just an optimization for concatenating the log strings. Lambda function on 51, maybe try replacing with a member function? I really don't know what it could be, it's not that tricky a script.
p3st|cIdE  [author] 28 Dec, 2015 @ 5:23am 
Even this simple script?! My lord. You can either try installing the latest .NET runtime (4.6.1) or try to work with me to figure out what is causing the grief.
Bosmanious 28 Dec, 2015 @ 3:09am 
still doesnt work for me it says :caught exception during execution of script: common language. Runtime detected an invalid program
p3st|cIdE  [author] 27 Dec, 2015 @ 8:21pm 
I made another one for battery charge at http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=584633033 I figure the world needs small targeted solutions, sometimes you may not want a full-blown MMaster-style comprehensive experience and just want something specific.
p3st|cIdE  [author] 27 Dec, 2015 @ 8:17pm 
Also you will want to hook up a timer block to run the program somehow. Up to you.
p3st|cIdE  [author] 27 Dec, 2015 @ 8:15pm 
Sorry it's in the script. It must be named "LCD Hydrogen Gauge" by default. All hydrogen tanks on the same grid as the Programmable Block will be totaled probably even if they aren't connected to anything. Kind of a first draft.
Bosmanious 27 Dec, 2015 @ 2:29pm 
question do the hydrogen tanks need to have a specific name and what exactly is the name of the lcd to show it on