Home   Help Search Login Register  

Author Topic: What's wrong with my config.cpp  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
What's wrong with my config.cpp
« on: 29 Jun 2003, 22:49:03 »
If I start OFP I get an error message (see picture)


But I can't find any faults in the config.cpp
Any ideas?

cu
Jens

#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 TutIsland{units[]={};weapons[]={};requiredVersion = 1.40;};
};

class CfgWorldList {
   class TutIsland {};

}

class CfgEnvSounds {};

class CfgWorlds
{
   class DefaultWorld {};
   class Eden: DefaultWorld {};   
   class TutIsland: Eden {};
   {
      worldName="\TutIsland\TutIsland.wrp";
      description="Visitor Tutorial";
      startTime="10:00";
      startDate="29/2/84";
      centerPosition[]={5931,6747,0};

      class Names
      {
      };   
   };

};


Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:What's wrong with my config.cpp
« Reply #1 on: 30 Jun 2003, 01:26:20 »
Try removing the text in red from the following section.
And change the text marked in blue:

class CfgWorlds
{
   class DefaultWorld {};
   class Eden: DefaultWorld {};  
   class TutIsland: DefaultWorld {};
   {
      worldName="\TutIsland\TutIsland.wrp";
      description="Visitor Tutorial";
      startTime="10:00";
      startDate="29/2/84";
      centerPosition[]={5931,6747,0};



Planck
I know a little about a lot, and a lot about a little.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:What's wrong with my config.cpp
« Reply #2 on: 30 Jun 2003, 16:43:19 »
Tried it, but didn't work either. Any more ideas? Could it be something else than the config.cpp?

Jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:What's wrong with my config.cpp
« Reply #3 on: 01 Jul 2003, 02:07:21 »
Ok, I think I have it.

Look at the following section:


class CfgWorldList
{
   class TutIsland{};
}

It should I think look like this:


class CfgWorldList
{
   class TutIsland{};
};


In other words, there seems to be a semi-colon missing after the end bracket. (marked as blue)


Planck
« Last Edit: 01 Jul 2003, 02:08:36 by Planck »
I know a little about a lot, and a lot about a little.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:What's wrong with my config.cpp
« Reply #4 on: 01 Jul 2003, 18:49:18 »
Hi Planck,

thanks for your efforts. But I keep getting this error how hard I might try. Would you be so kind and send me a working cpp and wrp file (jens198@yahoo.de)?

jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:What's wrong with my config.cpp
« Reply #5 on: 01 Jul 2003, 21:08:53 »
I got it! I got it! I got it! I got it! I got it! I got it!

The config.cpp was alright! It's that dammned editor i'm using! Used windows notepad instead and volia: my island im OFP!!

jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

MadAussie

  • Guest
Re:What's wrong with my config.cpp
« Reply #6 on: 22 Jul 2003, 14:13:38 »
i too am having similar problems..
what program other than notepad can i use???
Appreciate any assistance

MadAussie out...

Waterman

  • Guest
Re:What's wrong with my config.cpp
« Reply #7 on: 22 Jul 2003, 20:37:21 »
Code: [Select]
// Midway
// Made with New World config.cpp creator by Marksman
// beta version

#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

#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 CfgPatches
{
   class Midway
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"Midway"};
      requiredVersion = 1.30;
   };
};
class CfgVehicles{};
class CfgSurfaces
{
   class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
   class DefaultWorld {};
   class  Midway: DefaultWorld
   {
      access=3;
      description="Midway";
      icon="\Midway\Midway.paa";
      worldName="\Midway\Midway.wrp";
      plateFormat="ML$ - #####";
      plateLetters="ABCDEGHIKLMNOPRSTVXZ";
      startTime="7:30";
      startDate="10/4/82";
      startWeather=0.400000;
      startFog=0.000000;
      forecastWeather=0.400000;
      forecastFog=0.000000;
      seagullPos[]={8897,4349,100};
      ilsPosition[]={6824.36,8773.72,15.00};
      ilsDirection[]={0,0.080000,-1};
      ilsTaxiIn[]={};
      ilsTaxiOff[]={};
      centerPosition[]={9735,3964,0};
      class Sounds
      {
         sounds[]={};
      };
      class Animation
      {
         vehicles[]={};
      };
      class Names
      {
           
               
      };
   };
};
class CfgWorldList
{
   class  Midway{};
};

Try that for a basic config.ccp, but change the word "midway" for the name of your island.  Should work...

Waterman. :)