DontPanic1987 0 Posted January 29, 2023 Hi there, I am new to the modding space and looking to set up a compatibility mod between Greenmag and SOG. I feel like this is 98% of the way done i just need to tweak a file, having checked other compats for greenmag and have my files set up exactly the same yet it fails at the first hurdle in my CfgWeapons. The error happens on the first EGVAR, assuming I likely have something set up incorrectly. config.cpp contains the following: class CfgPatches { class ADDON { name="GreenMag SOG Compat Full"; units[]={}; weapons[]={}; requiredVersion=1.9400001; requiredAddons[]= { "greenmag_main" }; author="DontPanic"; version=1.4; versionStr="1.4.3.68"; versionAr[]={1,4,3,68}; }; }; #include "CfgEventhandlers.hpp" #include "CfgWeapons.hpp" CfgWeapons .hpp contains the following: class CfgWeapons { /*extern*/ class CBA_MiscItem; /*extern*/ class CBA_MiscItem_ItemInfo; //Core Items /*extern*/ class EGVAR(core,1Rnd); /*extern*/ class EGVAR(core,10Rnd); /*extern*/ class EGVAR(core,20Rnd); /*extern*/ class EGVAR(core,30Rnd); /*extern*/ class EGVAR(core,40Rnd); /*extern*/ class EGVAR(core,50Rnd); /*extern*/ class EGVAR(core,60Rnd); //regular ammo #include "cfg\ammo\762x33_basic.hpp" #include "cfg\ammo\762x33_tracer.hpp" #include "cfg\ammo\762x25_basic.hpp" #include "cfg\ammo\762x25_tracer.hpp" #include "cfg\ammo\12g_basic.hpp" //MG belt #include "cfg\belts\belts_762x39_basic.hpp" #include "cfg\belts\belts_762x39_tracer.hpp" }; the error I get back is here: https://imgur.com/a/Gz3H89K Share this post Link to post Share on other sites
Jackal326 1181 Posted January 29, 2023 Its because you have a ( in the middle of a classname, or what I guess is supposed to be a classname... //Core Items /*extern*/ class EGVAR(core,1Rnd); /*extern*/ class EGVAR(core,10Rnd); /*extern*/ class EGVAR(core,20Rnd); /*extern*/ class EGVAR(core,30Rnd); /*extern*/ class EGVAR(core,40Rnd); /*extern*/ class EGVAR(core,50Rnd); /*extern*/ class EGVAR(core,60Rnd); To the best of my knowledge, you can't have ( or ) in classnames, so why are they there? I can't imagine the PBO you're referencing those external classnames from packed if they are indeed the classnames you used. Share this post Link to post Share on other sites