smirlianos 5 Posted June 8, 2018 I want to add a new uniform to the game. My PBO file is structured like this: 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: Is there any mistake in my config file? 1 Share this post Link to post Share on other sites
Rich_R 1087 Posted June 9, 2018 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. 1 Share this post Link to post Share on other sites
smirlianos 5 Posted June 11, 2018 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! 1 Share this post Link to post Share on other sites