Inventar
Изображение 1 из 11. Материалы автора из Steam Workshop.
О материале
«Inventar» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
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:
- Subscribe this script
- Place a programmable block and access its control panel
- Press "Edit" to open the code editor
- Press "Browse Workshop" at the bottom of the code editor
- Choose the script "Inventory" and press "Ok"
- Press "Check Code" (should have no errors) and then "Remember & Exit"
- Run the programmable block
- 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)
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.