Jump to content
Sign in to follow this  
Ranwer135

Custom uniform - Does not work?

Recommended Posts

Hey guys,

I am working on so many Projects for ArmA 3 and they are looking great.

However, the only thing that stands in the success of a mod or add-on is bugs or issues. :(

The only problem left I am facing now is my custom uniform for my officer. The config appears to work smoothly but I can only see the default AAF skin in-game, not my new ".paa" skin. :confused:

Here is my Uniform skin within "CfgWeapons":

 
   class CHN_officer_clothing: Uniform_Base
   {
       scope=2;
       displayName="Combat Fatigues [CHN] (Officer)";
       picture = "\A3\characters_f\data\ui\icon_U_IR_Officer_spc_ca.paa";
       model = "\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
       author="Rawner135";
       nameSound = "";

       class ItemInfo: UniformItem
       {
           uniformModel = "-";
           uniformClass = "Rnw_Chn_Officer";
           containerClass = "Supply20";
           mass = 80;
       };
   };

Here is my full config.cpp:

class CfgPatches
{
   class China_Rising
   {
       author="Rawner135";
       units[]={"Rnw_Chn_Soldier", "Rnw_Chn_Engineer"};
       weapons[]={"Rnw_CHN_vest", "Rnw_CHN_Helmet", "CHN_soldier_clothing"};
              requiredAddons[] = {"A3_Characters_F", "A3_Characters_F_beta"};
       requiredVersion=0.1;
   };
};


class CfgFactionClasses
{
   class CHN_rawner
       {
       icon="CHN_Faction/ui/china_faction_co.paa";
       displayName="CHN";
       priority=10;
       side=2;
           primaryLanguage = "EN";
   };
};


class CfgVehicleClasses
{
   class CHN_Soldiers
       {
       displayName="Men";
   };
};


class cfgVehicles
{
    class I_soldier_F;
   class I_officer_F;


    class Rnw_Chn_Soldier: I_soldier_F
    {
            scope=2;
            faction="CHN_rawner";
            vehicleClass="CHN_Soldiers";
            identityTypes[] = {"NoGlasses", "LanguageGRE_F", "Head_Asian", "G_HAF_default"};
       nakedUniform = "U_BasicBody";
            faceType="Man_A3";
            genericNames = "AsianMen";
            displayName="Rifleman";
            icon="iconMan";
            author="Rawner135";
            backpack="";
            uniformClass = "CHN_soldier_clothing";
       hiddenSelections[]={"camo"};
         hiddenSelectionsTextures[]={"CHN_Faction\textures\clothing_chn_co.paa"};
            weapons[]=
            {
             "arifle_Katiba_C_ACO_pointer_F",
       "hgun_ACPC2_F",
       "Throw",
       "Put"
            };
            respawnweapons[]=
            {
             "arifle_Katiba_C_ACO_pointer_F",
       "hgun_ACPC2_F",
       "Throw",
       "Put"
            };
            respawnmagazines[]=
            {
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
            "30Rnd_65x39_caseless_green",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "HandGrenade",
       "HandGrenade",
       "SmokeShell",
       "SmokeShellGreen",
       "Chemlight_green",
       "Chemlight_green"
            };
            magazines[]=
            {
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "HandGrenade",
       "HandGrenade",
       "SmokeShell",
       "SmokeShellGreen",
       "Chemlight_green",
       "Chemlight_green"
            };
            linkeditems[]=
            {
             "Rnw_CHN_Helmet",
             "Rnw_CHN_vest",
             "ItemMap",
             "ItemWatch",
             "ItemRadio",
       "NVGoggles_OPFOR"
            };
            respawnLinkedItems[]=
            {
             "Rnw_CHN_Helmet",
             "Rnw_CHN_vest",
             "ItemMap",
             "ItemWatch",
             "ItemRadio",
       "NVGoggles_OPFOR"
            };
     };
    class Rnw_Chn_Engineer: I_soldier_F
    {
            scope=2;
       engineer = true;
            faction="CHN_rawner";
            vehicleClass="CHN_Soldiers";
            identityTypes[] = {"NoGlasses", "LanguageGRE_F", "Head_Asian", "G_HAF_default"};
       nakedUniform = "U_BasicBody";
            faceType="Man_A3";
            genericNames = "AsianMen";
            displayName="Repair Specialist";
            icon = "iconManEngineer";
            author="Rawner135";
            backpack="B_AssaultPack_blk";
            uniformClass = "CHN_soldier_clothing";
       hiddenSelections[]={"camo"};
         hiddenSelectionsTextures[]={"CHN_Faction\textures\clothing_chn_co.paa"};
            weapons[]=
            {
             "arifle_Katiba_C_ACO_pointer_F",
       "hgun_ACPC2_F",
       "Throw",
       "Put"
            };
            respawnweapons[]=
            {
             "arifle_Katiba_C_ACO_pointer_F",
       "hgun_ACPC2_F",
       "Throw",
       "Put"
            };
            respawnmagazines[]=
            {
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
            "30Rnd_65x39_caseless_green",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "HandGrenade",
       "HandGrenade",
       "SmokeShell",
       "SmokeShellGreen",
       "Chemlight_green",
       "Chemlight_green"
            };
            magazines[]=
            {
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
             "30Rnd_65x39_caseless_green",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "9Rnd_45ACP_Mag",
       "HandGrenade",
       "HandGrenade",
       "SmokeShell",
       "SmokeShellGreen",
       "Chemlight_green",
       "Chemlight_green"
            };
            linkeditems[]=
            {
             "CHN_MilCap_dgt",
             "Rnw_CHN_vest",
             "ItemMap",
             "ItemWatch",
             "ItemRadio"
            };
            respawnLinkedItems[]=
            {
             "CHN_MilCap_dgt",
             "Rnw_CHN_vest",
             "ItemMap",
             "ItemWatch",
             "ItemRadio"
            };
     };
   class Rnw_Chn_Officer: I_officer_F
    {
            scope=2;
            faction="CHN_rawner";
            vehicleClass="CHN_Soldiers";
            identityTypes[] = {"NoGlasses", "LanguageGRE_F", "Head_Asian", "G_HAF_default"};
       nakedUniform = "U_BasicBody";
            faceType="Man_A3";
            genericNames = "AsianMen";
            displayName="Officer (Unarmed)";
            icon = "iconManOfficer";
            author="Rawner135";
            backpack="";
            uniformClass = "CHN_officer_clothing";
       hiddenSelections[]={"camo"};
         hiddenSelectionsTextures[]={"CHN_Faction\textures\officer_chn_co.paa"};
            weapons[]=
            {
       "Throw",
       "Put"
            };
            respawnweapons[]=
            {
       "Throw",
       "Put"
            };
            linkeditems[]=
            {
             "CHN_MilCap_dgt",
             "ItemMap",
             "ItemWatch",
             "ItemRadio"
            };
            respawnLinkedItems[]=
            {
             "CHN_MilCap_dgt",
             "ItemMap",
             "ItemWatch",
             "ItemRadio"
            };
     };
};
class cfgWeapons
{
   class Uniform_Base;
       class UniformItem;
    class V_PlateCarrier1_blk;
    class H_HelmetIA;
   class H_MilCap_gry;


    class Rnw_CHN_vest: V_PlateCarrier1_blk
    {
         scope=2;
       author="Rawner135";
         displayName="Carrier Lite [CHN]";
       picture = "\A3\Characters_F\data\ui\icon_V_plate_carrier_2_blk_CA.paa";
       nameSound = "";
         hiddenSelections[]=
         {
          "camo"
         };
         hiddenSelectionsTextures[]=
         {
          "CHN_Faction\textures\vests_chn_co.paa"
         };
    };
    class Rnw_CHN_Helmet: H_HelmetIA
    {
         scope=2;
       author="Rawner135";
         displayName="MICH [CHN]";
       nameSound = "";
       picture = "\A3\characters_F_Beta\Data\UI\icon_H_I_Helmet_canvas_ca.paa";
         hiddenSelections[]=
         {
          "camo"
         };
         hiddenSelectionsTextures[]=
         {
          "CHN_Faction\textures\headgear_helmet_chn_co.paa"
         };
    };
   class CHN_MilCap_dgt: H_MilCap_gry
   {
       scope = 2;
       author = "Rawner135";
       displayName = "Military Cap (CHN)";
       nameSound = "";
       picture = "\A3\Characters_F_Bootcamp\Data\UI\icon_H_MilCap_blue_ca.paa";
       hiddenSelections[]=
         {
          "camo"
         };
         hiddenSelectionsTextures[]=
         {
          "CHN_Faction\textures\cappatrol_chn_co.paa"
         };
    };
   class CHN_officer_clothing: Uniform_Base
   {
       scope=2;
       displayName="Combat Fatigues [CHN] (Officer)";
       picture = "\A3\characters_f\data\ui\icon_U_IR_Officer_spc_ca.paa";
       model = "\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
       author="Rawner135";
       nameSound = "";

       class ItemInfo: UniformItem
       {
           uniformModel = "-";
           uniformClass = "Rnw_Chn_Officer";
           containerClass = "Supply20";
           mass = 80;
       };
   };
    class CHN_soldier_clothing: Uniform_Base
    {
         scope=2;
         displayName="Combat Fatigues [CHN]";
       picture = "\A3\characters_f_beta\data\ui\icon_U_IR_CrewUniform_rucamo_ca.paa";
       model = "\A3\Characters_F\Common\Suitpacks\suitpack_universal_F.p3d";
       author="Rawner135";
       nameSound = "";


       class ItemInfo: UniformItem
       {
           uniformModel = "-";
           uniformClass = "Rnw_Chn_Soldier";
           containerClass = "Supply20";
           mass = 80;
       };
   };
};


If anyone knows how to fix this, that would be great as I will learn from whatever mistake I have done in this config.

Kind Regards,

Rawner135 / Ranwer

Edited by Ranwer
Updated Config - refer to Post #6

Share this post


Link to post
Share on other sites

Try adding "A3_Characters_F_beta" to your required addons in the cfgPatches, or whatever pbo you are pulling your uniform base from.

class CfgPatches
{
class China_Rising
{
	author="Rawner135";
	units[]={};
	weapons[]={};
      		requiredAddons[] = {"A3_Characters_F_beta"};
	requiredVersion=0.1;
};
};

Share this post


Link to post
Share on other sites
Try adding "A3_Characters_F_beta" to your required addons in the cfgPatches, or whatever pbo you are pulling your uniform base from.

class CfgPatches
{
   class China_Rising
   {
       author="Rawner135";
       units[]={};
       weapons[]={};
              requiredAddons[] = {"A3_Characters_F_beta"};
       requiredVersion=0.1;
   };
};

Just tried your solution, still doesn't work :(

Share this post


Link to post
Share on other sites

uniformClass = "U_I_CombatUniform";

In your soldier class needs to specify your new uniform "CHN_soldier_clothing" to make them automatically appear with it i believe. Only first thing i looked for so maybe other errors.

Share this post


Link to post
Share on other sites
uniformClass = "U_I_CombatUniform";

In your soldier class needs to specify your new uniform "CHN_soldier_clothing" to make them automatically appear with it i believe. Only first thing i looked for so maybe other errors.

Thanks! That actually works brilliantly!

The only problem I'm facing now is that I've created another soldier (this time it is an officer from IND).

I have created the skin (its the correct skin since I am aware that suitpacks are not for units but for ground objects) but the problem is it doesn't work but the soldier's does.

So basically what I'm trying to say is that the soldier class works but the officer doesn't :confused: (Any help would be appreciated!)

Script has been updated above

Share this post


Link to post
Share on other sites

Any help on this, please?!? :(

Share this post


Link to post
Share on other sites

you don't have the model in the unit. put the model path in the unit aswell so the uniform you created knows how to look

Share this post


Link to post
Share on other sites

officer has two camo selections, one specific for the top and the pants inherited from the i_soldier_f i believe, not so sure anymore because i can't get it to work

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
Sign in to follow this  

×