Space Engineers

Space Engineers

251 个评价
Simple Inventory Display
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
319.946 KB
2020 年 1 月 23 日 下午 6:08
2020 年 2 月 8 日 下午 3:08
18 项改动说明 ( 查看 )

订阅以下载
Simple Inventory Display

描述
This is a unified display of all the contents and dynamics of your entire system.

There is no setup. You just put the script in your computer and your stuff shows up on its display. You can configure things in more detail by editing the computer's Custom Data.

To include other grids in the data collection, add a section called `Grids:` (not case sensitive but must have a colon), with each grid on a separate line.


----------------------------------------------
Grids:
My Big Ship
Large Grid 3520
----------------------------------------------


You can show your inventory on as many displays as you want. To do this, add a section called `Displays:`. One display per line, if the block has more than one display surface, put the surface index after a slash. If the display is on another grid, put the grid name before a slash.

----------------------------------------------
Displays:
Text panel
LCD Panel
Control Seat / 0
Large Grid 3520 / Wide LCD panel
Large Grid 3520 / Flight Seat / 1
----------------------------------------------

You can show only the groups you need on each monitor. The available groups are 'Ore', 'Ingots', 'Ice', 'Components', 'Items', 'Ammo', 'Tools' and 'Status'. You can exclude a group from the total display by specifying 'NoOre', 'NoIngots', etc. For example,

----------------------------------------------
Displays:
Text panel @ Ore Ingots Ice
LCD Panel @ Components
Control Seat / 0 @ NoStatus
----------------------------------------------

To configure the computer's own large display, don't write anything before the @.

----------------------------------------------
Display:
@ Ore FullNames Bars
----------------------------------------------

You can also show capacity as percentage in the form of fill bars by specifying 'Bars' for the monitor.

----------------------------------------------
Displays:
Text panel @ Ore FullNames Bars
----------------------------------------------

As a small convenience you can specify a shortcut for a grid name, by putting it before the slash. Then you can use the shortcut in specifying the display path.

----------------------------------------------
Grids:
LG / Large Grid 3520

Displays:
LG / Flight Seat / 1
----------------------------------------------

To create a shortcut for a grid name without adding that grid to data collection, replace the / with a =.

----------------------------------------------
Grids:
LG = Large Grid 3520

Displays:
LG / Flight Seat / 1
----------------------------------------------

You can set the scaling for each monitor individually, by putting it after a @.

----------------------------------------------
Displays:
LCD panel @ 0.75
LG / Flight Seat / 1 @ 1.5
----------------------------------------------

The included grids can be changed and the contents will be updated on the fly, which is useful for situations where you have ex. several ships docked together and you want to see the info of the entire group. If a grid is not found it will be ignored until it's found again, which means you can have permanent auto-included grids.

The items you're "running out of" are shown in red (by default). You can change this limit for each ore, ingot and component type individually.

If you go into the code (not CustomData), the first part of it at the very top is a list of all the limits.
After that you have the colors that everything is drawn with, which you can also customize.

If you don't like the boxes you can hide them by putting `NoBoxes` on a separate line.

If you want to hide the arrows, add 'NoArrows'.
122 条留言
Frission 10 月 13 日 下午 2:04 
The biggest persistent bug in this script is every time I load the game on a dedicated server (sometimes in single player too), the displays are bugged and half the text is missing. I have to, every time, manually go into the SID program block, open up the custom data, and change the setting on every display that's bugged to get it to show something different, then change it back to what I wanted it to show :I This is so tedious. If nothing else, please add a way to refresh this more simply, or fix the bug if you can. D:
Attic Goblin 2 月 4 日 下午 6:45 
Is there a way to display a bar or graph of how full the cargo containers on the grid(s) connected?
If not, I'd love for an option for that.
_Dave. 2024 年 12 月 15 日 上午 8:25 
shamsi: Is there still interest in this script? Should I put some work into it?

Yes!
DaFarmbot 4.0 2024 年 12 月 6 日 上午 8:34 
I use almost every function of the script now. Initially I only used the inventory system to show fuel, comps, and ores I had, but now I use it for about everything. I had to make a modification to the script myself to allow for modded ammo, but that was done by effectively copy and pasting the existing code and changing out certain fields with the modded id tags and correct numbers associated with them. The problem I ran into was that the script was too long and I had to remove the part with the tools since I never really found that part all that helpful and it took up a fair chunk of space. I'm not sure if there is a way to condense the code somehow, but if you included the assault weapons pack, NorthWind Industries, and TIO Industries, you definitely will not have enough space to write the full script. Just with NorthWind and TIO I didn't even have enough space, let alone adding the assault weapons pack.
shamsi  [作者] 2024 年 12 月 6 日 上午 12:33 
I've started a new full time job and I won't have too much time to work on this, so I think I will just make it open source and work on it as I can. What would really help me is if you guys made some videos showing and explaining to me how you use it, then I will be better able to plan my work. For instance the script only supports basic vanilla minerals/tools/weapons, it should support mods also. Etc etc etc.
Frission 2024 年 12 月 5 日 下午 2:00 
I use it a lot too :3 At the moment the bug of the screens losing information over time is my main concern. I occasionally have to just go into the programming block and temporarily remove (or add) the Fullnames tag and then undo that to get it to display normally again.
Marcus Aquila 2024 年 12 月 1 日 下午 1:21 
Yes please!
DaFarmbot 4.0 2024 年 12 月 1 日 下午 12:44 
Honestly would love to see the script get updated. Maybe even a version that includes WC ammo as well.
shamsi  [作者] 2024 年 12 月 1 日 上午 11:47 
Is there still interest in this script? Should I put some work into it?
Frission 2024 年 11 月 5 日 上午 1:18 
Script still works just fine, looks like the only thing causing an error at the moment is if we try to use the "Bars" operator. Don't include that word anywhere and it's fine. Guessing the code for that new addition got FUBAR'd somewhere along the line.