Home   Help Search Login Register  

Author Topic: No entry '.model.' , i get this error can you see whats wrong with my config.c  (Read 1066 times)

0 Members and 1 Guest are viewing this topic.

blue_thud

  • Guest
I get this error, No entry '.model.' , when I try opening op my weapon addon in the editor using preview. I think it has to do with my config file, so can you see whats wong with it?


// Basic def.
#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

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


class CfgPatches
{
   class AR70
   {
      units[]={AR70_soldier};
      weapons[]={AR70};
      requiredVersion=1.75;
   };
};

class CfgModels
{
   class Default{};
    class Weapon: Default{};
    class AR70 : Weapon{};

};

class CfgAmmo
{
   class default {};
   class BulletSingleW: default {};
    class BulletBurstW: BulletSingleW {};
    class BulletFullAutoW: BulletBurstW {};
   class AR70ammo: BulletFullAutoW {};
};

class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};   
   class M16: Riffle {};
   
   class AR70: M16
   {
      scopeWeapon = public;
      scopeMagazine = public;
      valueWeapon = 0;
      valueMagazine = 1;
      model="\ar70\ar70";
      modelOptics="\data3d\optika_ak47.p3d";
      optics = true;
      opticsZoomMin=0.35;
      opticsZoomMax=0.35;
      displayName = AR70/223;
      displayNameMagazine = AR70mag;
      shortNameMagazine = AR70mag;
      drySound[]={"weapons\M16dry",db-40,1};         
      magazines[]={AR70};
      modes[]={"Single","Burst","FullAuto"};
      };
      class Single
      {
         ammo = BulletSingleW;
         multiplier=1;
         burst=1;
         displayName = AR70/223 single;
         dispersion=0.0002;
         sound[]={"Weapons\M16Single",db0,1};
         soundContinuous=false;
         reloadTime=0.07;
         ffCount=1;
         recoil=riffleSingle;
         autoFire = false;
         aiRateOfFire=5.0;
         aiRateOfFireDistance=500;
         useAction = false;
         useActionTitle = "";
      };
      class Burst
      {
         ammo = BulletBurstW;
         multiplier=1;
         burst=3;
         displayName = AR70/223 burst;
         dispersion=0.0004;
         sound[]={"Weapons\M16Burst",db0,1};
         //sound[]={"",db0,1};
         soundContinuous=false;
         reloadTime=0.1;
         ffCount=3;
         recoil=riffleBurst3;
         autoFire = false;
         aiRateOfFire=5.0;
         aiRateOfFireDistance=500;

         useAction = false;
         useActionTitle = "";
      };
      class FullAuto
      {
         ammo="BulletFullAutoW";
         multiplier=1;
         burst=1;
         displayName="AR70/223 auto";
         dispersion=0.000800;
         sound[]={"Weapons\M16Single",1.000000,0.97};
         soundContinuous=1;
         reloadTime=0.100000;
         ffCount=30;
         recoil="riffleBurst3";
         autoFire=1;
         aiRateOfFire=5.000000;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";

      };
   };




class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class SoldierWB:Man{}

   class AR70_soldier:SoldierWB
   {
      access=2
      displayName="Soldier (AR70/223)";
      weapons[]={"Throw","Put","AR70/223"};
      magazines[]={"AR70","AR70","AR70","AR70"};
   };   
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyAR70 : ProxyWeapon {};

};

McFly

  • Guest
model="\ar70\ar70";

should be

model="\ar70\ar70.p3d";

and your sounds should have extensions too.   ;D
« Last Edit: 10 Aug 2003, 08:12:03 by McFly »

Eviscerator

  • Guest
Quote
modes[]={"Single","Burst","FullAuto"};
      };
      class Single

Second }; shouldnt be there.

blue_thud

  • Guest
What do you mean "second }; shouldnt be there"? Am I supposed to move it over to the left? Delete it? Are you talking about the one above class single or the one to the right of full auto?

asmodeus

  • Guest
I think he means this:

Code: [Select]
modes[]={"Single","Burst","FullAuto"};
      class Single

Asmo

blue_thud

  • Guest
Thanks anyway. I could not get any of the stuff that was posted to work and so I just started over with a new config file and now it works.