OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: jens198 on 29 Jun 2003, 22:49:03

Title: What's wrong with my config.cpp
Post by: jens198 on 29 Jun 2003, 22:49:03
If I start OFP I get an error message (see picture)

(http://www.x-plane.org/users/jens198/Bild2.gif)
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
      {
      };   
   };

};


Title: Re:What's wrong with my config.cpp
Post by: Planck 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
Title: Re:What's wrong with my config.cpp
Post by: jens198 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
Title: Re:What's wrong with my config.cpp
Post by: Planck 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
Title: Re:What's wrong with my config.cpp
Post by: jens198 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
Title: Re:What's wrong with my config.cpp
Post by: jens198 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
Title: Re:What's wrong with my config.cpp
Post by: MadAussie 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...
Title: Re:What's wrong with my config.cpp
Post by: Waterman 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. :)