Space Engineers

Space Engineers

Not enough ratings
Cargo % Filled Display
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.794 KB
19 Apr, 2019 @ 5:35pm
1 Change Note ( view )

Subscribe to download
Cargo % Filled Display

Description
This script calculates the fill percentage of cargo containers on the current grid (whichever grid the programmable block is placed on). The display is very simple, and by default will just show a numerical percentage.

To use this script, load it into a programmable block, then create and rename an LCD "Inventory Display" (must be on the same grid as the programmable block). The script includes all containers with cargo capacity whose names contain the string "Cargo".

You can then edit the font size (and color/alignment/etc) of the LCD screen directly in the Control Panel to match the particular screen you are using and the look you want.



There are three user variables for optional configuration, but you can use this script without touching any of them.

You can have the percentage prefixed with "Storage:" by changing the user variable displayStorageText to true.

If you prefer different names for your LCD screen or cargo containers, you can go into the user variables section at the top of the script and change the names. Your LCD screen and/or cargo containers must contain the exact string that is set in the user variables section, but they can contain additional text as well (with the variable set to "Cargo", containers named "Cargo 1" and "Cargo 2" will both be counted).
12 Comments
Allegheny500 23 Nov, 2024 @ 9:37am 
Can we get a fix so it will work on cockpit screens?
fab 30 Apr, 2021 @ 3:15pm 
Works great with my text panel, but i had to set the panel content to display text and images before it would work so try this if it's not working for you!
ACE DOG 47 24 Oct, 2020 @ 7:37pm 
this script is awesome
Skyline 26 Sep, 2020 @ 2:40am 
The script doesnt work. It picks up the containers but doesnt display the fill level on the LCD
Das Hexenmeister 23 Aug, 2020 @ 7:19am 
I cant get this script to work anymore
Marcus 25 Apr, 2020 @ 12:37pm 
It would also be very cool if the script could trigger an action if the cargo is at 100% full and maybe at say 80% so it could turn off drills when cargo is full and switch back on again when theres more space. cheers.
Marcus 25 Apr, 2020 @ 12:35pm 
Hi. Does this still work? The script picks up the container names but I can't get the display to work ( I have ensured that keyword "Inventory Display" is part of the LCD's name
Ian  [author] 20 Dec, 2019 @ 11:48pm 
Thanks SWDarkstone!

Let me know if you guys have any suggestions or requests to improve it!
SWDarkstone 5 Dec, 2019 @ 6:22am 
I have been looking for a simple script to see when my heavy miner was full. This is perfect. Bravo!
Ian  [author] 15 Nov, 2019 @ 2:49pm 
Glad you like it!