Home   Help Search Login Register  

Author Topic: a config.cpp problem  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

charunks

  • Guest
a config.cpp problem
« on: 19 Jan 2004, 19:07:31 »
An addon of a friend of mine keeps chrashing the game when it loads.
He thinks it' s caused by a bug in the config.cpp file.

I don' t have a clue what' s wrong with it.
Quote
//some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

// true or false
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
  class east_turret
  {
     units[]={east_turret};
     weapons[]={};
     worlds[]={};
     requiredVersion=v1.91;
   };
};


class CfgVehicles
{

   class All {};
   class AllVehicles: All {};
   class LandVehicle: AllVehicles {};
   class Tank: LandVehicle {};
   class M60: Tank {};
   class east_turret: M60
   {
   displayName="east turret";
   model="/east_turret/east_turret.p3d";
   };
};

pbo file: east_turret.pbo
p3d file: east_turret.p3d
could anyone plz tell me what' s the cause of it?


Rastavovich

  • Guest
Re:a config.cpp problem
« Reply #1 on: 19 Jan 2004, 23:19:37 »
he is right.

model = ... line is wrong

it should be

model = "\east_turret\east_turret.p3d";

charunks

  • Guest
Re:a config.cpp problem
« Reply #2 on: 20 Jan 2004, 16:17:13 »
How could I have missed that! *slaps himself ten times*
thnx a mil!

Rastavovich

  • Guest
Re:a config.cpp problem
« Reply #3 on: 20 Jan 2004, 16:25:11 »
hehe, your welcome.

If game ctd there is almost everytime something wrong with the pathreference for model (or model is missing).