That being said, I need one quick question answered, as I can't find documentation or code on it.
When setting up a custom mod item, you create a new itemtemplate.json, setup the item in the template file, create the item class sccript, add it in the item class script using the createitem object, and then the game has your custom item. This is working just fine for me.
I'm stuck at adding in a custom inventory texture for misc items. When adding in a custom texture, you have to create the png file that matches the index number and then create a matching xml file to tell the engine what size the texture is and what it is replacing. Using other mods, I was able to get in the compass item custom inventory icon to show using the magic item and/or jewelry item type.
However, when I try to add misc items using the misc item type, I can't because I do not and cannot find the X and Y properties for the XML file for this item type.
When I switch the items to jewelry, the icons work, so I know it is the item type causing this issue. I imagine each item type has a predefined x and y value for the xml file, but I can't find it.
Here is the XML that works with item types jewelry and Magic Items but throws an null color array error when the items are switched to misc item type.
Code: Select all
<?xml version="1.0"?>
<info>
<rect scale="1">
<x>35</x>
<y>88</y>
<width>44</width>
<height>44</height>
</rect>
</info>