Home   Help Search Login Register  

Author Topic: no entry '.modelspecial'  (Read 910 times)

0 Members and 1 Guest are viewing this topic.

Offline oyman

  • Members
  • *
  • king of pings
no entry '.modelspecial'
« on: 27 Oct 2003, 04:09:02 »
whenever i try to put my tank ingame i get this error message

no entry '.modelspecial'
here is my config maybe someone can spot a error
Quote
#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 oy_tank
        {
                units[] = {oy_tank};
                weapons[] = {M182};
                requiredVersion = 1.85;
        };
};

class CfgVehicles
{
           class All {};
           class AllVehicles: All {};
           class Land: AllVehicles {};
           class LandVehicle: Land {};
           class Tank: LandVehicle {};
           class T72: Tank {};
           class oy_tank: T72
           {
                crew=SoldierGCrew;
                maxSpeed=65;
                side=TGuerrila;
                displayName=oy_tank;
                armor=350;
                fuelCapacity=569;
                model="\oy_tank\oy_tank.p3d";
      transportSoldier=6;
      soundEnviron[]={"\oy_tank\APCtreads.ogg",6,1};
         soundEngine[]={"\oy_tank\BMPengine.ogg",0.75,3};
      cost=100000;
      accuracy=0.6;
      brakeDistance=12.2;
      canfloat=1;
      commanderCanSee = CanSeeAll;
      commanderOpticsModel = "optika_tankw_auxiliary";
      forceHideCommander = 1;

      driverCanSee = CanseeCompass+CanSeeRadar+CanSeeEye+CanSeeEar;
      forceHideDriver = 1;
            
      gunnerCanSee = CanSeeAll;
      gunnerOpticsModel="\oy_tank\optika_snpiere";
      forceHideGunner = 1;

      weapons[]={M182};
      magazines[]={M182,M182s,M182l};
   
      unloadInCombat=1;


class TurretBase
      {      
         soundServo[]={};
              gunAxis="osa hlavne";
        turretAxis="osa veze";
        gunBeg="usti hlavne";
        gunEnd="konec hlavne";
        minElev=-10;
        maxElev=80;
        minTurn=-360;
        maxTurn=360;
        body="otocvez";
        gun="otochlaven";
       };
class CfgAmmo
{
class Default{};
   class Grenade: Default{};
   class MortarShell : Grenade{};
   class M182:MortarShell
   {
      model="\oy_tank\shell.p3d";
      soundFly[]={"\oy_tank\Flyby.ogg",0.031623,4};
      cost=100;
      //simulation="shotShell";
      //simulationStep=0.050000;
      soundHit[]={"Explosions\explosion_large1",10.000008,1};
      explosive=1;
           visibleFire=1000;
      audibleFire=900;
      visibleFireTime=500;
      maxSpeed=500;
      minRange=1200;
      minRangeProbab=0.8;
      midRange=3000;
      midRangeProbab=1;
      maxRange=5000;
      maxRangeProbab=1;
      hit=600;
      indirectHit=80;
      indirectHitRange=17;
   };
   class M182l:M182
   {
      maxSpeed=1200;
      minRange=5000;
      minRangeProbab=0.25;
      midRange=12000;
      midRangeProbab=1;
      maxRange=23000;
      maxRangeProbab=1;
   };
   class M182s:M182
   {
      maxSpeed=400;
      minRange=200;
      minRangeProbab=0.85;
      midRange=1250;
      midRangeProbab=1;
      maxRange=2500;
      maxRangeProbab=1;
   
   

   };

};

class CfgWeapons
{
class Default {};
class GrenadeLauncher: Default{};
class Mortar : GrenadeLauncher{};
class M182: Mortar
{
   ammo="m182";
   scopeWeapon=0;
   scopeMagazine=2;
   displayName="M107";
   shortNameMagazine="M107";
   displayNameMagazine="M107";
   nameSound="shell";
   flashSize=10;
   count=45;
   initSpeed=480;
   reloadTime=15;
   magazines[] = {M182,M182s,M182l};
   magazineReloadTime=5;
   reloadMagazineSound[]={"\oy_tank\125mmRL.ogg",1,1};
   sound[]={"Weapons\gun125",10.000000,1};
   reloadSound[]={"\oy_tank\125mmRL.ogg",1,1};
};
class M182s: m182
{
   initSpeed=160;
   displayName="M107(short)"
   shortNameMagazine="M107s";
     displayNameMagazine="M107s";
};

class M182l: m182
{
   initSpeed=530;
   displayName="M107(long)"
   shortNameMagazine="M107l";
     displayNameMagazine="M107l";

   


};

   

Kaliyuga

  • Guest
Re:no entry '.modelspecial'
« Reply #1 on: 27 Oct 2003, 21:40:49 »
 I think it's because you don't have the magazines accounted for in this part of your config.cpp:

Code: [Select]
class CfgPatches
{
        class oy_tank
        {
                units[] = {oy_tank};
                weapons[] = {M182};
                requiredVersion = 1.85;
        };
};


magazines[]={magazinenames}

should appear in there

Offline oyman

  • Members
  • *
  • king of pings
Re:no entry '.modelspecial'
« Reply #2 on: 28 Oct 2003, 00:30:48 »
ill try that right now
 8)

Offline oyman

  • Members
  • *
  • king of pings
Re:no entry '.modelspecial'
« Reply #3 on: 28 Oct 2003, 00:48:01 »
doh it still doesnt work grrr :'(

thanks for your response
« Last Edit: 28 Oct 2003, 00:53:04 by oyman »

Kaliyuga

  • Guest
Re:no entry '.modelspecial'
« Reply #4 on: 28 Oct 2003, 01:18:26 »
 there was another topic like this just a day or two ago...maybe they got their problem fixed in that thread ???


http://www.ofpec.com/yabbse/index.php?board=13;action=display;threadid=13877

Offline oyman

  • Members
  • *
  • king of pings
Re:no entry '.modelspecial'
« Reply #5 on: 28 Oct 2003, 03:25:12 »
no that didnt help me but i think i found the problem when

i removed all the weapons and ammo stuff in the config

it worked and i got it ingame i think ill just include

weapon loadouts from the games for the tank
 8)