Jump to content
Sign in to follow this  
soldier2390

Error in Config.cpp: Undefined base class 'HMMWV_Base'?

Recommended Posts

Hello community,

I am trying to make a small personal Replacement pack. But when I put the pbo in the Addons folder and start up the game I get this error: File exa_rg31_replacement\config.cpp, line 28: .HMMWV_MK19: Undefined base class 'HMMWV_base'?

class CfgPatches {
class EXA_RG31_Replacement {
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.54;
	requiredAddons[] = {"CAData", "CAWheeled_E", "CAWheeled"};
};
};

class CfgAddons {
class PreloadAddons {
	class EXA_RG31_Replacement {
		list[] = {"EXA_RG31_Replacement"};
	};
};
};

class CfgVehicles {
class HMMWV_Base;  /*extern*/

class HMMWV : HMMWV_base {
	model = "\ExA_RG31\ExA_RG31_50";
	displayName = "RG-31 (M2)";
	HiddenSelections[] = {"camo", "camo1", "camo2", "camo3"};
	HiddenSelectionsTextures[] = {"ca\wheeled_e\hmmwv\data\hmmwv_body_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_hood_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa"};
};
};

class HMMWV_MK19 : HMMWV_base {
	model = "\ExA_RG31\ExA_RG31_mk19";
	displayName = "RG-31 (MK19)";
	HiddenSelections[] = {"camo", "camo1", "camo2", "camo3"};
	HiddenSelectionsTextures[] = {"ca\wheeled_e\hmmwv\data\hmmwv_body_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_hood_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa"};
	};
};
};

P.S. I am not very good with configs even after all these years so If someone could post how my config is suppost to be and why it needs to be that way, that would be great in helping me understand this more!

Dave,

Share this post


Link to post
Share on other sites

EDIT: I found your actual issue

class CfgPatches {
   class EXA_RG31_Replacement {
       units[] = {};
       weapons[] = {};
       requiredVersion = 1.54;
       requiredAddons[] = {"CAData", "CAWheeled_E", "CAWheeled"};
   };
};

class CfgAddons {
   class PreloadAddons {
       class EXA_RG31_Replacement {
           list[] = {"EXA_RG31_Replacement"};
       };
   };
};

class CfgVehicles {
   class HMMWV_Base;  /*extern*/

   class HMMWV : HMMWV_base {
       model = "\ExA_RG31\ExA_RG31_50";
       displayName = "RG-31 (M2)";
       HiddenSelections[] = {"camo", "camo1", "camo2", "camo3"};
       HiddenSelectionsTextures[] = {"ca\wheeled_e\hmmwv\data\hmmwv_body_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_hood_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa"};
   };
[color="#FF0000"][b]};[/b][/color]

   class HMMWV_MK19 : HMMWV_base {
       model = "\ExA_RG31\ExA_RG31_mk19";
       displayName = "RG-31 (MK19)";
       HiddenSelections[] = {"camo", "camo1", "camo2", "camo3"};
       HiddenSelectionsTextures[] = {"ca\wheeled_e\hmmwv\data\hmmwv_body_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_hood_canvas_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa", "ca\wheeled_e\hmmwv\data\hmmwv_canvas_1_co.paa"};
       };
   };
[color="#FF0000"]};  [/color]

Remove the extra '};' it's closing the cfgvehicles class so the HMMWV_base class isn't being defined anymore.

Edited by Kerc Kasha

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
Sign in to follow this  

×