DRTY_KIWI 5 Posted April 22, 2013 Hi, guys hoping you can help me solve this, I,m a fairly experienced mission scripter but a complete noob when it comes to addons. The problem I,m having is the config file I have created to add an extra item to the game (a simple cube) won,t load at all, and causes the game to become unresponsive at startup. class CfgPatches { class jac_custom { units[] = {}; weapons[] = {}; requiredVersion = 0.100000; }; }; class CfgVehicleClasses { class customClass { displayName = "JAC Custom Shit"; }; }; class cfgVehicles { class Static {}; class jac_square : Static { scope = public; armor = 90; icon = "\ca\data\data\Unknown_object.paa"; model = "\jac_custom\square.p3d"; displayName = "Plate Block"; }; }; Hope you can help thanks. Share this post Link to post Share on other sites
[aps]gnat 28 Posted April 22, 2013 Hi Jacob First post, good job Feedback You used "public" but didnt define it The inheritance of Static doesnt use {} Your Icon references an invalid ArmA2 source, not ArmA3 data You didnt use your vehicleclass #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class jac_custom { units[] = {}; weapons[] = {}; requiredVersion = 0.100000; }; }; class CfgVehicleClasses { class jac_customClass { displayName = "JAC Custom Shit"; }; }; class cfgVehicles { class Static; class jac_square : Static { scope = public; armor = 90; model = "\jac_custom\square.p3d"; displayName = "Plate Block"; vehicleClass = "jac_customClass"; }; }; Untested Make sure your P drive is running This addon folder must be in P drive The config.cpp is then inside the folder Use BinPBO and the resulting PBO should be good If you still get crashes, its more likely your p3d model is the problem. Share this post Link to post Share on other sites
DRTY_KIWI 5 Posted April 22, 2013 Hey that worked, thanks! Share this post Link to post Share on other sites