Space Engineers

Space Engineers

Not enough ratings
Inventory Grid
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
407.668 KB
26 Dec, 2023 @ 9:19am
25 Oct @ 11:55am
12 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!
FillBar setting can be set for each lcd as well!

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)

By default the items are in the same order as on the in-game UI. You can override this by adding 'Order' to the lcd's customdata with possible values of 'Name' or 'Amount'.
Example: Order=Amount

!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!
38 Comments
posthy  [author] 25 Oct @ 12:01pm 
New version is out, check change notes!
jagodragon 29 Sep @ 2:14pm 
@Posthy, Thank you! BTW I do Love the script.
posthy  [author] 27 Sep @ 10:23am 
@jagodragon: No, row and col count is calculated based on the screen size, but adding a manual override option is probably easy enough. I may look into it

Thanks for all who draws my attention to errors, i will fix them soon, just have to find some time...
jagodragon 26 Sep @ 9:44pm 
is there a setting to just change grid size? like "GridSize=5x1" or "RowCount=1" and ColCount=5"

also, The option to hide fill level isn't working
Trindle 14 Sep @ 2:51pm 
Putting all in the customdata just shows an empty inventory and the PB says "all not found". Also changing anything in the text/background color make the screen go blank and only grinding down and replacing it will make anything come back
posthy  [author] 9 Aug @ 3:54am 
@TimeRupture: No, but it's an interesting idea, I may look into it when I can find some time
TimeRupture 8 Aug @ 2:35pm 
is there any way to sort the grid by amount of items?
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