Space Engineers

Space Engineers

Group Cargo Display with Images. V6.5
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.
Arcane Axiom 19 Dec, 2016 @ 7:04pm 
Hey, I absolutely love this for survival mode. It's great for preventing overfill on my workbee.
That said, I'm making a new workbee, and trying to make use of the new corner displays...Do you think you could make the script capable of horizontal display as well (even if just the textual display)?
Morphik  [author] 24 Aug, 2016 @ 7:33pm 
Updated the script. It should work again.
Geech6 24 Aug, 2016 @ 6:44pm 
I tried to fix it myself, but I'm a little rusty in C# but from what I found this might help you, considering you made the script and know where and how it works.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=709010443

It's the explaination of what was changed in 1.142 which was pushed to this stable branch. Hope this helps :steamhappy:
Morphik  [author] 21 Aug, 2016 @ 12:04pm 
Geech6 Until I can figure out what they changes with block groups, I can point you to this script.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=711068907
It uses my textures as well, and in a lot of ways is better than this script in functionality.
Geech6 21 Aug, 2016 @ 11:55am 
The script doesn't compile with errors on line 24 and 32, related to .Blocks missing from IMyBlockGroup.
Anach 16 Apr, 2016 @ 5:47am 
Going to give this a try, as I like the look of the text graph option, which will suit my 80's feel. Would be awesome if your other mods also had a text graph option. Also, if it would work horizontally with the corner LCDs, that would be fantastic.
Jakaya 5 Apr, 2016 @ 9:51am 
How do i get this script to display to multiple LCD's
I tried naming them the same however this didnt work it still only displaying on once LCD
iNVERTED 22 Mar, 2016 @ 2:58pm 
can i edit it so it can work with oxegen tanks and other stuff?
Sebforce116 17 Mar, 2016 @ 10:34pm 
ok cool thanks :D
Morphik  [author] 17 Mar, 2016 @ 9:50pm 
I also made a new set of Images for this script that is in 1% increments, the link is above in the description and on the right in the required items list. How to use the new Image set is also above in the description.
Morphik  [author] 17 Mar, 2016 @ 9:42pm 
p3st|cIdE's has a script that uses my Hydrogen bars.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=603521555
Sebforce116 4 Mar, 2016 @ 3:10pm 
can you use it for hydrogen tanks aswell?
Nico.973 [1erRT] 10 Feb, 2016 @ 6:59am 
Oh I haven't seen your answer to Wingnut... So it only work on the same grid. So bad :(
Nico.973 [1erRT] 10 Feb, 2016 @ 6:54am 
Hi morphik, I really need your script for my small ship but it doesn't work :( I placed the programmable block and timer on my big ship (I don't have station) but when I do everything, set groups, timer, actions, names in the script, it doesn't work... I would like to show the percentage on a little LCD in the cockpit.
Morphik  [author] 7 Feb, 2016 @ 9:24am 
I designed this script to only work within the same grid. I did this because docking with a connector or merge blocks for some reason stopped the script from running until it was reset.
Cypherwulfe 23 Dec, 2015 @ 7:30pm 
Did something happen to break this script recently? I am getting a caught exception error when I run it.
Wimpoman 24 Oct, 2015 @ 11:14am 
Awesome! Thank you for the fast reply. ;) And for all the work, obviously. :D
Morphik  [author] 24 Oct, 2015 @ 9:54am 
To answer the second question, yes, this script can track any block that has a inventory. You simply need to put those blocks in a group instead of (or with) cargo containers.
Morphik  [author] 24 Oct, 2015 @ 9:51am 
Yeah since I used a uniform naming method on all my LCD scripts you can easily change the script to use any of them.
say you wanted to use my Full screen LCD bars.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=497051776

You would go into the script and change:
lcd.AddImageToSelection(string.Format("Percent {0}",(index*5).ToString("D3")));

To this:
lcd.AddImageToSelection(string.Format("Percent_Full {0}",(index*5).ToString("D3")));

The Incline LCD pack would look like this:
lcd.AddImageToSelection(string.Format("Incline {0}",(index*5).ToString("D3")));
Wimpoman 24 Oct, 2015 @ 9:05am 
Hi there Morphik,
I have subscribed to this as well as your Jump Drive script and Battery Monitor scripts, along with your Percent Bars, Percent Incline and Jump Drive Charge LCD images. Is it possible for me (or any user) to edit your script/s so that it uses any of the 3 image packs? Also, is it possible to use this script to track the inventories of Rectors or Oxygen Generators (for example, to see how much fuel or ice/oxygen is remaining)? I'm guessing this would be as easy as inputting the name of the group of reactors into your script instead of the name of a containers group?
Cheers in advance. ;)
Theristis 25 Sep, 2015 @ 10:02pm 
Lol, No worries Morphik, though i'm not exactly new, but yeah I'm there with you on the forgetting things haha, hence how I forgot the timer :P
Morphik  [author] 25 Sep, 2015 @ 9:30pm 
@sldii123
I just uploaded a crappy resolution video of step by step how to setup the script.
Morphik  [author] 25 Sep, 2015 @ 8:31pm 
@Vicizlat
I might add in an extra texture for 99%, because I know exactly what you are saying and yes it bothers me too.

@Exodus
Changed description to include the timer setup, I forget sometimes that others are new to this game and might not know all the tricks yet. Thanks for bringing this to my attention.

@sldii123
Read my updated description, I changed it to be much more detailed on how to set up the script.
killerbee 25 Sep, 2015 @ 2:30pm 
How do you work this. I put it next to my refinery and grouped the refinery and screen and nothing is working... I know I am dumb but help.
Theristis 18 Sep, 2015 @ 12:34pm 
Loving the simplicity and functionality of the script, however I seem to be having an issue with it. I'm using an Azimuth Small Cargo Container, and the script doesn't seem the recognize the container, or won't update with the percentage. any ideas?

Edit: I fixed it by adding a timer to the run command to keep forcing it to update. Thanks for an amazing script, helps me out with my ship builds. :Kingdom:
Vicizlat 26 Aug, 2015 @ 3:36pm 
Thanks for this script (and the images for it)!

Just did some testing with it and noticed a problem - it only ever shows 100% if the cargo is filled to the top (0.00l volume left). When using it for a grinder ship, as you know components don't always fill that accurately and you may end up loosing some. The graph bar kept showing 95% and the text bar - 99%. Had to do a lot of fiddling to actually make it show 100%.
Could you make an option to choose if you want 100%=100% or 100%=9x% and so on...

I know I could easily just go and dump my cargo when hit 95% and get around it, but still it would be a nice addition if it's possible. :)
Morphik  [author] 14 Aug, 2015 @ 9:43am 
It does. I just tested it and Yes. As long as the block has inventory space the script will recognize it in the group.
Q_meets_the_doctor 14 Aug, 2015 @ 8:53am 
will this work if all you have on a ship if all you have for storage on a ship is a twin welder / grinder and a connector for storeage
RyansPlace 9 Aug, 2015 @ 9:39am 
Is there a version of this for battery charge status?
Morphik  [author] 8 Aug, 2015 @ 6:34am 
I am trying to debug a issue with this script. It seems the program forgets what containers it looks for after connecting to another ship/staion via connector blocks. I should have this sorted out soon, sorry if this is effecting anyones game.
Lengueni 6 Aug, 2015 @ 9:14am 
Gave you a thumbs up, needs more attention.
kavon 17 Jul, 2015 @ 12:55pm 
lol
MethAtroN 17 Jul, 2015 @ 9:17am 
And i only know two languages, Italian and very Bad English. :-)
Morphik  [author] 17 Jul, 2015 @ 6:41am 
Thanks. I only know two languages, English and Bad English.
MethAtroN 17 Jul, 2015 @ 3:49am 
kavon 16 Jul, 2015 @ 11:43pm 
Thanks buddy
Morphik  [author] 16 Jul, 2015 @ 11:41pm 
Fixed the script, it should work fine again.
Lumios 16 Jul, 2015 @ 10:19pm 
thanks!!
Morphik  [author] 16 Jul, 2015 @ 9:05pm 
Update 1.091 broke my script, I am trying to figure it out now. Hopfully I can have it fixed soon.