Space Engineers

Space Engineers

298 beoordelingen
Inventory Content Display Script
3
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
244.824 KB
8 mrt 2015 om 7:53
4 jan 2023 om 3:28
29 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Inventory Content Display Script

Omschrijving
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):
Populaire discussies Alles weergeven (1)
1
5 feb 2024 om 9:56
LCD
Orici Vintarion
274 opmerkingen
miked9999 25 apr om 5:20 
When you say "displays content", does it display volume, mass or quantity ?
Katsuya76 13 dec 2024 om 11:45 
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 om 14:56 
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 okt 2024 om 13:06 
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 om 9:19 
I Named my LCD in Ore #1 and Nothing.... Dont Work for me!
Nirrtix 15 aug 2024 om 13:10 
Does this script Autobuild?
theseal 29 jun 2024 om 13:55 
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 mei 2024 om 12:07 
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 om 20:40 
this script is PERFECT. simple AND adjustable. nc, exactly what i was searching 2 hours for
Stickman 8 apr 2024 om 17:19 
Is it possible to combine categories on one display? Like display ores and ingots on the same panel?