Jump to content

Recommended Posts

I want to add a new uniform to the game. My PBO file is structured like this:

JHSmv01.png

 

config.cpp :

Spoiler

class CfgPatches
{
    class Custom_Uniform  // has to be the same name as your folder!
    {
        units[] = {"MyUnit"}; //making it ZEUS compatible
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};

class CfgVehicles
{
    class B_Soldier_base_F;
    class TAG_soldier_name : B_Soldier_base_F
    {
        _generalMacro = "B_Soldier_F"; //unsure what this does
        scope = 2;
        displayName = "Custom Uniform";
        nakedUniform = "U_BasicBody"; //class for "naked" body
        uniformClass = "tag_uniform_name"; //the uniform item
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_co.paa"};
        model = "\A3\characters_f_beta\indep\ia_soldier_01";
        linkedItems[] = {"ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
        respawnLinkedItems[] = {"ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
    };
};

class cfgWeapons
{
    class Uniform_Base;
    class UniformItem;
 
    class tag_uniform_name : Uniform_Base
    {
        author = "smn";
        scope = 2;
        displayName = "Custom Uniform";
        picture = "";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";
 
        class ItemInfo : UniformItem
        {
            uniformModel = "-";
            uniformClass = "TAG_soldier_name"; //would be same as our made soldier class
            containerClass = "Supply40"; //how much it can carry
            mass = 30; //how much it weights
        };
    };
};

 

 

When I test my game, this is what it looks like:

r0X7rU9.jpg

 

Is there any mistake in my config file?

  • Like 1

Share this post


Link to post
Share on other sites

I think you're missing the texture when defining the uniform itself;

 

Using your example it should be;

 

class cfgWeapons
{
    class Uniform_Base;
    class UniformItem;

    class tag_uniform_name : Uniform_Base
    {
        author = "smn";
        scope = 2;
        displayName = "Custom Uniform";
        picture = "";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";

hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_co.paa"};

 

        class ItemInfo : UniformItem
        {
            uniformModel = "-";
            uniformClass = "TAG_soldier_name"; //would be same as our made soldier class
            containerClass = "Supply40"; //how much it can carry
            mass = 30; //how much it weights
        };
    };
};

 

Missing line in bold for visual reference.

  • Like 1

Share this post


Link to post
Share on other sites
On 6/9/2018 at 7:41 PM, Rich_R said:

I think you're missing the texture when defining the uniform itself;

 

Using your example it should be;

 

class cfgWeapons
{
    class Uniform_Base;
    class UniformItem;

    class tag_uniform_name : Uniform_Base
    {
        author = "smn";
        scope = 2;
        displayName = "Custom Uniform";
        picture = "";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";

hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_co.paa"};

 

        class ItemInfo : UniformItem
        {
            uniformModel = "-";
            uniformClass = "TAG_soldier_name"; //would be same as our made soldier class
            containerClass = "Supply40"; //how much it can carry
            mass = 30; //how much it weights
        };
    };
};

 

Missing line in bold for visual reference.

Well it turned out the compiler I was using to make the .pbo file was broken!

I switched to another one and everything is working now! Thanks for your answer though!

  • Like 1

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

×