Home   Help Search Login Register  

Author Topic: Config Problem  (Read 1346 times)

0 Members and 1 Guest are viewing this topic.

ThoMpsoN

  • Guest
Config Problem
« on: 07 Jul 2005, 19:31:15 »
Hey,
I get this error when I try to launch OFP.
http://img52.imageshack.us/img52/5363/error2ow.jpg

Here is my config,
Code: [Select]
// some basic defines
#define TEast 1
#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

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

class CfgModels
{
class Default
{
sections[]={};
sectionsInherit="";
};
class Weapon: Default
{
sections[]={"zasleh"};
};
class M16A1: Weapon{};
};

class CfgPatches
{
class M16A1
{
units[] = {};
weapons[] = {M16A1};
requiredVersion[] = 1.96;
};
};

class CfgAmmo
{
class Default{};
class BulletSingle : Default{};
class BulletSinglew : BulletSingle{};
class M16A1single: BulletSinglew
{
hit=8;
indirectHit=2;
indirectHitRange=0.10000;
explosive=0;
cost=0.7;
maxSpeed=1000;
minRange=0.5
minRangeProbab=0.100000;
midRange=230
midRangeProbab=0.230000;
maxRange=460
maxRangeProbab=0.460000;
visibleFire=18
audibleFire=18
visibleFireTime=3
};

class M16A1auto: BulletSinglew
{
hit=8;
indirectHit=2;
indirectHitRange=0.10000;
explosive=0;
cost=2.1;
maxSpeed=1000;
minRange=0.5;
minRangeProbab=0.100000;
midRange=200
midRangeProbab=0.200000;
maxRange=410
maxRangeProbab=0.410000;
visibleFire=18
audibleFire=18
visibleFireTime=3
};
};

class CfgRecoils
{
M16A1Recoil[]={0.03,0,0, 0.045,0.013,0.025, 0.045,0,0.02125, 0.255,0,0,};
};

class CfgWeapons
{
class Default{};
class MGun: Default{};
class Riffle: MGun{};
class M16A1: Riffle
{
scopeWeapon=2;
scopeMagazine=0;
displayName="M16A1";
model="\US_Weap\M16A1\M16A1.p3d";
modelOptics="\US_Weap\Optics\optic_m16.p3d";
picture="\US_Weap\WeaponPics\w_m16.paa";
optics=1;
opticsZoomMin=0.35;
opticsZoomMax=0.35;
distanceZoomMin=300
distanceZoomMax=300
magazines[]={M16A1mag};
reloadMagazineSound[]={"\US_Weap\Sounds\M16A1reload.wss",0.010000,1};
drySound[]={"\US_Weap\Sounds\M16A1dry.wss",0.010000,1};
initSpeed=884;
dexterity=0.945;
modes[]={"Single","FullAuto"};
class Single
{
ammo="M16A1single";
multiplier=1;
burst=1;
displayName="M16A1 Semi";
dispersion=0.0008;
sound[]={"\US_Weap\Sounds\M16A1.wav",1.000000,1};
soundContinuous=0;
reloadTime=0.075;
ffCount=1;
recoil="M16A1recoil";
autoFire=0;
aiRateOfFire=0.50000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class FullAuto
{
ammo="M16A1auto";
multiplier=1;
burst=1;
displayName="M16A1 Auto";
dispersion=0.0008;
sound[]={"\US_Weap\Sounds\M16A1.wav",1.000000,1};
soundContinuous=0;
reloadTime=0.075;
ffCount=100;
recoil="M16A1recoil";
autoFire=1;
aiRateOfFire=0.02000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};

class M16A1mag: M16A1
{
displayNameMagazine = M16A1 Mag;
shortNameMagazine = M16A1Mag;
picture="\US_Weap\WeaponPics\m_m16.paa";
count=20;
scopeWeapon=0;
scopeMagazine=2;
};
};

Can anyone help out?
Thanks,
-ThoMpsoN*
« Last Edit: 07 Jul 2005, 19:32:18 by ThoMpsoN »

Lean Bear

  • Guest
Re:Config Problem
« Reply #1 on: 13 Jul 2005, 12:47:15 »
Yup, you've got a load of errors there.

The "1" thing is not the only problem. You've missed out almost half the semi-colons ";" that you need in your conifg.

After lines like:

minRangeProbab=0.100000;
midRange=230
midRangeProbab=0.230000;
maxRange=460


You must have semi-colons (so OFP knows when one value ends and the other starts - otherwise OFP would read your midRange as "230midRangeProbab=0.230000;" which makes no sense)

So it would look like this:

minRangeProbab=0.100000;
midRange=230;
midRangeProbab=0.230000;
maxRange=460;


Just do that throughout your config - then you can route out any other errors much more easily (if there are any) :)

ThoMpsoN

  • Guest
Re:Config Problem
« Reply #2 on: 15 Jul 2005, 09:25:47 »
thank you very much