Space Engineers

Space Engineers

Automatic LCDs 2
How to include modded items
Hello MMaster,

First off let me say that I love your script. So much so that I don't play SE without it. Ever.

So I'm trying to get modded ammo from OKIM Weapon bundle to show on my scripted display but I can't seem to do it.
https://steamcommunity.com/sharedfiles/filedetails/?id=429053416

Here's what I did : I looked up on the internet what stuff I have to type in in order to get the ammo to show and what I often found was something called subtypeid so I went to find what was the subtypeid for this or that ammo from the mod. The mod is in folder 1981810078 in steam install directory. Then I went to data/MWI and I opened AmmoMagazines_381mm.sbc (for instance)

when you open it with notepad ++ it shows this :


<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AmmoMagazines>

<!-- https://en.wikipedia.org/wiki/BL_15_inch_Mk_I_naval_gun -->
<AmmoMagazine>
<Id>
<TypeId>AmmoMagazine</TypeId>
<SubtypeId>HEShell381mm</SubtypeId>
</Id>
<DisplayName>381mm HE Shell Stack</DisplayName>
<Icon>Textures\icon\150mmAmmo_icon.dds</Icon>
<Size>
<X>0.25</X>
<Y>0.2</Y>
<Z>0.2</Z>
</Size>
<!-- <Mass>45</Mass>
<Volume>60</Volume> Baseline 200mm Missile-->
<Mass>171.45</Mass> <!-- 85.725 per shell -->
<Volume>228.6</Volume> <!-- 114.3 per shell -->
<Model>Models\Ammo\150mmAmmo.mwm</Model>
<Capacity>2</Capacity>
<AmmoDefinitionId Subtype="381mm_HE_Shell" />
<MinimumOfferAmount>1</MinimumOfferAmount>
<MaximumOfferAmount>99999</MaximumOfferAmount>
<MinimumOrderAmount>1</MinimumOrderAmount>
<MaximumOrderAmount>99999</MaximumOrderAmount>
<CanPlayerOrder>true</CanPlayerOrder>

</AmmoMagazine>

</AmmoMagazines>
</Definitions>


So I found the line that said :

<SubtypeId>HEShell381mm</SubtypeId>

And I went back to the script and typed something like

InvList {My Container} +heshell381mm:0

But it doesn't show anything.

Could you please help me out? I know the script guide inside and out, it's basically my bedside book but what you said in it didn't work (to remove spaces from item name). I tried a bunch of other stuff too but nothing did.

EDIT : Nevermind OKI Grand Weapons Bundle, he communicated the proper names for scripts on his description page which is pretty classy. What about other mods though? How do I get the proper names on my own?
Last edited by Fat7i Bonané; May 21, 2020 @ 3:20am
< >
Showing 1-4 of 4 comments
Fat7i Bonané Apr 17, 2023 @ 11:26am 
I posted this almost three years ago so here's a little bump because I'd still love to know how to add modded items to InvList.
Paddy Apr 27, 2023 @ 7:58pm 
i also need to add modded items to my list
MMaster  [developer] Jun 1, 2023 @ 4:03pm 
Sorry I'm not watching discussions here just noticed this randomly - adding modded items was not really for average player as figuring out item subtype and item type is not trivial. It was partially documented in the script but I added a section in the guide "How to add modded items"
Fat7i Bonané Jun 1, 2023 @ 11:47pm 
Thank you brother. Your guide is by far the one I use the most on Steam. Incredible work on this script. I bet you get that a lot.
< >
Showing 1-4 of 4 comments
Per page: 1530 50