OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: MGeo on 13 Mar 2004, 09:16:31
-
I have WRPEdit. Since i am a newbie to this i don't know how to view any map in the game. Can you tell me how to view a map that i have made?
-
Once you have your island made all you need is a config.cpp for it, then you pbo them together and put the resulting pbo file in your addons folder.
So, you have:
yourisland.wrp
config.cpp
Put both files in an appropriately named folder by themselves, then.......
Use stuffPBO to pbo them.
Put the pbo file in Addons.
Planck
-
Ok. But how to create that config.cpp ?
-
Tell me 3 things and I can cook one up for you pronto.
1./ The name you want to see in the Editor island selection list.
2./ The name you will call your PBO file.
3./ The name of your WRP file.
Planck
-
Ok.
A example will be good for me.
OK here:
1./ The name you want to see in the Editor island selection list.
Testmap
2./ The name you will call your PBO file.
Testmap
3./ The name of your WRP file.
Test.wrp
Well the map is a little test i am doing.
Thnx.
-
Ok here you go:
#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 Testmap
{
units[] = {};
weapons[] = {};
worlds[] = {"Test"};
requiredVersion = 1.30;
};
};
class CfgVehicles{};
class CfgSurfaces
{
class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
class DefaultWorld {};
class Test: DefaultWorld
{
access=3;
description="Testmap";
icon="_training.paa";
worldName="\Testmap\Test.wrp";
plateFormat="TS$ - #####";
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 Test{};
};
Hope this helps you a bit.
Planck
-
OK thnx man. But i am alittle confused.
Damn i didn't had to add all the same names. :-\
*Crashing my head into a wood*
Can you add the names like this.
Sorry for that.
1./ The name you want to see in the Editor island selection list.
Nameone
2./ The name you will call your PBO file.
Nametwo
3./ The name of your WRP file.
Namethree.
:-[
Sry again.
-
The name you wish to appear in the Editor list goes in this part:
description="Testmap";
The PBO name goes in the following parts:
class CfgPatches
{
class Testmap
and:
worldName="\Testmap\Test.wrp";
The WRP file name also goes in:
worldName="\Testmap\Test.wrp";
and also in:
class CfgPatches
{
class Testmap
{
units[] = {};
weapons[] = {};
worlds[] = {"Test"};
and:
class CfgWorldList
{
class Test{};
};
Planck
-
Thnx man. I really needed that.