Jump to content

Trying to add a retextured jacket as a new item. It won't show on my character and it's static model texture is wrong.


AlyxTheOpossum

Recommended Posts

I'm making my first mod, and I wanted to add a biker jacket featuring the Virginia Opossum, but I'm a bit stumped, as I feel like I'm following a couple of tutorials well, but it doesn't seem to work.

I've done the artwork and added —what I think should be all— the necessary files, but my main problems are as follows:

  • When I equip the jacket, my body where the jacket should be becomes transparent.
  • When I drop the jacket on the floor the proper texture is missing.

I've added a screencap of both of these behaviors:

sdfasdfa.PNG.069435636e845595db7f4e8f81fe32cc.PNG

 

Here's a link to a google drive folder of what I have so far, to help troubleshoot, but the code is as follows:

 

Jacket_LeatherGarbageCats.xml

<?xml version="1.0" encoding="utf-8"?>
<clothingItem>
    <m_MaleModel>media\models_X\Skinned\Clothes\Bob_JacketLeather</m_MaleModel>
    <m_FemaleModel>media\models_X\Skinned\Clothes\Kate_JacketLeather</m_FemaleModel>
    <m_GUID>e99cab12-0ed2-4f80-a4ec-3bbf92459bfd</m_GUID>
    <m_Static>false</m_Static>
    <m_AllowRandomHue>false</m_AllowRandomHue>
    <m_AllowRandomTint>false</m_AllowRandomTint>
    <m_AttachBone></m_AttachBone>
    <m_Masks>12</m_Masks>
    <m_Masks>13</m_Masks>
    <m_Masks>3</m_Masks>
    <m_Masks>5</m_Masks>
    <m_UnderlayMasksFolder>media/textures/Masks_Leather</m_UnderlayMasksFolder>
    <textureChoices>textures/Jacket_LeatherGarbageCats</textureChoices>
</clothingItem>

 

OPOJACKET-ProceduralDistributions.lua

ProceduralDistributions = {};

ProceduralDistributions.list = {
    SafehouseArmor = {
        rolls = 4,
        items = {
            "Jacket_LeatherGarbageCats", 0.5,
        },
        junk = {
            rolls = 1,
            items = {
            }
        }
    },
}

 

opossum-jacket.txt

module OPOJACKET
{
    imports{Base}

    item Jacket_LeatherGarbageCats
    {
        DisplayCategory         = Clothing,
        Type                    = Clothing,
        DisplayName             = Garbage Cats Leather Jacket,
        ClothingItem            = Jacket_LeatherGarbageCats,
        BodyLocation            = Jacket,
        Icon                    = BikerJacketOpossum,
        BloodLocation           = Jacket,
        RunSpeedModifier        = 0.95,
        CombatSpeedModifier     = 0.97,
        BiteDefense             = 20,
        ScratchDefense          = 40,
        NeckProtectionModifier  = 0.5,
        Insulation              = 0.40,
        WindResistance          = 0.6,
        FabricType              = Leather,
        WaterResistance         = 0.4,
        Weight                  = 2,
        WorldStaticModel        = JacketCoat_Ground,
    }
}

 

fileGuidTable.xml

<?xml version="1.0" encoding="utf-8"?>
<fileGuidTable>
    <files>
        <path>media/clothing/clothingItems/Jacket_LeatherGarbageCats.xml</path>
        <guid>e99cab12-0ed2-4f80-a4ec-3bbf92459bfd</guid>
    </files>
</fileGuidTable>

 

Here's a picture of my file structure:

fsdasdfafdsa.thumb.PNG.168fdf838474a05a97ba432981f3de2c.PNG

 

I also have some concerns about loot tables as I could only find the vanilla biker jackets in the "SafehouseArmor" table —to which I added my new jacket. As I understand it, the clothing zomboids wear is based on outfit tables, but I am completely unable to find where they are. (In fact, I couldn't find the vanilla icons for the jackets anywhere in the base game files; I had to pull them from the wiki!)

Finally (for now) I'm worried that my mod is bloated with unnecessary files that will affect the mod size and compatibility; I made progress troubleshooting myself doing so, but I feel like I shouldn't need to include the vanilla mask or model files if I'm not changing them.

 

As the posting guidelines said, I don't expect y'all to write my files for me, but I would super appreciate it if someone could let me know what I've done wrong and how to proceed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...