MSpc.DeadPixel 0 Posted March 5, 2019 (edited) I'm Currently working of a Uniform pack and get the error '' File_name''\config.cpp, line 224 \cfgweapons.Custom_camo: member already defined. now my config down to 224 looks like. Spoiler class CfgPatches { class My_Mod_Config { units[] = {"gtac_gear";}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F"}; }; }; //************************************************************************************************************************************************************************************************ //***** Factions ********************************************************************************************************************************************************* //************************************************************************************************************************************************************************************************ class cfgFactionClasses { class Custom_Faction { displayName = "My Custom Faction"; priority = 3; // Position in list. side = 1; // Opfor = 0, Blufor = 1, Indep = 2. icon = ""; //Custom Icon }; }; class CfgUnitInsignia { class Custom_Insignia { displayName = "My Custom Patch"; // Name displayed in Arsenal author = "Astartes"; // Author displayed in Arsenal texture = "\Custom_Uniform\UI\custom_patch_co.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 = "Astartes"; _generalMacro = "B_soldier_F"; scope = 1; displayName = "Custom Soldier"; identityTypes[] = {"Head_NATO", "G_NATO_default"}; genericNames = "NATOMen"; faction = "Custom_Faction"; model = "\A3\gtac_gear\addons\gtac_oga_d_a_co.paa"; //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_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[] = {"CUstom_Helmet1","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; respawnLinkedItems[] = {"CUstom_Helmet1","Custom_Vest1","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; }; class Custom_Uniform_SS: B_soldier_F { author = "Astartes"; _generalMacro = "B_soldier_F"; scope = 2; displayName = "Custom Team Leader"; identityTypes[] = {"Head_NATO", "G_NATO_default"}; genericNames = "NATOMen"; faction = "Custom_Faction"; 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[] = {"CUstom_Helmet1","Custom_Vest2","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; respawnLinkedItems[] = {"CUstom_Helmet1","Custom_Vest2","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; }; class Custom_Uniform_TShirt: B_soldier_F { author = "Astartes"; _generalMacro = "B_soldier_F"; scope = 2; displayName = "Custom Combat Life Saver"; identityTypes[] = {"Head_NATO", "G_NATO_default"}; genericNames = "NATOMen"; faction = "Custom_Faction"; model = "\A3\characters_f_gamma\Guerrilla\ig_guerrilla1_1.p3d"; //NATO Rolled Up Sleeves uniformClass = "Custom_Camo_TShirt"; backpack = "Custom_Backpack_Compact"; hiddenSelections[] = {"Camo1","Camo2"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\tshirt_brown_co.paa","Custom_Uniform\Data\custom_camo_co.paa"}; hiddenSelectionsMaterials[] = {"a3\characters_F\civil\data\c_cloth1.rvmat","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[] = {"CUstom_Helmet2","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; respawnLinkedItems[] = {"CUstom_Helmet2","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; }; class B_AssaultPack_Base; class Custom_Backpack_Compact: B_AssaultPack_Base { scope = 2; displayName = "Custom Backpack Compact"; picture = ""; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\pack_compact_co.paa"}; }; class LandVehicle; class B_G_Offroad_01_F; class B_G_Offroad_01_armed_F; class B_MRAP_01_F; class B_MRAP_01_HMG_F; class B_Heli_Light_01_F; class Custom_Offroad_F: B_G_Offroad_01_F { crew = "Custom_Uniform_TShirt"; side = 1; scope = 2; faction = "Custom_Faction"; displayName = "Custom Offroad 4x4"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\offroad_base_co.paa"}; class EventHandlers { init = "(_this select 0) setVariable [""BIS_enableRandomization"", false];"; }; }; class Custom_Offroad_HMG_F: B_G_Offroad_01_armed_F { side = 1; scope = 2; crew = "Custom_Uniform_TShirt"; faction = "Custom_Faction"; displayName = "Custom Offroad 4x4 (HMG)"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\offroad_base_co.paa"}; class EventHandlers { init = "(_this select 0) setVariable [""BIS_enableRandomization"", false];"; }; }; class Custom_Hunter_F: B_MRAP_01_F { side = 1; scope = 2; crew = "Custom_Uniform_TShirt"; faction = "Custom_Faction"; displayName = "Custom M-ATV MRAP"; hiddenSelections[] = {"Camo1","Camo2"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\hunter_base_co.paa","Custom_Uniform\Data\hunter_adds_co.paa"}; }; class Custom_Hunter_HMG_F: B_MRAP_01_HMG_F { side = 1; scope = 2; crew = "Custom_Uniform_TShirt"; faction = "Custom_Faction"; displayName = "Custom M-ATV MRAP (HMG)"; hiddenSelections[] = {"Camo1","Camo2"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\hunter_base_co.paa","Custom_Uniform\Data\hunter_adds_co.paa"}; }; class Custom_MH6: B_Heli_Light_01_F { side = 1; scope = 2; crew = "Custom_Uniform_TShirt"; faction = "Custom_Faction"; displayName = "Custom MH-6 Hummingbird"; hiddenSelections[] = {"Camo1"}; hiddenSelectionsTextures[] = {"Custom_Uniform\Data\hummingbird_base_co.paa"}; }; }; class cfgWeapons { //******************************************************************************************************************************************************************************************** //***** Uniforms ***************************************************************************************************************************************************** //******************************************************************************************************************************************************************************************** class ItemCore; class UniformItem; class Uniform_Base: ItemCore { class ItemInfo; }; class Custom_Camo: Uniform_Base { scope = 2; displayName = "Desert Alpha"; picture = "-"; model = "\A3\gtac_gear\addons\data\gtac_oga_d_a_co.paa"; class ItemInfo : UniformItem { uniformClass = "Custom_Uniform"; containerClass = "Supply150"; mass = 150; }; }; class Custom_Camo: Uniform_Base { scope = 2; displayName = "Desert Bravo"; picture = "-"; model = "\A3\gtac_gear\addons\data\gtac_oga_d_b_co.paa"; class ItemInfo : UniformItem { uniformClass = "Custom_Uniform"; containerClass = "Supply150"; mass = 150; }; }; class Custom_Camo: Uniform_Base { scope = 2; displayName = "Desert Charile"; picture = "-"; model = "\A3\gtac_gear\addons\data\gtac_oga_d_c_co.paa"; class ItemInfo : UniformItem { uniformClass = "Custom_Uniform"; containerClass = "Supply150"; mass = 150; }; Edited March 6, 2019 by Dedmen Code moved into spoiler tag and code block Share this post Link to post Share on other sites
Larrow 2823 Posted March 5, 2019 You have three classes under CfgWeapons that all have the same name... class Custom_Camo: Uniform_Base { }; class Custom_Camo: Uniform_Base { }; class Custom_Camo: Uniform_Base { }; ...you cannot do this. Maybe name them some equivalent to there description... class Custom_DesertAlpha: Uniform_Base { }; class Custom_DesertBravo: Uniform_Base { }; class Custom_DesertCharlie: Uniform_Base { }; 1 Share this post Link to post Share on other sites
Dedmen 2721 Posted March 6, 2019 Posts have been moved into own thread because you violated the "Do not dig up old threads" rule, and your post was also not even relevant to the problem that was discussed in the other thread. Please make yourself familiar with the Rules, you can find them here: https://forums.bohemia.net/forums/topic/54604-forum-rules/ Share this post Link to post Share on other sites