Space Engineers

Space Engineers

298 个评价
Inventory Content Display Script
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
244.824 KB
2015 年 3 月 8 日 上午 7:53
2023 年 1 月 4 日 上午 3:28
29 项改动说明 ( 查看 )

订阅以下载
Inventory Content Display Script

描述
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):
热门讨论 查看全部(1)
1
2024 年 2 月 5 日 上午 9:56
LCD
Orici Vintarion
274 条留言
miked9999 4 月 25 日 上午 5:20 
When you say "displays content", does it display volume, mass or quantity ?
Katsuya76 2024 年 12 月 13 日 上午 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 2024 年 11 月 28 日 下午 2: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 2024 年 10 月 18 日 下午 1: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 2024 年 9 月 26 日 上午 9:19 
I Named my LCD in Ore #1 and Nothing.... Dont Work for me!
Nirrtix 2024 年 8 月 15 日 下午 1:10 
Does this script Autobuild?
theseal 2024 年 6 月 29 日 下午 1: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 2024 年 5 月 13 日 下午 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 2024 年 4 月 27 日 下午 8:40 
this script is PERFECT. simple AND adjustable. nc, exactly what i was searching 2 hours for
Stickman 2024 年 4 月 8 日 下午 5:19 
Is it possible to combine categories on one display? Like display ores and ingots on the same panel?