config.cpp problem

WrpTool island creator utility

Moderators: Lone Wolf, Snake Man

monoloth
Recruit
Posts: 42
Joined: 2003-11-09 01:26:58

config.cpp problem

Post by monoloth »

ok, i have my config file done up, but now i get an error from OFP saying:
disciples_isleconfig.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.pboDiciples_Isle.paa";
worldName="Disciples_Isle.pboDisciples_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{};
};
Snake_Man

Re: config.cpp problem

Post by Snake_Man »

Use the WrpTool example config.cpp file(s), then slowly and bit by bit add there your own island stuff like names etc.

Saves you lot of time, trust me.
monoloth
Recruit
Posts: 42
Joined: 2003-11-09 01:26:58

Re: config.cpp problem

Post by monoloth »

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. No idea what the hell I had screwed up, but took your advice, copied your tested cpfig.cpp from the manual, added my names, center, runways, etc, and POW! All more gooder much bestest island in game with names.

Return to “WrpTool”