Home   Help Search Login Register  

Author Topic: config.cpp problems  (Read 1146 times)

0 Members and 1 Guest are viewing this topic.

monoloth69

  • Guest
config.cpp problems
« on: 07 Dec 2003, 08:36:10 »
ok, i have my config file done up, but now i get an error from OFP saying:
disciples_isle\config.cpp/CfgWorlds/Disciples_Isle/Names/: '.' encountered instead of '{'
 
my wrp files is named Disciples_Isle.wrp
my pbo file is named Disciples_Isle.pbo
my .paa file is named Disciples_Isle.paa
following is my config.cpp
 
The config file and the paa file are pbo'd into my pbo file, put into my addons folder
The wrp file is put into my worlds folder
when I start OFP, i get the above error..any help?
 
// Disciples Isle
// Made with Config File Writer by Marksman
// Version 1.0
 
#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 Disciples_Isle
 {
  units[] = {};
  weapons[] = {};
  worlds[] = {"Disciples Isle"};
  requiredVersion =1.30;
 };
};
class CfgVehicles{};
class CfgSurfaces
{
 class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
 class DefaultWorld {};
 class  Disciples_Isle: DefaultWorld
 {
  access=3;
  description="Disciples Isle";
  icon="\Disciples_Isle.pbo\Disciples_Isle.paa";
  worldName="\Disciples_Isle.pbo\Disciples_Isle.wrp";
  plateFormat="    ";
  plateLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  startTime="06:30";
  startDate="04/08/69";
  startWeather=0.47;
  startFog=0.32;
  forecastWeather=0.60;
  forecastFog=0.36;
  ilsPosition[]={9520.8,6612.1};
  ilsDirection[]={0,0.08,1};
  ilsTaxiIn[]={};
  ilsTaxiOff[]={};
  seagullPos[]={0,0,0};
  centerPosition[]={0,0,0};
  class Sounds
  {
   sounds[]={};
  };
  class Animation
  {
   vehicles[]={};
  };
  class Names
  {
   class NailerVille
   {
    name="NailerVille";
    position[]={7292.2607,7133.9062,0};
   };
   class Castle_Ripenstein
   {
    name="Castle Ripenstein";
    position[]={5481.4282,7080.8906,0};
   };
   class Mystic_Heights
   {
    name="Mystic Heights";
    position[]={1965.4459,7178.2729,0};
   };
   class Cryptopia
   {
    name="Cryptopia";
    position[]={3133.6687,6218.9512,0};
   };
   class AshVille
   {
    name="AshVille";
    position[]={3425.7241,5393.4883,0};
   };
   class Wolf_Mountain
   {
    name="Wolf Mountain";
    position[]={3717.7537,10216.7412,0};
   };
   class ToneLockerbie
   {
    name="ToneLockerbie";
    position[]={5210.9497,11178.5176,0};
   };
   class Dead_Arena
   {
    name="Dead Arena";
    position[]={6759.8174,10021.3906,0};
   };
   class St._Kuetersberg
   {
    name="St. Kuetersberg";
    position[]={5829.0239,8626.9551,0};
   };
   class JoeBlow_Town
   {
    name="JoeBlow Town";
    position[]={5972.2227,4730.5669,0};
   };
   class Exorcism_MB
   {
    name="Exorcism MB";
    position[]={4999.8813,4884.6387,0};
   };
   class MAVA_Fredericksburg
   {
    name="MAVA Fredericksburg";
    position[]={4199.9795,6518.5483,0};
   };
   class Salvation_MC
   {
    name="Salvation MC";
    position[]={7100.3228,4339.3442,0};
   };
   class Bad_Rup
   {
    name="Bad Rup";
    position[]={8112.2554,5595.5435,0};
   };
   class Redemption_Airfield
   {
    name="Redemption Airfield";
    position[]={9657.6416,6853.8257,0};
   };
   class GhostTown
   {
    name="GhostTown";
    position[]={2402.2634,2568.1416,0};
   };
   class Rowdy_MB
   {
    name="Rowdy MB";
    position[]={3996.9585,9561.2725,0};
   };
 
  };
 };
};
class CfgWorldList
{
 class  Disciples_Isle{};
};
« Last Edit: 07 Dec 2003, 08:37:18 by monoloth69 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:config.cpp problems
« Reply #1 on: 07 Dec 2003, 17:55:27 »
I think the position[]={}; statements do not require decimal portions, just use whole numbers.

For example use:

position[]={7292,7133,0};

Instead of:

[]={7292.2607,7133.9062,0};

Also, I dont think the following statement require the .pbo in the paths.

icon="\Disciples_Isle.pbo\Disciples_Isle.paa";      worldName="\Disciples_Isle.pbo\Disciples_Isle.wrp";

Just use this instead:

icon="\Disciples_Isle\Disciples_Isle.paa";      worldName="\Disciples_Isle\Disciples_Isle.wrp";


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

monoloth69

  • Guest
Re:config.cpp problems
« Reply #2 on: 08 Dec 2003, 02:25:44 »
Thanks for the help bro, got it all figured out and working now.  A few weeks of beta testing then everyone can look for the new Disciples Isle as a public release.

Offline Gielovic

  • Contributing Member
  • **
Re:config.cpp problems
« Reply #3 on: 11 Jan 2004, 21:35:27 »
i got the same problem as you, but when i put in whole numbers, it doesn't work, maybe it's because i set the z (x,y,z) to the terrain height, i will try this as well, thanks planck;)