Home   Help Search Login Register  

Author Topic: Importing a wrp map into game (Im a newbie heh)  (Read 1112 times)

0 Members and 3 Guests are viewing this topic.

Nitrox

  • Guest
Importing a wrp map into game (Im a newbie heh)
« on: 22 Apr 2003, 14:44:27 »
Hi first of all I would like to say thanks for a great site.

I love ofp and recently I started to make some small missions and I loved it. Now I figured I'd make a map of my own so I DL wrpedit (awesome prog btw :) ) and made a small island with a base a small town some roads and a bridge its not finished yet but I wanted to load it into the game to look for glitches and stuff. First I made a catalog called myworld in it I put my map myworld.wrp and a myworld.cpp (I copied a template I found here on the forum and changed it to load my map instead.

Then I packed it with PBO tool and put my myworld.pbo in ofp\addon. I hoped it would work but I kinda knew it wouldn't heh (something always go wrong when I try to do stuff like this).

Anyway what did I miss? Do I need to include all objects that I used and stuff like that in my directory before compressing it to a .pbo file? (I used stuff from eden and the bridge from 0.pbo).

Can someone please tell me what files I need to have in my directory before compressing it since I don't really have a clue heh.

Also if someone knows how to make smooth hills in wrpedit other than to use the flat option I would apriciate it since my hills become pointy (I use the flat option to make smoother hills but it is really timeconsuming)

Also my forrests wont fit to ground (I use only the forrest types recommended in the wrpedit manual that says they can fit to ground but if its a steep slope they wont and I have to edit manually).

Once again thx a bunch for a great site :)

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #1 on: 22 Apr 2003, 17:05:01 »
go to look in this board...there is one topic that is solved just under this....and i bet a loads of other topics around on how to get it into the game.

Garcia

Nitrox

  • Guest
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #2 on: 22 Apr 2003, 17:11:10 »
I already used the searchfunction and I found another post on this. They say they have the .wrp and the .cpp file and it seems to work for them.. I didnt understand if those were the only 2 required files or if he was just having problem with his .cpp file and maby he had all other files in order... Anyway been up for 43 hours in a row now maby I missed something Ill go get some sleep and go trough it all again later. thx anyway

Leone

  • Guest
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #3 on: 22 Apr 2003, 17:34:02 »
lol..get some sleep, try it again, and if it still doesn't work post up your config  ;D

Nitrox

  • Guest
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #4 on: 30 Apr 2003, 12:51:43 »
Ok its me again I still cant get my map into the game Im sure I forgot something. I used the config writer to write a .cpp then I put that and my .wrp in a folder and compressed it with pbo tool to a .pbo file which I put in my of\Addons but it still doesnt work.

I used only the stuff from the map eden (textures and objects) so far but Im gonna add a bridge from 0.pbo later. Will I have to put something of this in my configfile?

Here is a copy of my configfile:

// Devils Eye
// 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
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"Devilseye"};
      requiredVersion =1.30;
   };
};
class CfgVehicles{};
class CfgSurfaces
{
   class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
   class DefaultWorld {};
   class  Devilseye: DefaultWorld
   {
      access=3;
      description="Devils Eye";
      icon="_training.paa";
      worldName="\\Devilseye.wrp";
      plateFormat="ML$-#####";
      plateLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
      startTime="7:30";
      startDate="1/1/00";
      startWeather=0;
      startFog=0;
      forecastWeather=0;
      forecastFog=0;
      ilsPosition[]={0,0};
      ilsDirection[]={0,0.08,1};
      ilsTaxiIn[]={};
      ilsTaxiOff[]={};
      seagullPos[]={0,0,0};
      centerPosition[]={0,0,0};
      class Sounds
      {
         sounds[]={};
      };
      class Animation
      {
         vehicles[]={};
      };
      class Names
      {

      };
   };
};
class CfgWorldList
{
   class  Devilseye{};
};

Can any of you .cpp gurus take a look at it?

My map is called Devilseye. wrp and is located in a folder called Devilseye

Thx in advance

Leone

  • Guest
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #5 on: 30 Apr 2003, 13:06:38 »
      worldName="\\Devilseye.wrp";


You need to put your WRP file in a pbo along with the config .cpp. Then change the line above to:

      worldName="\NameOfPBO\Devilseye.wrp";

Nitrox

  • Guest
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #6 on: 30 Apr 2003, 13:20:33 »
ok I changed it to worldName="\Devil.pbo\Devilseye.wrp";

but it still doesnt load in my mission editor :(

is it really enough to have just the .wrp and the .cpp file in the directory I compress with pbo tool or shall i have config.bin and a paa file in there aswell? (I saw something about this in an old thread).

Thx for the help :)

Oh heh ok should be \Devil\Devilseye.wrp  now it works :):):) and my roads looks funny doh heh maby I should have checked ingame before creating all roads lol.. anyway thx a bunch for the help :)

If anyone would like a copy of my map let me know it has some cities and some army camps aswell as some forests and other stuff.. Its not completly done yet but if you like something to play with you might wanna check it out :)
« Last Edit: 30 Apr 2003, 13:52:46 by Nitrox »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Importing a wrp map into game (Im a newbie heh)
« Reply #7 on: 30 Apr 2003, 23:03:23 »
There is another little mistake in your config.cpp.

This Part:

class CfgPatches
{
   class
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"Devilseye"};
      requiredVersion =1.30;


Should read:

class CfgPatches
{
   class Devilseye
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"Devilseye"};
      requiredVersion =1.30;




« Last Edit: 30 Apr 2003, 23:04:59 by Planck »
I know a little about a lot, and a lot about a little.