Space Engineers

Space Engineers

Simple Cargo Capacity Displayer
5 Comments
Menz Agitat 18 Feb, 2020 @ 2:13pm 
I dunno why I had issues with this script in 2018, it works perfectly well now.

@IGotAShotgun you could add the following lines before the public void main thingy (so at the very top of your script) in order for the LCD screen to refresh automatically without the need of any timer block:

public Program() {
Runtime.UpdateFrequency = UpdateFrequency.Update10;
}
Menz Agitat 23 Mar, 2018 @ 10:20am 
I can't seem to make this script to work.
I've named my text panel "LCD Cargo Drill" and the cargo "Large Cargo Container Drill", I've set the names accordingly in the script, recompiled it, and added a timer block that runs the programmable block every 5 sec. I've also tried to trigger manually the blocks with no avail.
Nothing displays on the text panel except the "ONLINE" text.
The programmable block doesn't show any script error when running.
Any idea would be greatly appreciated.
IGotAShotgun  [author] 15 Jan, 2017 @ 3:48pm 
If you want more bars you'll want to edit the ScreenWidth variable. It's 11 by default to fit nicely in the new halfsize screens.

ScreenWidth = Prefix length + opening bracket + bar segments + closing bracket
For 10 segments in the bar, that's:
ScreenWidth = Prefix length + 1 + 10 + 1
ScreenWidth = Prefix length + 12
If you aren't using a prefix, ScreenWidth=12 should give you 10 segments. To not use a prefix, change Prefix to "", or two double quotes with nothing between them.
MisusedPower 15 Jan, 2017 @ 12:33am 
I like it but how do you add more bars... Im useing | and I as the bars and I want to make it 10 bars 1 per 10% of cap.. for example 100% would be [||||||||||] and 50% [|||||IIIII] something like that.. making a type of ammo counter
Patrick 22 Dec, 2016 @ 6:28pm 
Thank you for making this script! I've been playing a survival world for a while, and I needed somethin to monitor how much fuel I had for my hydrogen thrusters. This works very well.