Space Engineers

Space Engineers

Not enough ratings
Inventory Grid
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
404.452 KB
26 Dec, 2023 @ 9:19am
3 Jan @ 7:31am
11 Change Notes ( view )

Subscribe to download
Inventory Grid

Description
This script shows your ships inventory in an easy to see grid.
Supports only dedicated LCD panel blocks, embedded screens like in cockpits are not supported!

Basic setup:
1. Add this script to a Programmable Block
2. Find the LCD panel you want to use
3. Add [INVENTORYGRID] to it's name
4. Open it's CustomData and write in the container's neme (group supported), write '[all]' to show all available inventory (w/o quotes)
5. Aww the marvels of scripting

Advanced options:
PB settings (CustomData):
LCD_TAG=[INVENTORYGRID] : the name tag the script will look for to find the LCD panels you want to use
ShowNames=True : Show item names on screen
OverConnector=False : Look for LCDs and inventories over connectors
SameGridOnly=False : Disables LCDs and inventories on subgrids (disables overconnectors as well regardless of above setting)
ShowGridLines=True : Enable grid lines
IconSize=70 : Size of the icons, valid range is between 1 and 85
RefreshRate=1.8 : Paging frequency in sec
FillBar=False : Show a percentage bar at the bottom instead of numeric summary info

If you change anythig in PB CustomData you need to hit Recompile for the changes to take effect!

Colors:
Background and text color can be set at your screen settings.
You can add colors to the icons. Not real colorization, just like a tint.
You can use any of the following in the customdata with your own RGB values:

AllColor=255,255,255
OreColor=255,255,255
IngotColor=255,255,255
ComponentColor=255,255,255
AmmoColor=255,255,255
ConsumableColor=255,255,255
ToolColor=255,255,255
GridColor=255,255,255

Consumables include consumables, packages, and gas bottles.
Tools include tools, weapons, datapads, and space credits
GridColor matters only if you enable ShowGridLines
Rest are self-explanatory.
Individual categories override the All setting.

You can use these and iconsize even for each LCDs. Screen setting overrides PB setting. Go ham!

If you want to see only certain item types add a filter parameter to your lcd's customdata with a comma separated list.
Example: Filter=Ore,Ammo
The valid categories are the same as for the icon colors (without the 'Color' postfix of course)

!IMPORTANT! If you add any additional option to a screen make sure the inventory name stays the very first row!

Screen linking:
You can link screens together by writing the primary screen's name followed by a colon and a page number (only larger than one, the primary will be the page one automatically) into any linked screen's custom data, instead of an inventory name (Example: "LCD Panel [INVENTORYGRID]:2" )
All other settings are inhertied from the primary screen.
Make sure you link only the same type of screeens, or you may get funky results!
31 Comments
posthy  [author] 3 Jan @ 7:39am 
This took a while, but screen linking is finally here
Kehvan007 9 Nov, 2024 @ 1:22pm 
How do I span multiple LCD panels?
BooseOG 4 Nov, 2024 @ 2:02pm 
IM here looking to see if you added the ability to link LCD's as apposed to the abandoned one
posthy  [author] 8 Sep, 2024 @ 5:27am 
@ricwib Could you please give me more details? I works properly for me.
@Gilius Gaming: I couldn't reproduce your issue. Is there any error messages in the console? Or maybe a mod is causing problems?
Gilius Gaming 6 Sep, 2024 @ 12:27pm 
I'm having a problem, when I set up the game it works fine, but if I quit the game and come back a little later, the display works but doesn't refresh.
and the strangest thing is that things that were already there freeze, but new things that weren't there are displayed correctly.
ricwib 5 Sep, 2024 @ 3:26am 
The filter command doesnt work
chillshock76 6 Jul, 2024 @ 3:30am 
this is a very good script. it took me a while to figure out but i got there in the end
posthy  [author] 28 Apr, 2024 @ 2:30am 
@Engma: I didn't plan to, but if there's a demand I may look into it.
Enigma 25 Apr, 2024 @ 8:05pm 
Saw your comment on the abandoned version, this is awesome!

Is there any chance that you could add the ability to link lcds?
posthy  [author] 18 Mar, 2024 @ 5:54am 
@BENBOBBY: You can create groups with whatewver block you want to include.