Space Engineers

Space Engineers

58 ratings
Hydrogen Gauge Images
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.295 KB
Jan 18, 2016 @ 8:52am
May 11, 2019 @ 3:57pm
5 Change Notes ( view )

Subscribe to download
Hydrogen Gauge Images

Description
A version of my Hydrogen Gauge in-game script that uses Morphik's DX11 Hydrogen LCD Percentage Bars (or Morphik's LCD Percentage Bars) mod's additional textures to display the fill percentage.

INSTALLATION:
It's up to you to remember which LCD is which somehow. Just name your LCD "LCD Hydrogen Gauge" (the default name), put this script in a programmable block, and take ownership of all the blocks. Then run it with the "go" command. It no longer requires a timer block. "reset" or "stop" will stop it again.

TROUBLESHOOTING:
If you get [OFFLINE] ... you probably forgot to install the mod. Yeah, it needs the mod for the textures.

If it's stuck at 0% even though you know there's a Hydrogen gauge with gas, your Programmable Block may not have enough access to check the Hydrogen Tank blocks fill levels, so check ownership permissions.

MAINTENANCE:
If you decide to permanently remove some tanks, either recompile the script or run it with the argument "reset". Otherwise it will not be able to achieve 100% filled.

TODO:
periodically rescan to auto-correct after building
support sound block audio warning; having trouble with IMySoundBlock :(

CUSTOMIZING:
You can change the prefix string in the script to make it use other texture sets. It can be changed to handle texture sets with different percentage subdivisions easily.

It's fairly trivial to change a subblock id string from "Hydrogen" to "Oxygen" and change which texture set to use, change the lcd name and bam make this into an oxygen gauge script. Left as an exercise for you. ;)
99 Comments
p3st|cIdE  [author] Aug 10, 2023 @ 6:11pm 
Keen broke the images display of this in an update some years back
Blairwitch Aug 10, 2023 @ 11:32am 
Hello, it's possible to have more information anout install this script ? I use a dedicated server and this mod doesn't work. I've install the mod for pictures, but no image show on screen. Can you help me ?
p3st|cIdE  [author] Oct 17, 2021 @ 3:16pm 
@Alcatraz you would need to modify the subtype string to "" (empty string) for oxygen. I think KSW must have changed it at some point.
p3st|cIdE  [author] Aug 5, 2021 @ 2:29am 
this hasn't really worked in some time, something is wrong with the script or the image feature in the game, I never worked it out. I made Tank Gauge so we'd have something that functions in the meantime
Crane Aug 4, 2021 @ 12:53pm 
Is this not working since that last patch? script looks good get a readout but no gauge, I have installed the textures but still just a black screen
p3st|cIdE  [author] Jan 11, 2021 @ 7:45pm 
Either of these would be easy to make work with some mod, if you know the mod's tank subtype id, though the generic percentage bars mod textures would work better in such case for this script, if it even works anymore
BinaryKiller Recoded Jan 11, 2021 @ 1:48am 
Hey, mind making one for the BioGas Mod as well?
p3st|cIdE  [author] Jan 9, 2021 @ 1:00pm 
Try this lol Tank Gauge
p3st|cIdE  [author] Jan 9, 2021 @ 7:17am 
I added the link to the mod to the Steam Required Items feature which was added after I made this script :steammocking:
p3st|cIdE  [author] Jan 9, 2021 @ 7:13am 
@Atlantis256 do you have the mod installed?