Jump to content

Recommended Posts

So i am really new to this and i have some problems with this config.cpp

i used a template off the interweb and it is not working, i even tryed to make my own but that was way too complicated, so here is what happens https://prnt.sc/fpz3xh

Here is the config.cpp

 

class CfgPatches 
{ 
    class My_Mod_Config 
    { 
        units[] = {"Custom_Uniform_Mod";};
        weapons[] = {}; 
        requiredVersion = 0.1; 
        requiredAddons[] = {"A3_Characters_F"}; 
    }; 
}; 

//************************************************************************************************************************************************************************************************
//*****        Factions                  *********************************************************************************************************************************************************
//************************************************************************************************************************************************************************************************

class CfgUnitInsignia
{
    class Custom_Insignia
    {
        displayName = "Blues and Royals"; // Name displayed in Arsenal
        author = "Christenson"; // Author displayed in Arsenal
        texture = "\Custom_Uniform\UI\custom_patch_co.paa"; // Image path
        textureVehicle = ""; // Does nothing currently, reserved for future use
    };
    class Custom_Insignia2
    {
        displayName = "Royal Air Force"; // Name displayed in Arsenal
        author = "Christenson"; // Author displayed in Arsenal
        texture = "\Custom_Uniform\UI\custom_patch_co2.paa"; // Image path
        textureVehicle = ""; // Does nothing currently, reserved for future use
    };
    class Custom_Insignia3
    {
        displayName = "Royal Engineers"; // Name displayed in Arsenal
        author = "Crimson Mage"; // Author displayed in Arsenal
        texture = "\Custom_Uniform\UI\custom_patch_co3.paa"; // Image path
        textureVehicle = ""; // Does nothing currently, reserved for future use
    };
    class Custom_Insignia4
    {
        displayName = "Royal Army Medical Corp"; // Name displayed in Arsenal
        author = "christenson"; // Author displayed in Arsenal
        texture = "\Custom_Uniform\UI\custom_patch_co4.paa"; // Image path
        textureVehicle = ""; // Does nothing currently, reserved for future use
    };
};


class UniformSlotInfo 
{ 
    slotType = 0; 
    linkProxy = "-"; 
};

class CfgVehicles
{
    //************************************************************************************************************************************************************************************************
    //*****             Units                *********************************************************************************************************************************************************
    //************************************************************************************************************************************************************************************************
    class B_Soldier_F;

    class Custom_Uniform: B_soldier_F {
        author = "christenson";
        vehicleClass = "DEASpecialGreen";
        scope = 1;
        displayName = "Team Leader";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; //Default NATO
        uniformClass = "Custom_Camo";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo.rvmat"};
        weapons[] = {"arifle_SPAR_01_blk_ACO_Pointer_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"DEA_Helmet2","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"DEA_Helmet2","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };

    class Custom_Uniform_SS: B_soldier_F {
        author = "Christenson";
        _generalMacro = "B_soldier_F";
        scope = 1;
        displayName = "Standard";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_02.p3d"; //NATO Rolled Up Sleeves
        uniformClass = "Custom_Camo_SS";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo.rvmat"};
         weapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"G_Balaclava_oli","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"G_Balaclava_oli","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
    class Custom_Uniform_Black: B_soldier_F {
        author = "christenson";
        _generalMacro = "B_soldier_F";
        scope = 1;
        displayName = "Team Leader";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; //Default NATO
        uniformClass = "Custom_Uniform_Black";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_blck_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo.rvmat"};
        weapons[] = {"arifle_SPAR_01_blk_ACO_Pointer_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
    class Custom_Uniform_Black_SS: B_soldier_F {
        author = "christenson";
        _generalMacro = "B_soldier_F";
        scope = 1;
        displayName = "Team Leader";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_02.p3d"; //Default NATO
        uniformClass = "Custom_Uniform_Black";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_blck_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo.rvmat"};
        weapons[] = {"arifle_SPAR_01_blk_ACO_Pointer_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
    class Custom_Uniform_Fast: B_soldier_F {
        author = "christenson";
        _generalMacro = "B_soldier_F";
        scope = 1;
        displayName = "Team Leader";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f\BLUFOR\b_soldier_01.p3d"; //Default NATO
        uniformClass = "Custom_Uniform_Fast";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_FAST_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_FAST.rvmat"};
        weapons[] = {"arifle_SPAR_01_blk_ACO_Pointer_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
    class Custom_Uniform_Fast02: B_soldier_F {
        author = "christenson";
        _generalMacro = "B_soldier_F";
        scope = 1;
        displayName = "Team Leader";
        identityTypes[] = {"Head_NATO", "G_NATO_default"};
        genericNames = "NATOMen";
        model = "\A3\characters_f\BLUFOR\b_soldier_01.p3d"; //Default NATO
        uniformClass = "Custom_Uniform_Fast02";
        hiddenSelections[] = {"Camo","Insignia"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_FAST02_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_FAST.rvmat"};
        weapons[] = {"arifle_SPAR_01_blk_ACO_Pointer_F","Throw","Put"};
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"};
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnLinkedItems[] = {"H_HelmetB_light_black","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
    };
};

class cfgWeapons 
{ 
    //********************************************************************************************************************************************************************************************
    //*****            Uniforms              *****************************************************************************************************************************************************
    //********************************************************************************************************************************************************************************************
    class ItemCore; 
    class UniformItem; 
    class Uniform_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 

    class Custom_Camo: Uniform_Base 
    { 
        scope = 2; 
        displayName = "HHD Padre";
        picture = "\custom_uniform\UI\olivefatigue.paa";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d"; 
        class ItemInfo : UniformItem { 
            uniformClass = "Custom_Uniform"; 
            containerClass = "Supply50";
            mass = 50;
        }; 
    }; 
    class Custom_Camo_SS: Uniform_Base 
    { 
        scope = 2; 
        displayName = "HHD Padre";
        picture = "\custom_uniform\UI\olivefatigue.paa";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_02.p3d"; 
        class ItemInfo : UniformItem { 
            uniformClass = "Custom_Uniform_SS"; 
            containerClass = "Supply50"; 
            mass = 50; 
        }; 
    };
    class Custom_Camo_Black: Uniform_Base
    {
        scope = 2;
        displayName = "HHD Standard (dark)";
        picture = "\custom_uniform\UI\blackfatigue.paa";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_01.p3d";
        class ItemInfo : UniformItem {
            uniformClass = "Custom_Uniform_Black";
            containerClass = "Supply50";
            mass = 50;
        };
    };
    class Custom_Camo_Black_SS: Uniform_Base
    {
        scope = 2;
        displayName = "HHD Standard (dark)";
        picture = "\custom_uniform\UI\blackfatigue.paa";
        model = "\A3\characters_f_beta\INDEP\ia_soldier_02.p3d";
        class ItemInfo : UniformItem {
            uniformClass = "Custom_Uniform_Black_SS";
            containerClass = "Supply50";
            mass = 50;
        };
    };
    class Custom_Camo_FAST: Uniform_Base
    {
        scope = 2;
        displayName = "HHD Bonny";
        picture = "\custom_uniform\UI\fastfatigue.paa";
        model = "\A3\characters_f\BLUFOR\b_soldier_01.p3d";
        class ItemInfo : UniformItem {
            uniformClass = "Custom_Uniform_Fast";
            containerClass = "Supply50";
            mass = 50;
        };
    };
    class Custom_Camo_FAST02: Uniform_Base
    {
        scope = 2;
        displayName = "HHD MajorGeneral";
        picture = "\custom_uniform\UI\fastfatigue.paa";
        model = "\A3\characters_f\BLUFOR\b_soldier_01.p3d";
        class ItemInfo : UniformItem {
            uniformClass = "Custom_Uniform_Fast02";
            containerClass = "Supply50";
            mass = 50;
        };
    };
    //************************************************************************************************************************************************************************************************
    //*****             Vests                *********************************************************************************************************************************************************
    //************************************************************************************************************************************************************************************************
    class VestItem; 
    class Vest_Camo_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 
     
    class Custom_Vest2: Vest_Camo_Base
    {
        author = "christenson";
        scope = 2;
        displayName = "HHD Pardre";
        picture = "\custom_uniform\UI\camomedium.paa";
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_vest_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_vest.rvmat"};
        class ItemInfo: VestItem
        {
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d";
            containerClass = "Supply100";
            mass = 80;
            hiddenSelections[] = {"camo"};
			class HitpointsProtectionInfo
			{
				class Chest
				{
					hitpointName	= "HitChest";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
					passThrough	= 0.1;
				};
			};
        };
    };
    class Custom_Vest3: Vest_Camo_Base
    {
        author = "christenson";
        scope = 2;
        displayName = "HHD Pardre";
        picture = "\custom_uniform\UI\camolite.paa";
        model = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_camo_vest_lite_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_vest.rvmat"};
        class ItemInfo: VestItem
        {
            uniformModel = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry.p3d";
            containerClass = "Supply90";
            mass = 60;
            hiddenSelections[] = {"camo"};
			class HitpointsProtectionInfo
			{
				class Chest
				{
					hitpointName	= "HitChest";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
					passThrough	= 0.1;
				};
			};
        };
    };
    class Custom_Vest4: Vest_Camo_Base
    {
        author = "christenson";
        scope = 2;
        displayName = "DEA Heavy Plate Carrier (Black)";
        picture = "\custom_uniform\UI\blackheavy.paa";
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_vest_heavy_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_vest.rvmat"};
        class ItemInfo: VestItem
        {
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d";
            containerClass = "Supply120";
            mass = 100;
            hiddenSelections[] = {"camo"};
			class HitpointsProtectionInfo
			{
				class Chest
				{
					hitpointName	= "HitChest";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
					passThrough	= 0.1;
				};
			};
        };
    };
    class Custom_Vest5: Vest_Camo_Base
    {
        author = "christenson";
        scope = 2;
        displayName = "HHD Standard (dark)";
        picture = "\custom_uniform\UI\blackmedium.paa";
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_vest_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_vest.rvmat"};
        class ItemInfo: VestItem
        {
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d";
            containerClass = "Supply100";
            mass = 80;
            hiddenSelections[] = {"camo"};
			class HitpointsProtectionInfo
			{
				class Chest
				{
					hitpointName	= "HitChest";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
					passThrough	= 0.1;
				};
			};
        };
    };
    class Custom_Vest6: Vest_Camo_Base
    {
        author = "christenson";
        scope = 2;
        displayName = "HHD Standard (dark)";
        picture = "\custom_uniform\UI\blacklite.paa";
        model = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\custom_vest_lite_co.paa"};
        hiddenSelectionsMaterials[] = {"Custom_Uniform\Data\custom_camo_vest.rvmat"};
        class ItemInfo: VestItem
        {
            uniformModel = "A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry.p3d";
            containerClass = "Supply90";
            mass = 60;
            hiddenSelections[] = {"camo"};
			class HitpointsProtectionInfo
			{
				class Chest
				{
					hitpointName	= "HitChest";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
					passThrough	= 0.1;
				};
			};
        };
    };

 

Share this post


Link to post
Share on other sites

Try adding an extra 

};

to the end of your file. The CfgWeapons class is not closed.

 

The best way to find these problems is to use a text editor such as Notepad++, with the language set to C++ for .cpp files.

Then be rigorous in your formatting indentations and missing closed brackets will show fairly easily.

  • Like 2

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

×