Space Engineers

Space Engineers

70 ratings
Cargo Capacity Script + (Suports Cocpit LCD's)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.394 MB
Oct 30, 2023 @ 12:13pm
Nov 9, 2023 @ 2:44pm
8 Change Notes ( view )

Subscribe to download
Cargo Capacity Script + (Suports Cocpit LCD's)

Description
    Cargo Capacity Script +

This is a script to monitor the capacity of any cargo containers, connectors or other storage blocks like Drills or Welders.

This script can be used on any grid. It excludes any further connectet grids.

Supports displaying to any nameable LCD Block and includs displaying to LCD's lnside Cockpit Blocks.

Outputs the Cargo Level in "%" then Battery Power Level in "%" and at least Reaktor Fuel Level in "%"
Includes a progressbar for every value.

    Setup

//------------------------------------ Config ------------------------------------// //================================================// /* Cargo Capacity Script + This is a script to monitor the capacity of any cargo containers, connectors or other storage blocks like Drills or Welders. This script can be used on any grid. It excludes any further connectet grids. Supports displaying to any nameable LCD Block and includs displaying to LCD's lnside Cockpit Blocks. Outputs the Cargo Level in "%" then Battery Power Level in "%" and at least Reaktor Fuel Level in "%" Includes a progressbar for every value. */ //Name of your Cockpit Block -> Can be Changed readonly string CockpitName = "Industrial Cockpit"; //Lcd Panel Number on your Cockpit Block -> Changed to desired Value //To See the Abount of found LCD's "LCD Screens in Cockpit: x" on your Cockpit Block look at the last entry on the Debug Display of your Programmable Block //Default value: 2 -> Is the second Screen on the Cockpit readonly int LcdPanelNumber = 2; //Disables/Enables Output to given Cocpit LCD -> "true" = Enabled Output, "false" = Disabled Output readonly bool DoCocpitLCDOut = true; //Name of your LCD Pannel -> Can be Changed readonly string LcdName = "LCD"; //Disables/Enables Output to LCD Pannel -> "true" = Enabled Output, "false" = Disabled Output readonly bool DoLCDOut = true; //Disables/Enables Output for more detailed/atvanced Output to the LCD's -> "true" = Enabled Output, "false" = Disabled Output readonly bool DoAdvancedOutput = false; //Disables/Enables Output of current Uranium level from "m³" to "MWh" -> "true" = Enabled Output, "false" = Disabled Output readonly bool DoReaktorPowerInMWh = false; //Canges length of all Progressbars //Default length: 50 -> Number of characters between brackets readonly int barLength = 50; //-------------------- Symbols Used by Progressbar --------------------// //================================================// //Example Progressbar using default character set: //{||||||||||||||||||||||||||||||||||||||||||||||||||} -> Full Progressbar (100%) //{|||||||||||||||||||||||||'''''''''''''''''''''''''} -> 1/2 filled Progressbar (50%) //{''''''''''''''''''''''''''''''''''''''''''''''''''} -> Emty Progressbar (0%) //Canges the character used to display a full Progressbar //Default character: | readonly string BarFull = "|"; //Canges the character used to display a empty Progressbar //Default character: ' readonly string BarEmpty = "'"; //Canges the character used at the beginning of The Progressbar //Default character: { readonly string BarStart = "{"; //Canges the character used at the end of The Progressbar //Default character: } readonly string BarEnd = "}"; //-------------------------------- End of Config --------------------------------// //================================================/
    Report a Bug ??

Please Comment if you found a bug : )


12 Comments
Rastlore30 Mar 8 @ 4:10pm 
https://steamcommunity.com/sharedfiles/filedetails/?id=822950976

been around since 2016, updated 4 Feb 2024... handles this function and isn't limited. Set up is as easy as loading it into a Programmable Block and putting the tag [LCD] into the name of the screen you want set up to display data, then going into the Custom Data of said screen or block and set the commands. I mean, it even has a fully detailed guide for every command you can use for whatever you want displayed...

https://steamcommunity.com/sharedfiles/filedetails/?id=407158161

In that screenshot, you only need to input 3 commands to get the same result that you can also tailor to your preferences, even works for modded blocks, (drills, cargo, reactors, you name it). I just don't understand why we keep reinventing the wheel here unless this was a script you wrote while learning how to set up code. If that is the case then good work and I look forward to your future scripts.
Cado Feb 26 @ 5:48am 
Thanks for the script! As a new player I was too confused by many things to make it work (especially I didn't know that setting screens into "Text and Images" mode is required, and properly configuring screen index was confusing), but I used your code to develop my own version that was more tailored to my needs :) You were great help!
Darth Porgus Jan 15 @ 8:51am 
Thank you for this script. Schönes Profilbild von GATE.
Progammer TM08 Jan 3 @ 6:23pm 
Could you add an Hydrogen Bar in a possible future update?
Miniblåsan Dec 8, 2023 @ 6:49pm 
@infra-dan-accelerator unit 84725

Misspelling can be both right and wrong, depends entirely on how you see it.

For example, as a Swede, I can tell you that this German builder has spelled reaktor exactly right both in German and in my native language, Swedish while in English you prefer C instead of K in the word, which is so strange to us.
infra-dan-accelerator unit 84725 Dec 6, 2023 @ 11:57am 
you misspelled "reactor"
Bannor Dec 4, 2023 @ 10:43pm 
Using this on a named control seat. I've set the seat name in the script, and it appears to be monitoring my ship (debug display gives data about current cargo), but I can't get it to display on the control seat main display - it is completely blank. I've added the display name to the script, but still blank.
Same deal on another ship with an industrial cockpit.
What am I doing wrong?
Shiro Forge Dec 4, 2023 @ 12:46pm 
//Name of your LCD Pannel -> Can be Changed
readonly string LcdName = "LCD";

if I'm reading right this should be changed to the specific lcds name?
or altered to a cockpit number with this string pointing to the cockpit?

//Name of your Cockpit Block -> Can be Changed
readonly string CockpitName = "Industrial Cockpit";

//Lcd Panel Number on your Cockpit Block -> Changed to desired Value
'KeithFromCanada' Olson Dec 4, 2023 @ 11:46am 
I suggest adding a 'partially-full Progressbar' character for double the precision without using more characters. For example, someone could use '▌' (<ALT-221>) for the 'partially-full' character and '█' (<ALT-219>) for the 'full' character. Others might use 'o' & 'O'/'-' & '=', etc.)
Babich Dec 3, 2023 @ 10:18am 
Script was changing every LCD on my base. Settings was default, except LCD number which was equals 3.