Space Engineers

Space Engineers

83 ratings
Group Cargo Display with Images. V6.5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.213 KB
5 Jul, 2015 @ 12:40pm
19 Apr, 2019 @ 6:36pm
19 Change Notes ( view )

Subscribe to download
Group Cargo Display with Images. V6.5

Description
BIG UPDATE: I have made new textures that are in 1% increments.
http://cs2bus.com/sharedfiles/filedetails/?id=646348025

To use these new Images either make sure they are loaded before the old ones or remove the old ones from the list as they both use the same naming method.

Script that Allows one to have one or more containers that they want to track with fancy Monospace bars or my Image set.

This script was specially written to use my 'LCD Percentage Bars' Mod, that adds 101 images to show how full a cargo container is.


July 6th 2015 Update: Edited to work with my updated textures.

July 17th 2015 Update: Fixed code broken by 1.091 game update.

August 7th 2015 Update: Added optional text graph to the 'Public Text' area. To show the text graph instead of pictures turn on 'public' in the "Show text on screen" option in the LCD/Text Panel.

August 9th 2015 Update: Fixed code to not break if your ship/station docks to another ship/station via Connector Blocks.

January 23rd 2016 Update: Updated code to round to the nearest 5%. Thanks to p3st|cIdE for the code snipet!

August 24th 2016 Update: Fixed code to work with new block group functions.

December 15th 2017 Update: Changed how entire script works. (new details below)

April 8th 2019 Update: Added fancy LCD screen to Programmable Block.


Instructions:

1: Place a Programmable Block and load this script on it.

2: Set any amount of Cargo containers to a specific name. As in "[Cargo Ore]" or "[Cargo Ingot]", you will see a place to add your own names inside the script.

3: Set a LCD or Text Panel, the name needs to start with LCD and has to be followed with one of the names you set for your cargo containers and be in brackets [ ] . As in "[LCD Ore]" or "[LCD Ingot]".

4. Inside your LCD Panel's Custom Data write either "text" for the bar graphs or "image" to use my image set.

5: Make sure ALL blocks you just placed or set the group for are owned by you. This is a very easily missed step.


Please note that this script as it comes will not work without my LCD Percentage Bars mod.
Added text graph option.
77 Comments
[I.L]Methidox 26 May, 2024 @ 9:46pm 
was working today, now a display says theres no room but nothing was changed....
404 GLaDOS 4 Jan, 2021 @ 3:52am 
Does this work on vanilla servers? Or does the server require the mod.
Vortek Gamer 15 Jul, 2019 @ 8:01pm 
the script is not working and giving an error. a long one also
ConAnd81 1 Jan, 2019 @ 10:42pm 
Worked like a charm, thanks for the swift troubleshoot, much appreciated. ^_^
Good luck with the script-renovation, flexibilty and ease of use should be the hallmark of scrips that has such outwards simplicity as this one, keep it up.
Morphik  [author] 31 Dec, 2018 @ 2:18pm 
Actually this one was a easy tweak for the fix you wanted. All I did was change "IMyCargoContainer" on line 43 to "var". So as the script sits if the named block has a inventory, the script will see it.

I still plan on doing some minor changes to the script, maybe add in a group option for those that like using groups, but I will make it so the tag goes inside the custom data block instead of filling the blocks name.
Morphik  [author] 31 Dec, 2018 @ 1:51pm 
I've actually been meaning to fiddle with this script again. Instead of changing names I might make it look for a tag inside a blocks 'custom data'.
ConAnd81 30 Dec, 2018 @ 8:08pm 
Nice script, well, at least it used to be; buuut, I might be me at fault here, lets see. Seems the script can't account for the contents of Drills anymore, it could do that just fine when I played back in 2017.
Have a small planet miner that I need to know when to stop mining with before it crashes and burns, since the thrusters can't hold it up with even the drills loaded. Worked like a charm before, but now it throws an exception as it can't type cast 'Sandbox.Game.Weapons.MyShipDrill" to 'Sandbox.ModAPI.Ingame.IMyCargoContainer', anything I can do? Can't really cram a container in there, it's really compact.
Also, not too keen on the renaming everything to 'cargo ore' and what not, like to have more helpful 'induvidual' names for containers. Block Groups always seemed like a more flexible way to tell scrips what they can fiddle with.
MA€STRO™ 16 Feb, 2018 @ 6:58pm 
Yes, Thanks, can you upload a world whit this in use?? please
Morphik  [author] 15 Dec, 2017 @ 3:45am 
1 Year later and I have dynamically changed the way this script works and looks. I think you will enjoy it. The original verticle bar graph is gone, and has been replaced by Horizontal monospace colored bars. The text graph works on corner LCDs and looks great.
Morphik  [author] 20 Dec, 2016 @ 8:01pm 
I'd rather not make any changes to the text portion. But I am working on horizontal and vertical LCD textures for the Corner LCD's. I will post them here along with how to change the code to use those textures instead of the normal ones.