Jump to content
Grester

Problem Retexture CUP Gear

Recommended Posts

Greetings reader, here's my problem:

I've been trying to retexture some CUP Units gear yet although I'm able to see the new gear in-game, it still loads the original texture instead of the new one despite everything seems to be perfect. So I'm supposing it is something stupid I'm not aware. Here's my config and file structure:

@Takistan97\logo.paa

@Takistan97\mod.cpp

@Takistan97\addons\tk97\config.cpp

@Takistan97\addons\tk97\data\kzg_afg_helmet_co.paa (DXT1 Compressed)

@Takistan97\addons\tk97\data\logo.paa

 

class CfgPatches
{
    class Takistan97
    {
        weapons[] = {"TK97_KZG_Helmet"};
        requiredVersion = 0.1;
        requiredAddons[]=
        {
            "A3_Characters_F","CUP_Creatures_People_Core","CUP_Creatures_Military_SLA"
        };
        author = "Grester & Volker";
    };
};

class CfgMods
{
    class Mod_Base;
    class Mod_TK97: Mod_Base
    {
        picture="tk97\data\logo.paa";
        logo="tk97\data\logo.paa";
        logoSmall="tk97\data\logo.paa";
        tooltipOwned="Takistan '97";
        overview="Placeholder";
        hideName=1;
        hidePicture=0;
        name="Takistan '97";
    };
};

class cfgWeapons
{
    //INHERITED CONFIG
    class CUP_H_SLA_Helmet;
    class TK97_KZG_Helmet: CUP_H_SLA_Helmet
    {
        dlc="Mod_TK97";
        author = "Grester";
        displayName = "Karzeghistani Helmet";
        hiddenSelectionsTextures[] = {"tk97\data\kzg_afg_helmet_co.paa"};
    };

    //HARDCODED CONFIG
    /*class InventoryItem_Base_F;
    class ItemCore;
    class HeadgearItem{
        class ItemInfo;
    };
    class TK97_KZG_Helmet: ItemCore
    {
        scope = 2;
        dlc="Mod_TK97";
        author = "Grester";
        displayName = "Karzeghistani Helmet";
        descriptionShort="$STR_A3_SP_AL_II";
        picture="\CUP\Creatures\People\Military\CUP_Creatures_People_Military_Taki\data\ui\icon_h_tk_helmet_ca.paa";
        model="\CUP\Creatures\People\Military\CUP_Creatures_People_Military_SLA\CUP_SLA_Helmet.p3d";
        hiddenSelections[]={"camo"};
        hiddenSelectionsTextures[] = {"tk97\data\kzg_afg_helmet_co.paa"};
        class ItemInfo: HeadgearItem
        {
            mass=10;
            uniformModel="\CUP\Creatures\People\Military\CUP_Creatures_People_Military_SLA\CUP_SLA_Helmet.p3d";
            allowedSlots[]={801,901,701,605};
            modelSides[]={0,3};
            armor=5;
            passThrough=0.5;
            hiddenSelections[]={"camo"};
            hiddenSelectionsTextures[] = {"tk97\data\kzg_afg_helmet_co.paa"};
            class HitpointsProtectionInfo
            {
                class Head
                {
                    hitpointName="HitHead";
                    armor=6;
                    passThrough=0.5;
                };
            };
        };
    };*/
};

 

I've successfully retextured Arma 3 vanilla gear before, but I remember I've had trouble in past doing the same for CUP gear even though I've successfully retextured CUP vehicles. I've tried normal inherited config and hardcoded config, neither work. I've inspected another CUP gear retexture mod from the workshop and can't see any difference. I've read ArmA_3_Replacement_Config_Tutorial and Arma_3_Characters_And_Gear_Encoding_Guide for any hints. I've watched old youtube tutorials. Arma gives no errors on the logs. Not even MikeroTools's PBOProject gives any error and successfully builds the PBO. I'm even considering it might not be a problem with config/mod itself, as the object always finds a way to load the original texture, even when hardcoded as a separate object. So I've run out of ideas on what could actually be the problem.

Share this post


Link to post
Share on other sites

He was pulling textures from the original location instead of the new source.

For example:
Instead of using hiddenSelectionsTextures[] = {"tk97\data\kzg_afg_helmet_co.paa"};
Use this instead hiddenSelectionsTextures[] = {"\Takistan97\data\kzg_afg_helmet_co.paa"};

The first class name under CFGPATCHES is class Takistan97. It doesn't matter what the name of the .pbo is
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×