Petar 10 Posted December 22, 2009 I have folowing eror when i put my addon in and try to start OFP flak88\config.cpp::CfgWeapons::88Gun::: Undefined base class 88Gun Here's the config #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 FLAK88 { units[] = {FLAK88}; weapons[] = {88GUN}; requiredVersion = 1.01; }; }; class CfgAmmo { class Default {}; class Shell:Default {}; class Heat: Default {}; class Shell73: Shell {}; class 88Heat: Shell73 { hit=300; indirectHit=200; indirectHitRange=10; }; class Heat73: Heat {}; class 88Shell: Heat73 { hit=400; indirectHit=200; indirectHitRange=4; }; }; class CfgWeapons { class Default{}; class Gun73: Default{}; class Gun105: Gun73{}; class 88Gun: Gun105 { initSpeed=500; reloadTime=8; airlock=1; magazines[]={"88HE", "88AP"}; ammo="88"; sound[]={\FLAK88\88_Shoot.wav,10,1}; reloadSound[]={\FLAK88\88_Load.wav,0.05,1}; count=110; class HE88: Gun88 { ammo="88Heat"; displayName="88mm HE Shell"; displayNameMagazine="88mm HE Shell"; shortNameMagazine="88mm HE"; airlock=1; count=50; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; class AP88: Gun88 { ammo=88Shell; displayName="88mm AP Shell"; displayNameMagazine="88mm AP Shell"; shortNameMagazine="88mm AP"; airlock=1; count=60; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; }; class CfgVehicles { class All {}; class AllVehicles: All {}; class Land: AllVehicles {}; class LandVehicle: Land {}; class Tank: LandVehicle {}; class APC: Tank {}; class M113: APC {}; class M2StaticMG: M113 {}; class FLAK88: M2StaticMG { icon="\FLAK88\Cannon.paa"; picture="idelo.paa"; displayname="FLAK 88"; nameSound="weapon"; model="\FLAK88\88"; weapons[]={Gun88}; magazines[]={AP88, HE88}; maxSpeed=1; fuelCapacity=0; hasCommander=1; hasGunner=1; transportAmmo=0; hasDriver=0; commanderOpticsModel="optika_tankw_auxiliary"; gunnerOpticsModel="optika_tank_gunner"; class Turret { gunAxis = "osahlavne"; turretAxis = "osaveze"; soundServo[]={\FLAK88\88_turn.wav,db-30,1.0}; gunBeg = "usti hlavne"; gunEnd = "konec hlavne"; body = "OtocVez"; gun = "OtocHlaven"; minElev=-7; maxElev=70; minTurn=-180; maxTurn=+180; }; }; }; Share this post Link to post Share on other sites
W0lle 1051 Posted December 22, 2009 class CfgWeapons has a missing }; at the end. #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 FLAK88 { units[] = {FLAK88}; weapons[] = {88GUN}; requiredVersion = 1.01; }; }; class CfgAmmo { class Default {}; class Shell:Default {}; class Heat: Default {}; class Shell73: Shell {}; class 88Heat: Shell73 { hit=300; indirectHit=200; indirectHitRange=10; }; class Heat73: Heat {}; class 88Shell: Heat73 { hit=400; indirectHit=200; indirectHitRange=4; }; }; class CfgWeapons { class Default{}; class Gun73: Default{}; class Gun105: Gun73{}; class 88Gun: Gun105 { initSpeed=500; reloadTime=8; airlock=1; magazines[]={"88HE", "88AP"}; ammo="88"; sound[]={\FLAK88\88_Shoot.wav,10,1}; reloadSound[]={\FLAK88\88_Load.wav,0.05,1}; count=110; class HE88: Gun88 { ammo="88Heat"; displayName="88mm HE Shell"; displayNameMagazine="88mm HE Shell"; shortNameMagazine="88mm HE"; airlock=1; count=50; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; class AP88: Gun88 { ammo=88Shell; displayName="88mm AP Shell"; displayNameMagazine="88mm AP Shell"; shortNameMagazine="88mm AP"; airlock=1; count=60; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; }; }; class CfgVehicles { class All {}; class AllVehicles: All {}; class Land: AllVehicles {}; class LandVehicle: Land {}; class Tank: LandVehicle {}; class APC: Tank {}; class M113: APC {}; class M2StaticMG: M113 {}; class FLAK88: M2StaticMG { icon="\FLAK88\Cannon.paa"; picture="idelo.paa"; displayname="FLAK 88"; nameSound="weapon"; model="\FLAK88\88"; weapons[]={Gun88}; magazines[]={AP88, HE88}; maxSpeed=1; fuelCapacity=0; hasCommander=1; hasGunner=1; transportAmmo=0; hasDriver=0; commanderOpticsModel="optika_tankw_auxiliary"; gunnerOpticsModel="optika_tank_gunner"; class Turret { gunAxis = "osahlavne"; turretAxis = "osaveze"; soundServo[]={\FLAK88\88_turn.wav,db-30,1.0}; gunBeg = "usti hlavne"; gunEnd = "konec hlavne"; body = "OtocVez"; gun = "OtocHlaven"; minElev=-7; maxElev=70; minTurn=-180; maxTurn=+180; }; }; }; Share this post Link to post Share on other sites
Petar 10 Posted December 23, 2009 class CfgWeapons has a missing }; at the end. #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 FLAK88 { units[] = {FLAK88}; weapons[] = {88GUN}; requiredVersion = 1.01; }; }; class CfgAmmo { class Default {}; class Shell:Default {}; class Heat: Default {}; class Shell73: Shell {}; class 88Heat: Shell73 { hit=300; indirectHit=200; indirectHitRange=10; }; class Heat73: Heat {}; class 88Shell: Heat73 { hit=400; indirectHit=200; indirectHitRange=4; }; }; class CfgWeapons { class Default{}; class Gun73: Default{}; class Gun105: Gun73{}; class 88Gun: Gun105 { initSpeed=500; reloadTime=8; airlock=1; magazines[]={"88HE", "88AP"}; ammo="88"; sound[]={\FLAK88\88_Shoot.wav,10,1}; reloadSound[]={\FLAK88\88_Load.wav,0.05,1}; count=110; }; class HE88: Gun88 { ammo="88Heat"; displayName="88mm HE Shell"; displayNameMagazine="88mm HE Shell"; shortNameMagazine="88mm HE"; airlock=1; count=50; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; class AP88: Gun88 { ammo=88Shell; displayName="88mm AP Shell"; displayNameMagazine="88mm AP Shell"; shortNameMagazine="88mm AP"; airlock=1; count=60; sound[]={"\FLAK88\88_Shoot.wav",10.000000,1}; reloadSound[]={"\FLAK88\88_Load.wav",0.01,1}; }; }; }; class CfgVehicles { class All {}; class AllVehicles: All {}; class Land: AllVehicles {}; class LandVehicle: Land {}; class Tank: LandVehicle {}; class APC: Tank {}; class M113: APC {}; class M2StaticMG: M113 {}; class FLAK88: M2StaticMG { icon="\FLAK88\Cannon.paa"; picture="idelo.paa"; displayname="FLAK 88"; nameSound="weapon"; model="\FLAK88\88"; weapons[]={Gun88}; magazines[]={AP88, HE88}; maxSpeed=1; fuelCapacity=0; hasCommander=1; hasGunner=1; transportAmmo=0; hasDriver=0; commanderOpticsModel="optika_tankw_auxiliary"; gunnerOpticsModel="optika_tank_gunner"; class Turret { gunAxis = "osahlavne"; turretAxis = "osaveze"; soundServo[]={\FLAK88\88_turn.wav,db-30,1.0}; gunBeg = "usti hlavne"; gunEnd = "konec hlavne"; body = "OtocVez"; gun = "OtocHlaven"; minElev=-7; maxElev=70; minTurn=-180; maxTurn=+180; }; }; }; Thanks! ;) Share this post Link to post Share on other sites