Home   Help Search Login Register  

Author Topic: Config Prob  (Read 3437 times)

0 Members and 2 Guests are viewing this topic.

simoneldridge

  • Guest
Config Prob
« on: 20 Mar 2004, 13:08:51 »
Hi guys
look im goin outta my head here!!

could somebody take a look at this config and tell me whats wrong with it.
I will explain first....

Im using wrptool to create an island. For now i have called this island "mayfield".I am using the example configs supplied and changing the relevant details.In my mayfield file i have mayfield.wrp , config.cpp (as follows) , anims folder and mayfield.paa. It just isnt working. But when i call my island the same as the example configs it works fine. :help:


here is the config i am using

please help if you can and if there are obvious mistake could someone please explain them too me so i can stop bothering you wonderful people.


class CfgPatches {
   class mayfield {
      units[] = {};
      weapons[] = {};
      worlds[] = {mayfield};
      requiredVersion = 1.91;
   };
};

class CfgWorlds {
   class DefaultWorld {};
   class Intro : DefaultWorld {};
   class mayfield : Intro {
      access = 3;
      description = "mayfield";
      icon = "\mayfield\mayfield.paa";
      worldName = "mayfield";
      cutscenes[] = {"..\addons\wrptool_12km_anims\intro"};
   };
};

class CfgWorldList {
   class mayfield {};
};



many thanks

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config Prob
« Reply #1 on: 20 Mar 2004, 14:39:51 »
worldName = "mayfield";

Should perhaps be :

worldName="\mayfield\mayfield.wrp";

presuming your .wrp file is called mayfield.wrp.


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

Leone

  • Guest
Re:Config Prob
« Reply #2 on: 20 Mar 2004, 14:42:47 »
Probably your pbo is called Mayfield? In which case the line:

worldName = "mayfield";

should be:

worldName = "\mayfield\mayfield.wrp";

Here is an example config:

Quote
#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 OPGWC_IraqiAirbase
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"OPGWC_IraqiAirbase"};
      requiredVersion = 1.30;
   };
};
class CfgVehicles{};
class CfgSurfaces{};
class CfgEnvSounds{};
class CfgWorlds
{
   class DefaultWorld {};
   class OPGWC_IraqiAirbase: DefaultWorld
   {
      access=3;
      description="Iraqi Airbase";
      icon="\OPGWC_IraqiAirbase\OPGWCLogo.paa";
      worldName="\OPGWC_IraqiAirbase\OPGWC_IraqiAirbase.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[]={2735,2964,0};
      class Sounds
      {
         sounds[]={};
      };
      class Animation
      {
         vehicles[]={};
      };
   };
};
class CfgWorldList
{
   class OPGWC_IraqiAirbase{};
};

Leone

  • Guest
Re:Config Prob
« Reply #3 on: 20 Mar 2004, 14:43:30 »
lol...snap!  ;D

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config Prob
« Reply #4 on: 20 Mar 2004, 15:46:08 »
 :P
I know a little about a lot, and a lot about a little.

simoneldridge

  • Guest
Re:Config Prob
« Reply #5 on: 20 Mar 2004, 23:07:31 »
Guys thanks so much for your help but its still not workin

let me show you this...when i call my name "wrp_12km" as the example config in wrptool and place it in the ofp worlds file with this config...


class CfgPatches {
   class wrptool_12km {
      units[] = {};
      weapons[] = {};
      worlds[] = {wrptool_12km};
      requiredVersion = 1.91;
   };
};

class CfgWorlds {
   class DefaultWorld {};
   class Intro : DefaultWorld {};
   class wrptool_12km : Intro {
      access = 3;
      description = "WrpTool 12km";
      icon = "\wrptool_12km\_wrptool_12km.paa";
      worldName = "wrptool_12km.wrp";
      cutscenes[] = {"..\addons\wrptool_12km_anims\intro"};
   };
};

class CfgWorldList {
   class wrptool_12km {};
};


then it works fine..
but when i put my island called "mayfield" with this config.....

class CfgPatches {
   class mayfield {
      units[] = {};
      weapons[] = {};
      worlds[] = {mayfield};
      requiredVersion = 1.91;
   };
};

class CfgWorlds {
   class DefaultWorld {};
   class Intro : DefaultWorld {};
   class mayfield : Intro {
      access = 3;
      description = "mayfield";
      icon = "\mayfield\mayfield.paa";
      worldName = "\mayfield\mayfield.wrp";
      cutscenes[] = {"..\addons\wrptool_12km_anims\intro"};
   };
};

class CfgWorldList {
   class mayfield {};
};


nothing happens

aaaaarrrrrrrrgh :gunman:

it must be so simple

 

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config Prob
« Reply #6 on: 20 Mar 2004, 23:21:11 »
OK........Have a try with this one:

Code: [Select]
#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 mayfield
   {
      units[] = {};
      weapons[] = {};
      worlds[] = {"mayfield"};
      requiredVersion = 1.30;
   };
};
class CfgVehicles{};
class CfgSurfaces
{
   class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
   class DefaultWorld {};
   class  mayfield: DefaultWorld
   {
      access=3;
      description="mayfield";
      icon="\mayfield\mayfield.paa";
      worldName="\mayfield\mayfield.wrp";
      cutscenes[] = {"..\addons\wrptool_12km_anims\intro"};
      class Sounds
      {
         sounds[]={};
      };
      class Animation
      {
         vehicles[]={};
      };
      class Names
      {
      };
   };
};
class CfgWorldList
{
   class  mayfield{};
};


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

simoneldridge

  • Guest
Re:Config Prob
« Reply #7 on: 21 Mar 2004, 01:59:40 »
nah dude
i copied and pasted into config
still nothin

i really dont wanna be a pain in the ass but i dont know who else to ask :-[

when i use the example config all u need to do is put the wrp and the config into the worlds folder.It works!!

i just dont get whats different other than the world name????

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config Prob
« Reply #8 on: 21 Mar 2004, 03:06:28 »
Lets see if I have everything clear.

Your island PBO file is called .....mayfield.pbo
Your .wrp file is called ...............mayfield.wrp
The displayed name in the island selection list is .........mayfield.
Your icon for display in the island selection list is called ......mayfield.paa, and is located in your island PBO, so the path is ...........\mayfield\mayfield.paa.

I'm not sure about the cutscenes declaration though, doubt it would cause it not to work.......lose it anyway.

If all else fails, send me a copy of your island and I will see if I can get it ingame.

mcnicoll7@yahoo.com



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

Leone

  • Guest
Re:Config Prob
« Reply #9 on: 21 Mar 2004, 04:06:11 »
The problem is you are putting it into the worlds folder. You need to put the wrp, paa and cpp file into a pbo, then use it in the addons folder. Dont use the worlds folder  ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config Prob
« Reply #10 on: 21 Mar 2004, 05:24:28 »
I did wonder what you meant by 'worlds file'...........Leone is right.

Pack your files into a PBO and place the PBO in the Addons folder.


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

simoneldridge

  • Guest
Re:Config Prob
« Reply #11 on: 21 Mar 2004, 12:03:44 »
guys Thanx so much
It has worked now i did have it pbo ed before but not with the "\mayfield\mayfield.wrp" changed.

just to explain the reason why i was putting it in the worlds folder was because in the wrptool manual it says that for quick and easy editing you can just put the wrp and config files in the worlds directory and it will still work...meaning you dont have to keep pboing everytime
With the example configs it works like this and like i said when i change my worldname to wrp_12km it works too...

anyway im going on
so you solved my problem  thanks once again


ps.. what do you guys think about me setting up a website puely for island's and island editing??? ;D

Leone

  • Guest
Re:Config Prob
« Reply #12 on: 21 Mar 2004, 12:24:24 »
Sounds like an excellent idea  ;D I'd be happy to contribute...been hoping someone would do this for a long time.

simoneldridge

  • Guest
Re:Config Prob
« Reply #13 on: 21 Mar 2004, 12:52:21 »
cool!!  good to know someones behind me on that one

i will give ya the heads up on that one when i can start working on it ;D


Jakerod

  • Guest
Re:Config Prob
« Reply #14 on: 21 Mar 2004, 16:14:38 »
Hey you should put unfinished editable islands on the site too in its own section. I have tons of them that are about half finished that im not planning on finishing. That way people who do not have as much experience can start an island with some stuff already on it. And islands that would otherwise go unfinished would be finished. So if you want them just PM me or Email me (Jakerod80@hotmail.com)
« Last Edit: 21 Mar 2004, 16:15:45 by Jakerod »