SpacePilotMax 47 Posted August 25, 2017 I am attempting to retexture a shemag for the sake of it and to learn. When attempting to build the addon, I receive an error message that looks like this: Build failed. Result code=1 CfgConvert task failed. File D:\[location of this addon folder]\config.cpp, line 22: /cfgWeapons.H_Shemag_WTF: Undefined base class 'H_HelmetB' Config : some input after EndOfFile Error reading config file '[cfg location]'. Class destroyed with lock count 1 Here's my config: class cfgPatches { class Shemag_WTF { author="SpacePilotMax"; name="WTF Shemag"; url=""; requiredAddons[]= {"A3_Characters_F"}; requiredVersion=0.1; units[]= { }; weapons[] = { "H_Shemag_WTF" }; }; }; class cfgWeapons { class H_Shemag_WTF: H_HelmetB { author = "SpacePilotMax"; scope=2; weaponPoolAvailable = 1; scopeCurator=2 displayName="Shemag (WTF)"; picture = "A3_WTF_Shemag\data\ui\icon_h_shemag_wtf_ca.paa"; model = "A3\characters_f_gamma\guerrilla\headgear_shemagmask.p3d"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"A3_WTF_Shemag\data\h_shemag_wtf_co.paa"}; author="SpacePilotMax"; editorCategory="EdCat_Equipment"; editorSubcategory="EdSubcat_Hats"; class ItemInfo: HeadgearItem { mass = 1; uniformModel = "A3\characters_f_gamma\guerrilla\headgear_shemagmask.p3d"; }; }; }; I have included cfgWeapons as well as cfgPatches. It seems like I'm missing something obvious, but I don't know what. Thanks in advance for your (potential) help. P.S. If you see something else that will become a problem when the base cfg is fixed, please point it out. Thanks again. P.P.S. Yes, I know the shemag would have the armor values of the basic NATO helmet, but it's the least of my concerns right now. Share this post Link to post Share on other sites
mr burns 132 Posted August 25, 2017 Holy shit this new forum software does´nt let me re-write quotes so now im forced to type it in myself lol... As for your problem, see below :) It´s the same for any class you inherit from when it wasn´t called/mentioned (missing the correct term here) in your config before. You have to do this one time only, any further inheritances from H_HelmetB don´t need the empty class call. class cfgWeapons { class H_HelmetB; class H_Shemag_WTF: H_HelmetB Share this post Link to post Share on other sites
SpacePilotMax 47 Posted August 25, 2017 @mr burns Thanks a lot, that was it. I also had to define the base class HeadgearItem, if anyone else has the problem. Share this post Link to post Share on other sites
SpacePilotMax 47 Posted August 25, 2017 Final config: Spoiler class cfgPatches { class Shemag_WTF { author="SpacePilotMax"; name="WTF Shemag"; url=""; requiredAddons[]= {"A3_Characters_F"}; requiredVersion=0.1; units[]= { }; weapons[] = { "H_Shemag_WTF" }; }; }; class cfgWeapons { class H_HelmetB; class HeadgearItem; class H_Shemag_WTF: H_HelmetB { author = "SpacePilotMax"; scope=2; weaponPoolAvailable = 1; scopeCurator=2 displayName="Shemag (WTF)"; picture = "A3_WTF_Shemag\data\ui\icon_h_shemag_wtf_ca.paa"; model = "A3\characters_f_gamma\guerrilla\headgear_shemagmask.p3d"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"A3_WTF_Shemag\data\h_shemag_wtf_co.paa"}; editorCategory="EdCat_Equipment"; editorSubcategory="EdSubcat_Hats"; class ItemInfo: HeadgearItem { mass = 1; uniformModel = "A3\characters_f_gamma\guerrilla\headgear_shemagmask.p3d"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"A3_WTF_Shemag\data\h_shemag_wtf_co"}; }; }; }; Share this post Link to post Share on other sites