Space Engineers

Space Engineers

297 ratings
Inventory Content Display Script
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
244.824 KB
8 Mar, 2015 @ 7:53am
4 Jan, 2023 @ 3:28am
29 Change Notes ( view )

Subscribe to download
Inventory Content Display Script

Description
This script will allow you to display the content of all the inventories of your ship/station very easily. It is really simple! You just need to read "short introduction" to use it (I'm also too lazy to read everything ;) ). If you like my work, please rate it. ^_^

Short introduction [YOU ONLY NEED TO READ THIS TO USE THE SCRIPT]:
  • enable experimental mode, if you haven't already (otherwise, you cannot use scripts)
  • set the display mode of the panels to text
  • name the panels "Res #<index>". E.g. a panel named "Res #0" will be the first panel, a panel named "Res #1" the second, ... (note that there is no whitespace after the #)
  • build a programmable block and load this script (obviously)
  • enjoy!

List of features:
  • Overview of all ores, ingots, components and ammo.
  • Each category can be displayed separately.
  • The same information can be displayed on various LCD panels.
  • Display the content of the inventory of a block.
  • Custom block names - name the blocks like you want.
  • Oxygen, hydrogen and battery status.

Additional information:
- The order of the panels is important for the displaying because the data does not fit on one panel alone.
- It doesn't matter if you skip an index, but a duplicate index (so two panels with the same name or text) will cause the scrip to display the information twice. Any index below 0 will be ignored.
- If you have not enough screens in the group, the script will throw an exception.
- The script will automatically fetch the display's font size and put as much text on it as possible. However, you might notice a gap at the bottom of the panel since the last line would not fit on it entirely. Just increase the panel's font size then until it fits perfectly.

Displaying one category only:
Prefixes: Ore for Ore, Ing for ingots, Com for components and Amm for ammo
  • Build some panels
  • name the panels in it like "[PREFIX] #<index>". E.g.: to display ores the panels are named "Ore #1", "Ore #2", "Ore #3", etc.
  • enjoy!

Display the same information on different panels:
  • Name the second panel like that one whats information you want to display
  • enjoy!

Custom names:
The script will also search in the public title for a valid identification name. I.e. you can set the name to "My favorite panel" and set the public title to "Res #1" and still works. Note that the name has a higher priority, so a panel with the name "Res #1" and the public title "Res #7" will have the index 1.

Display block inventories:
You can display the inventory of a block. There are two ways:
    • build a panel so that the block that's inventory you want to display is behind the panel,
    • name it (or set the public title to) Inv #[INDEX]
    • enjoy!
    • build a panel wherever you want (of course, on the same ship/station as your block)
    • name it (or set the public title to) Inv #[INDEX] "[BLOCKNAME]" (e.g. Inv #1 "Assembler 6")
    • enjoy
Note, that the index is new for each block.

Display oxygen, hydrogen and battery status:
To see the current level of all oxygen tanks, hydrogen tanks and batteries,
  • build an LCD panel
  • name it (or set the public title to) Sta #[INDEX] (usually one panel is enough as it's only two lines, so name it Sta #1)
  • enjoy!


Examples:
Anything:
Panels (name or public title):
  • Res #1
  • Res #2
  • Res #3
  • Res #4

Ores:
Panels (name or public title):
  • Ore #1
  • Ore #2
  • Ore #3
  • Ore #4

Ingots:
Panels (name or public title):
  • Ing #1
  • Ing #2
  • Ing #3
  • Ing #4

Components:
Panels (name or public title):
  • Com #1
  • Com #2
  • Com #3
  • Com #4

Ammo:
Panels (name or public title):
  • Amm #1
  • Amm #2
  • Amm #3
  • Amm #4

Block inventories:
Panels (name or public title):
  • Inv #1
  • Inv #2
  • Inv #3
  • Inv #4

Status:
Panels (name or public title):
Popular Discussions View All (1)
1
5 Feb, 2024 @ 9:56am
LCD
Orici Vintarion
274 Comments
miked9999 25 Apr @ 5:20am 
When you say "displays content", does it display volume, mass or quantity ?
Katsuya76 13 Dec, 2024 @ 11:45am 
hey Engineers i got it to work!!!
name the LCD-Panel: Ing #0 or Ore #0 and so on,after that you have to change something in the LCD-settings!
from "no Content" to "Text and Pictures"
Katsuya76 28 Nov, 2024 @ 2:56pm 
it doesnt work for me ... I named a LCD Ing #0 but still "no Panels found" !
i play SE with the German language.
Flamytygwa 18 Oct, 2024 @ 1:06pm 
This script is great, simple and no frills. If your like me and don't want decimal places because they make it hard to read at a glance, change this line just below the "DO NOT CHANGE ANYTHING BELOW"
From:
const string NumberFormat = "#,0.0##";
To:
const string NumberFormat = "#,0";
And you will only get whole numbers.
Your welcome.
WoBra 26 Sep, 2024 @ 9:19am 
I Named my LCD in Ore #1 and Nothing.... Dont Work for me!
Nirrtix 15 Aug, 2024 @ 1:10pm 
Does this script Autobuild?
theseal 29 Jun, 2024 @ 1:55pm 
Hey, thanks for the script, workign fine and very good!
Is there a possibility to switch the output language?
The names als all in english, but my game is in german ;)
Stickman 13 May, 2024 @ 12:07pm 
Why does this script stop working every day? I have to change the LCD name and back again to get it to begin updating each day
[I.L]Methidox 27 Apr, 2024 @ 8:40pm 
this script is PERFECT. simple AND adjustable. nc, exactly what i was searching 2 hours for
Stickman 8 Apr, 2024 @ 5:19pm 
Is it possible to combine categories on one display? Like display ores and ingots on the same panel?