Space Engineers

Space Engineers

60 ratings
Inventar
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
260.153 KB
12 Jul, 2016 @ 3:27pm
5 Mar, 2022 @ 1:02pm
13 Change Notes ( view )

Subscribe to download
Inventar

Description
This script shows the whole inventory on one or multiple lcd panels.

Features:
- Shows all inventory items sorted by type (ores, ingots, components, tools)
- Empty items can also be shown (has to be enabled)
- Commands to show ores, ingots, components or tools separately
- Target amount can be set for each item
- Rare items that are below target amount can be shown as well
- Rare items can be sorted by name or rarity
- Refineries can be controlled to refine rarest material first
- Assemblers can be controlled to reproduce rare components automatically
- Custom language support
- Self updating (no timer block needed)

Language:
The language is English by default but it can be easily changed by set the value useCustomLanguage in the section Settings in the upper part to true. By default, the language is changed to german. However, it can be chosen any language, by adapting the labels in the section Custom Language.

Setup:
1. Subscribe this script
2. Place a programmable block and access its control panel
3. Press "Edit" to open the code editor
4. Press "Browse Workshop" at the bottom of the code editor
5. Choose the script "Inventory" and press "Ok"
6. Press "Check Code" (should have no errors) and then "Remember & Exit"
7. Run the programmable block
8. Place a lcd panel and edit the public title (See chapter Configure for details)

Configure:
To display the power usage on a given lcd panel the public title of the lcd panel have to be changed in Inventory. Then when the script is running the public text contains a list of all items. The public text can now displayed on the lcd panel. With the commands Inventory Ores, Inventory Ingots, Inventory Components and Inventory Tools only the ores, ingots, components or the tools can be displayed on the lcd panel. Also with the command Inventory Materials the ores and the ingots can be displayed together. Furthermore, rare items can be displayed with the command Inventory Rare. Rare items are items whose amount is below the target amount. The target amount can be set up in the custom data section of the programmable block on which this script is running. The target amount can be set for each item individually.

Command:
The commands Inventory, Inventory Ores, Inventory Ingots, Inventory Components, Inventory Tools, Inventory Materials and Inventory Rare can be changed in upper part in the section Commands too.

Settings:
With the values in the section Settings in the upper part of the code (before the Main function) the behavior of the script can be changed.

The following can be set:
useCustomLanguage: use the custom language
showEmpty: show items that have zero amount
sortRareItemsByRarity: sort rare items by rarity instead of name
writeToCustomDataIsAllowed: the script is allowed to write to the custom data section of the executive programmable block
(Note that the script is still reading from the custom data section to get the target amount. So if the custom data section is used for other purposes the rare item function might not work.)
showTextOnScreen: show the text automatically on the screens
showInfoOnOwnScreen: show info automatically on own screen (on programmable block)
selfUpdating: run the script periodic byself
controlRefineries: control refineries to refine rarest material first
controlAssemblers: control assemblers to reproduce rare components automatically
restrictToOwnGrid: consider just own grid (eg. no docked ships)
86 Comments
erik 24 Jan @ 9:51am 
bonsoir ne semble pas fonctionner pour moir pourriez vous faire une petite video explicative merci
erik 24 Jan @ 9:32am 
bonsoir ne semble pas fonctionner pour moi
3dfxorchid 20 Jan @ 3:51pm 
der Part mit AMMO fehlt noch, ich mag deine scripte
3dfxorchid 20 Jan @ 2:57pm 
was noch nice wäre, ist das man sachen ausblenden könnte die man nicht auf dem LCD sehen will.
3dfxorchid 20 Jan @ 2:54pm 
ansonsten euct super das script weiter so
3dfxorchid 20 Jan @ 2:54pm 
Canvar = Fallschirmscheide und metal grid = Metallgitter
ProtoEden 8 Apr, 2023 @ 6:23pm 
Hello @rubinknoepfel,
First off i have been using this script since 2019 and i have loved the simplicity of it... I only noticed today that you added the 'ton' unit in and am really appreciating it... so, my question becomes is it possible to add in the larger units of Kt (Kiloton) and Mt (Megaton) as i regularly get into these larger quantities in my long term bases... thank you again for keeping the usage of your mod simple.
Eden
seppi141 1 Nov, 2022 @ 1:19pm 
alles gut hab es schon gelöst danke für die nachfrage
rubinknoepfel  [author] 1 Nov, 2022 @ 12:45pm 
Hallo seppi141, welche Sachen meinst du? Die knappen Ressourcen (Inventory Rare) oder die anderen?
seppi141 23 Oct, 2022 @ 2:02am 
bei mir werden die sachen immer nach namen sortiert und nicht nach Anzahl