Space Engineers

Space Engineers

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

Subscribe to download
Hydrogen Gauge Images

Description
Think it's borked. Try Tank Gauge instead.

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. ;)
104 Comments
p3st|cIdE  [author] 23 Jun @ 6:22pm 
@Vault_Dweller tbh I don't think the script even shows the images properly anymore. You can try Tank Gauge
Vault_Dweller 23 Jun @ 4:54pm 
IS there a way to have this script on consoles that have LCD's
dneylon 6 Oct, 2024 @ 9:14pm 
Ah ok
p3st|cIdE  [author] 6 Oct, 2024 @ 8:48pm 
@dneylon it no longer needs a timer block since many years ago; just type 'go' in the pb command editfield and press Run
dneylon 6 Oct, 2024 @ 4:09pm 
so use a timer block to make it rerun to scan for the hydro get levels ?
p3st|cIdE  [author] 10 Aug, 2023 @ 6:11pm 
Keen broke the images display of this in an update some years back
Blairwitch 10 Aug, 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] 17 Oct, 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] 5 Aug, 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 4 Aug, 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