Space Engineers

Space Engineers

Automatic LCDs 2
🍾🦝 4 Aug, 2017 @ 6:00am
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.
Last edited by 🍾🦝; 4 Aug, 2017 @ 6:29am
< >
Showing 1-5 of 5 comments
Kham 4 Aug, 2017 @ 6:39am 
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.
🍾🦝 4 Aug, 2017 @ 7:14am 
That works too, thank you. But still, it works as 'InventoryX' instead of 'Inventory'.
Kham 4 Aug, 2017 @ 7:51am 
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.
🍾🦝 4 Aug, 2017 @ 8:29am 
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 4 Aug, 2017 @ 9:21am 
You're welcome. Glad you were able to add them in ok. :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50