Space Engineers

Space Engineers

评价数不足
Cargo % Filled Display
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.794 KB
2019 年 4 月 19 日 下午 5:35
1 项改动说明 ( 查看 )

订阅以下载
Cargo % Filled Display

描述
This script calculates the fill percentage of cargo containers on the current grid (whichever grid the programmable block is placed on). The display is very simple, and by default will just show a numerical percentage.

To use this script, load it into a programmable block, then create and rename an LCD "Inventory Display" (must be on the same grid as the programmable block). The script includes all containers with cargo capacity whose names contain the string "Cargo".

You can then edit the font size (and color/alignment/etc) of the LCD screen directly in the Control Panel to match the particular screen you are using and the look you want.



There are three user variables for optional configuration, but you can use this script without touching any of them.

You can have the percentage prefixed with "Storage:" by changing the user variable displayStorageText to true.

If you prefer different names for your LCD screen or cargo containers, you can go into the user variables section at the top of the script and change the names. Your LCD screen and/or cargo containers must contain the exact string that is set in the user variables section, but they can contain additional text as well (with the variable set to "Cargo", containers named "Cargo 1" and "Cargo 2" will both be counted).
12 条留言
Allegheny500 2024 年 11 月 23 日 上午 9:37 
Can we get a fix so it will work on cockpit screens?
fab 2021 年 4 月 30 日 下午 3:15 
Works great with my text panel, but i had to set the panel content to display text and images before it would work so try this if it's not working for you!
ACE DOG 47 2020 年 10 月 24 日 下午 7:37 
this script is awesome
Skyline 2020 年 9 月 26 日 上午 2:40 
The script doesnt work. It picks up the containers but doesnt display the fill level on the LCD
Das Hexenmeister 2020 年 8 月 23 日 上午 7:19 
I cant get this script to work anymore
Marcus 2020 年 4 月 25 日 下午 12:37 
It would also be very cool if the script could trigger an action if the cargo is at 100% full and maybe at say 80% so it could turn off drills when cargo is full and switch back on again when theres more space. cheers.
Marcus 2020 年 4 月 25 日 下午 12:35 
Hi. Does this still work? The script picks up the container names but I can't get the display to work ( I have ensured that keyword "Inventory Display" is part of the LCD's name
Ian  [作者] 2019 年 12 月 20 日 下午 11:48 
Thanks SWDarkstone!

Let me know if you guys have any suggestions or requests to improve it!
SWDarkstone 2019 年 12 月 5 日 上午 6:22 
I have been looking for a simple script to see when my heavy miner was full. This is perfect. Bravo!
Ian  [作者] 2019 年 11 月 15 日 下午 2:49 
Glad you like it!