OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Dubieman on 16 Mar 2005, 23:38:11
-
Hello,
My config is using another addon I have for the models and such, and is just modifying the armor values and putting a new name on for the adjustments per what the author said for changing his addon.
Anyways, when I put my config in a folder called GRK_Wirb and make it a .pbo, and then try to paly OFP with it in the addons folder, it comes up with this error...
cannot load: GRK_Wirb/cfgvehicles/ ...... "c" encountered instead of "}"
I think it has something to do with the cfg vehicles class. I don't know what it is, and I've gone over it a few times and can't pinpoint anything.
Here it is:
********************************************
#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 GRK_WirB
{
units[] = {GRK_Wirb};
weapons[] = {};
requiredVersion = 1.75;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Tank: LandVehicle {};
class M113: Tank{};
class GST_Wirb: M113
class GRK_WirB: GST_Wirb
{
armor=180;
armorStructural=4.2;
class HitTurret {armor=1.0;material=51;name=turet;passThrough=1;};
class HitGun {armor=0.8;material=52;name=gun;passThrough=1;};
canfloat = false;
gunnerOpticsModel = "optika_zsu_gunner";
outGunnerMayFire=true;
forcehidegunner = true;
hasCommander=false;
driverIsCommander=false;
viewGunnerInExternal = true;
soundEngine[]={\GST_Wirb\Engine.wav,db-10,1};
side=0;
scope=2;
nameSound="Tank";
crew=SoldierECrew;
displayName="Wirbelwind";
maxSpeed=38;
transportSoldier = 2;
cost=100000;
picture="\GST_Wirb\Wirb";
model="\GST_Wirb\GST_Wirb";
weapons[]={Wirbel};
magazines[]={Wirbel};
commanderAction = ManActBMPcommanderout;
commanderInAction = ManActBMPcommander;
driverAction = ManActBMPGunnerOut;
gunnerAction = ManActZSUGunner;
driverInAction = ManActT55Driver;
gunnerInAction = ManActZSUGunner;
class TurretBase
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
soundServo[]={Vehicles\gun_elevate,db-30,1.0};
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
minElev=-10; maxElev=+90;
minTurn=-360; maxTurn=+360;
body = "OtocVez";
gun = "OtocHlaven";
};
class Turret: TurretBase {}
};
accuracy=0.20;
type=VArmor;
threat[]={0.8, 0.6, 0.4};
};
};
**************************************
If anyone knows the answer, thanks in advance. ;)
:cheers:
GRK
-
***************************************
#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 GRK_WirB
   {
      units[] = {GRK_Wirb};
      weapons[] = {};
      requiredVersion = 1.75;
   };
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Tank: LandVehicle {};
class M113: Tank{};
class GST_Wirb: M113 {};
class GRK_WirB: GST_Wirb
   {
armor=180;
      armorStructural=4.2;
class HitTurret {armor=1.0;material=51;name=turet;passThrough=1;};
      class HitGun {armor=0.8;material=52;name=gun;passThrough=1;};
canfloat = false;
      gunnerOpticsModel = "optika_zsu_gunner";
outGunnerMayFire=true;
forcehidegunner = true;
      hasCommander=false;
      driverIsCommander=false;
viewGunnerInExternal = true;
soundEngine[]={\GST_Wirb\Engine.wav,db-10,1};
side=0;
      scope=2;
      nameSound="Tank";
      crew=SoldierECrew;     ÂÂ
displayName="Wirbelwind";
      maxSpeed=38;
transportSoldier = 2;
      cost=100000;  ÂÂ
      picture="\GST_Wirb\Wirb";
model="\GST_Wirb\GST_Wirb";
      weapons[]={Wirbel};
      magazines[]={Wirbel};  ÂÂ
commanderAction = ManActBMPcommanderout;
commanderInAction = ManActBMPcommander;
driverAction = ManActBMPGunnerOut;
      gunnerAction = ManActZSUGunner;
      driverInAction = ManActT55Driver;
gunnerInAction = ManActZSUGunner;
class TurretBase
{
      gunAxis = "OsaHlavne";
         turretAxis = "OsaVeze";
         soundServo[]={Vehicles\gun_elevate,db-30,1.0};
         gunBeg = "usti hlavne";
         gunEnd = "konec hlavne";
        ÂÂ
         minElev=-10; maxElev=+90;
         minTurn=-360; maxTurn=+360;
         body = "OtocVez";
         gun = "OtocHlaven";
      };
      class Turret: TurretBase {}
      };
accuracy=0.20;
type=VArmor;
      threat[]={0.8, 0.6, 0.4};
   };
};
***************************************
The fix is highlighted ;)
-
Ahhh....
Dunno why its always the little things that screw me up. :P
Thanks
GRK