Home   Help Search Login Register  

Author Topic: Config help - probably a noob question  (Read 1406 times)

0 Members and 1 Guest are viewing this topic.

megatron

  • Guest
Config help - probably a noob question
« on: 12 Aug 2004, 17:58:02 »
I've got a custom island made with Wrptool and its fine, i can use it in OFP, but i've tried to add ils details for the runway and i pbo the wrp and the new config it no longer appears in the laptop when i open the misson editor, i think its something ive done wrong with the brackets or layout.

Heres the 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"};

ilsposition[]={4573.3, 8262.1,0};//north end
ilsDirection[] ={0,0.08,1};

ilsTaxiIn[]=
{
   4694.0, 7928.1,
   4606.5, 7881.5,
   4610.3, 7973.4,
   4601.3, 8076.1,

   4576.0, 8179.0,
   4576.0, 7719.4,
   4576.0, 7684.5,
   4576.0, 7665.1,

};
ilsTaxiOff[]=
{
   4573.3, 8262.1,
   
   4576.0, 7984.0,
   4576.0, 7972.0,

   4644.7, 7929.5,
   4702.2, 7624.7,
   4717.9, 7926.2,
};

class CfgWorldList {
   class wrptool_12km {};
   }:
};


Can someone tell me what ive done wrong with this?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config help - probably a noob question
« Reply #1 on: 12 Aug 2004, 22:41:11 »
I think you are correct, it is another curly bracket problem.

Try this:

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"};

ilsposition[]={4573.3, 8262.1,0};//north end
ilsDirection[] ={0,0.08,1};

ilsTaxiIn[]=
{
   4694.0, 7928.1,
   4606.5, 7881.5,
   4610.3, 7973.4,
   4601.3, 8076.1,

   4576.0, 8179.0,
   4576.0, 7719.4,
   4576.0, 7684.5,
   4576.0, 7665.1,

};
ilsTaxiOff[]=
{
   4573.3, 8262.1,
   
   4576.0, 7984.0,
   4576.0, 7972.0,

   4644.7, 7929.5,
   4702.2, 7624.7,
   4717.9, 7926.2,
};
};
};

class CfgWorldList {
  class wrptool_12km {};
  }:

Note: additions in red

Planck
« Last Edit: 12 Aug 2004, 22:46:05 by Planck »
I know a little about a lot, and a lot about a little.

megatron

  • Guest
Re:Config help - probably a noob question
« Reply #2 on: 13 Aug 2004, 16:44:28 »
thanks, but it still dosent appear, i tried moving the last section  around

class CfgWorldList {
   class wrptool_12km {};
   }:
};

because i saw it in a different place in a few configs.
Its annoying because  i make a new pbo with the default config that comes with wrptool it shows up again, and i cant see anything obviously wrong with it.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Config help - probably a noob question
« Reply #3 on: 13 Aug 2004, 20:32:24 »
Did you try the altered config I posted?

Just copy paste it into a new Notepad document.

I deliberately left the last '};' off the class cfgWorldList section.

You do not require it, it should look thus:

class CfgWorldList {
  class wrptool_12km {};
  }:


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

megatron

  • Guest
Re:Config help - probably a noob question
« Reply #4 on: 13 Aug 2004, 21:43:43 »
thanks, got it working now, i only copy and pasted the bit that was wrong before, but this time i deleted the old one and replaced it, now it works.  The taxing needs a little work at the moment, the pilot taxis right out of the airport and into a building :D