Home   Help Search Login Register  

Author Topic: City Names  (Read 1705 times)

0 Members and 1 Guest are viewing this topic.

Johnnyorks

  • Guest
City Names
« on: 03 Apr 2004, 12:19:48 »
Hi, can anyone please tell me how to put names onto maps? and im trying to put in a palm tree or two but everytime i try it wrpedit says it cant find them so i just have the normal flashpoint buildings and a mosque in the middle of a desert with no kind of plant life :(

ps.when i finaly learn how to put in names, will i be able to put them in arabic? cheers

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:City Names
« Reply #1 on: 03 Apr 2004, 14:04:15 »
As for the place names it is a section in your config.cpp.....thus:

class CfgWorlds
{
   class DefaultWorld {};
   class  yourislandname: DefaultWorld
   {
                         .etc
                         .etc
                         .etc
        class Names
        {
         class Yourfirstplacename
         {
            name="Yourfirstplacename";
            position[]={7000,6000,100};
         };

         class Yoursecondplacename
         {
            name="Yoursecondplacename";
            position[]={5000,6000,100};
          };
                         .etc
                         .etc
                         .etc
      };

The numbers of course need to be the coordinates where you wish the names located on the map.
The above numbers are only an example.....as are the names.


Planck
« Last Edit: 03 Apr 2004, 14:07:25 by Planck »
I know a little about a lot, and a lot about a little.

Johnnyorks

  • Guest
Re:City Names
« Reply #2 on: 03 Apr 2004, 14:44:47 »
cheers mate, ill do that when i start proper on me map

Johnnyorks

  • Guest
Re:City Names
« Reply #3 on: 28 Apr 2004, 19:22:44 »
sorry sound dumb now, but how to i get to edit the config.cpp???

j-man

  • Guest
Re:City Names
« Reply #4 on: 28 Apr 2004, 22:55:18 »
open it up in notepad ;)

Johnnyorks

  • Guest
Re:City Names
« Reply #5 on: 02 May 2004, 00:57:59 »
so where do i find the config.cpp?  all i have is basrah.wrp but no config thingy?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:City Names
« Reply #6 on: 02 May 2004, 01:07:36 »
Here you go.....try this one.

It presumes your wrp file is basrah.wrp and your PBO (when it is actually made) is called Basrah.pbo.


Code: [Select]
// Basrah

#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

class CfgPatches
{
   class Basrah
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"basrah"};
      requiredVersion = 1.30;
   };
};
class CfgVehicles{};
class CfgSurfaces
{
   class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
   class DefaultWorld {};
   class  basrah: DefaultWorld
   {
      access=3;
      description="Basrah";
      icon="_training.paa";
      worldName="\Basrah\basrah.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[]={0,0,0};
      ilsDirection[]={0,0.080000,1};
      ilsTaxiIn[]={};
      ilsTaxiOff[]={};
      centerPosition[]={9735,3964,0};
      class Sounds
      {
         sounds[]={};
      };
      class Animation
      {
         vehicles[]={};
      };
      class Names
      {
      };
   };
};
class CfgWorldList
{
   class  basrah{};
};



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

Johnnyorks

  • Guest
Re:City Names
« Reply #7 on: 02 May 2004, 11:08:29 »
thanks Planck.  iv tried it then pbo'd everything to try in flashpoint but when i go to start up flashpoint i get this msg:

basrah\config.cpp/cfgworlds/basrah/names/: 'A' encounted instead of '{'

whats this mean? sorry for being a pain.
johnny

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:City Names
« Reply #8 on: 02 May 2004, 15:21:22 »
What did you add to the Names section of the config.cpp?

The config I posted had an empty Names section....thus:

class Names
      {
      };

So whatever you added is causing the error.


Post the bit you added.


Planck
« Last Edit: 02 May 2004, 15:26:23 by Planck »
I know a little about a lot, and a lot about a little.

Johnnyorks

  • Guest
Re:City Names
« Reply #9 on: 03 May 2004, 20:30:48 »
class Names
{
class Al Ashshar
{
name="Al Ashshar";
position[]={8265.8,6053};
};
class Basrah International Airport
{
name="Basrah International Airport";
position[]={7338.4,6453.8};
};
         
};
};
   };
};
class CfgWorldList
{
   class  Basrah;

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:City Names
« Reply #10 on: 03 May 2004, 21:05:33 »
You are not allowed spaces in class names.

class Al Ashshar

should be either:

class AlAshshar or class Al_Ashshar

class Basrah International Airport

should be either:

class BasrahInternationalAirport or class Basra_International_Airport

Take your pick

and

The same goes for any other class names
Change to the ones you prefer and it should work ok.


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

Johnnyorks

  • Guest
Re:City Names
« Reply #11 on: 05 May 2004, 17:12:53 »
aahhhh knew it would be something as simple as that hehe.  cheers mate, ill get back to work on it soon.