Cunico 995 Posted May 8, 2014 Hey, so I have made two SPC vests for marines but the issue is I can get one in game, but not the other in the same config? Any help with what I might be doing wrong? Config.cpp enum { destructengine = 2, destructdefault = 6, destructwreck = 7, destructtree = 3, destructtent = 4, stabilizedinaxisx = 1, stabilizedinaxesxyz = 4, stabilizedinaxisy = 2, stabilizedinaxesboth = 3, destructno = 0, stabilizedinaxesnone = 0, destructman = 5, destructbuilding = 1 }; class CfgPatches { class SPC_Vest_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class cfgWeapons { class ItemCore; // External class reference class InventoryItem_Base_F; // External class reference class HeadgearItem; class Uniform_Base; class UniformItem; class Vest_Camo_Base; class VestItem; class Vest : Vest_Camo_Base { scope = 2; displayName = "Corpsman (SPC)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\Vests\Vest"; //hiddenSelections[] = {"camo"}; //hiddenSelectionsTextures[] = {"NLD_2009-2014\DutchWVest.paa"}; class ItemInfo : VestItem { uniformModel = "\Vests\Vest"; containerClass = "Supply100"; mass = 50; armor = 5*0.5; passThrough = 0.7; //hiddenSelections[] = {"camo"}; }; class TL_Vest : Vest { scope = 2; displayName = "Team Lead (SPC)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\Vests\TL"; }; }; }; }; Share this post Link to post Share on other sites
Von Quest 1163 Posted May 8, 2014 Not at my rig right now... but maybe? weapons[] = {"Vest","Vest_TL"}; Share this post Link to post Share on other sites
surpher 1 Posted May 8, 2014 Your first vest class is not closed properly (missing };) so your second vest class is inside the first. class CfgPatches { class SPC_Vest_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgWeapons { class ItemCore; // External class reference class InventoryItem_Base_F; // External class reference class HeadgearItem; class Uniform_Base; class UniformItem; class Vest_Camo_Base; class VestItem; class Vest : Vest_Camo_Base { scope = 2; displayName = "Corpsman (SPC)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\Vests\Vest"; //hiddenSelections[] = {"camo"}; //hiddenSelectionsTextures[] = {"NLD_2009-2014\DutchWVest.paa"}; class ItemInfo : VestItem { uniformModel = "\Vests\Vest"; containerClass = "Supply100"; mass = 50; armor = 5*0.5; passThrough = 0.7; //hiddenSelections[] = {"camo"}; }; }; class TL_Vest : Vest_Camo_Base { scope = 2; displayName = "Team Lead (SPC)"; picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa"; model = "\Vests\TL"; class ItemInfo : VestItem { uniformModel = "\Vests\TL"; containerClass = "Supply100"; mass = 50; armor = 5*0.5; passThrough = 0.7; //hiddenSelections[] = {"camo"}; }; }; }; Share this post Link to post Share on other sites
Cunico 995 Posted May 14, 2014 Cool thanks Sulpher! Also, can you check this one out? Basically I just wanted to add my Retexture USMC helmet in here, but as soon as I select it in game...my game crashes. The uniform works just fine that I did, but the Headgear wont. THanks for the help. This is what I have so far: enum { destructengine = 2, destructdefault = 6, destructwreck = 7, destructtree = 3, destructtent = 4, stabilizedinaxisx = 1, stabilizedinaxesxyz = 4, stabilizedinaxisy = 2, stabilizedinaxesboth = 3, destructno = 0, stabilizedinaxesnone = 0, destructman = 5, destructbuilding = 1 }; class CfgPatches { class yourTag_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F","A3_Characters_F_BLUFOR"}; }; }; class CfgVehicles { class B_Soldier_base_F; class USMC_TL : B_Soldier_base_F { _generalMacro = "B_Soldier_F"; //unsure what this does scope = 2; displayName = "Team Leader"; nakedUniform = "U_BasicBody"; //class for "naked" body uniformClass = "USMC_CBU"; //the uniform item hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\USMC_SPEC4\us\blufor\data\clothing1_co.paa"}; }; }; class cfgWeapons { class Uniform_Base; class UniformItem; class Example_CombatUniform_mcam : Uniform_Base { scope = 2; displayName = "USMC Desert"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "USMC_TL"; //would be same as our made soldier class containerClass = "Supply20"; //how much it can carry mass = 80; //how much it weights }; }; }; I know there is no Headgear; item, but I've tried two different ones and still not working. Share this post Link to post Share on other sites
surpher 1 Posted May 14, 2014 I don't know why your helmet crashes the game, could be a model problem. You have your uniform setup incorrectly, your uniform class name just needs changing to USMC_CBU. class CfgPatches { class yourTag_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F","A3_Characters_F_BLUFOR"}; }; }; class CfgVehicles { class B_Soldier_base_F; class USMC_TL : B_Soldier_base_F { _generalMacro = "B_Soldier_F"; //unsure what this does scope = 2; displayName = "Team Leader"; nakedUniform = "U_BasicBody"; //class for "naked" body uniformClass = "USMC_CBU"; //the uniform item hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\USMC_SPEC4\us\blufor\data\clothing1_co.paa"} ; }; }; class CfgWeapons { class Uniform_Base; class UniformItem; class ItemInfo; class USMC_CBU : Uniform_Base { scope = 2; displayName = "USMC Desert"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "USMC_TL"; //would be same as our made soldier class containerClass = "Supply20"; //how much it can carry mass = 80; //how much it weights }; }; }; Share this post Link to post Share on other sites
Cunico 995 Posted May 15, 2014 Yeah, the uniform works fine in game. Its just a retexture for the helmet, thats it. Not a new model or anything. Share this post Link to post Share on other sites