Space Engineers

Space Engineers

Automatic LCDs 2
🍾🦝 2017 年 8 月 4 日 上午 6:00
Issue with 'Inventory' command
Hi, I'm using this mod and I tried to display amount of ammo I have to this particular gun. Unfortunately, I managed to display only vanilla ammo apart from modded. So I extracted xml files from this mod and found out that a sub type is '88shell' and '88hekc' and a full name is '8.8cm APCR Shell' and '8.8cm HEKC Shell'. So I have tried different commands, such as
Inventory T:* +ammo +88shell
and
Inventory T:* +ammo +8.8cmAPCRShell
but to no avail.

Edit: Apparently, it only works when this ammo is on ship which means it works as a command 'InventoryX', without amount bar and quota. So it doesn't work as it should.
最后由 🍾🦝 编辑于; 2017 年 8 月 4 日 上午 6:29
< >
正在显示第 1 - 5 条,共 5 条留言
Kham 2017 年 8 月 4 日 上午 6:39 
When looking for a specific subtype, use a forward slash rather than a plus.
If your subtype IDs above are correct, you'd want to do "+ammo/88shell" or "+ammo/88hekc". You can also do "+ammo/88shell,88hekc" to display both types of ammo.
🍾🦝 2017 年 8 月 4 日 上午 7:14 
That works too, thank you. But still, it works as 'InventoryX' instead of 'Inventory'.
Kham 2017 年 8 月 4 日 上午 7:51 
That's because the script doesn't contain any preset information for modded items. If you want it to display modded items even when they are at 0 you need to edit the script itself on the PB. Look around line 193 for // MODDED ITEMS and you can add them in there if you really want them to display when you have 0.
🍾🦝 2017 年 8 月 4 日 上午 8:29 
Thank you very much! I followed the examples, added those 2 ammo types and when set to true, now they show up with a proper name, a bar and quota which is exactly what I wanted.
Kham 2017 年 8 月 4 日 上午 9:21 
You're welcome. Glad you were able to add them in ok. :)
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50