OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Johnnyorks 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
-
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
-
cheers mate, ill do that when i start proper on me map
-
sorry sound dumb now, but how to i get to edit the config.cpp???
-
open it up in notepad ;)
-
so where do i find the config.cpp? all i have is basrah.wrp but no config thingy?
-
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.
// 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
-
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
-
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
-
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;
-
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
-
aahhhh knew it would be something as simple as that hehe. cheers mate, ill get back to work on it soon.