Home   Help Search Login Register  

Author Topic: config file help  (Read 1017 times)

0 Members and 1 Guest are viewing this topic.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
config file help
« on: 31 Mar 2005, 01:18:55 »
well, im trying to create my own custom callsigns, and I don't know how to exactly go about it.

1)I have made a config file but after inserting into my addon's folder it will not work
Code: [Select]
class CfgHQIdentities
{
   class chalk1
   {
      name="$STR_CFG_chalk1";
      speaker="Dan";
      pitch=1.10;
   };

   class chalk2
   {
      name="$STR_CFG_chalk2";
      speaker="Adam";
      pitch=.85;
   };

   class chalk3
   {
      name="$STR_CFG_chalk3";
      speaker="Dan";
      pitch=.85;
   };

   class chalk4
   {
      name="$STR_CFG_chalk4";
      speaker="Adam";
      pitch=1.10;
   };

   class victor51
   {
      name="$STR_CFG_victor51";
      speaker="Adam";
      pitch=.95;
   };

   class super61
   {
      name="$STR_CFG_super61";
      speaker="Adam";
      pitch=1.05;
   };

};

I have tried
Code: [Select]
chopper_callsign = [west, "super61"] ... chopper_callsign sideradio "Help! We're going down! Send a ResCap!"
but that has failed.

2)I have a feeling that the callsigns should not be under CfgHQIdentities, but I don't know the Config class for whatever it should be under.

Cheers,
Tyger
« Last Edit: 31 Mar 2005, 01:20:12 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:config file help
« Reply #1 on: 31 Mar 2005, 01:38:25 »
Hmmmm........try cfgWorlds.

I'll have a quick shufti.

Edit:.....Yes.....here we go.

Code: [Select]
class GroupNameList
   {
      letters[]={"Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","Kilo"};
   };

   class GroupNames
   {

      class Alpha
      {
         name="$STR_CFG_GRPNAMES_ALPHA";
         image="a.paa";
      };

      class Bravo
      {
         name="$STR_CFG_GRPNAMES_BRAVO";
         image="b.paa";
      };

      class Charlie
      {
         name="$STR_CFG_GRPNAMES_CHARLIE";
         image="c.paa";
      };

      class Delta
      {
         name="$STR_CFG_GRPNAMES_DELTA";
         image="d.paa";
      };

      class Echo
      {
         name="$STR_CFG_GRPNAMES_ECHO";
         image="e.paa";
      };

      class Foxtrot
      {
         name="$STR_CFG_GRPNAMES_FOXTROT";
         image="f.paa";
      };

      class Golf
      {
         name="$STR_CFG_GRPNAMES_GOLF";
         image="g.paa";
      };

      class Hotel
      {
         name="$STR_CFG_GRPNAMES_HOTEL";
         image="h.paa";
      };

      class November
      {
         name="$STR_CFG_GRPNAMES_NOVEMBER";
         image="a.paa";
      };

      class Kilo
      {
         name="$STR_CFG_GRPNAMES_KILO";
         image="a.paa";
      };

      class Yankee
      {
         name="$STR_CFG_GRPNAMES_YANKEE";
         image="a.paa";
      };

      class Zulu
      {
         name="$STR_CFG_GRPNAMES_ZULU";
         image="a.paa";
      };

      class Two
      {
         name="$STR_CFG_GRPNAMES_TWO";
         image="a.paa";
      };

      class Three
      {
         name="$STR_CFG_GRPNAMES_THREE";
         image="a.paa";
      };

      class Buffalo
      {
         name="$STR_CFG_GRPNAMES_BUFFALO";
         image="a.paa";
      };

      class Guardian
      {
         name="$STR_CFG_GRPNAMES_GUARDIAN";
         image="a.paa";
      };

      class Convoy
      {
         name="$STR_CFG_GRPNAMES_CONVOY";
         image="a.paa";
      };

      class Fox
      {
         name="$STR_CFG_GRPNAMES_FOX";
         image="a.paa";
      };
   };



Planck
« Last Edit: 31 Mar 2005, 01:40:39 by Planck »
I know a little about a lot, and a lot about a little.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:config file help
« Reply #2 on: 31 Mar 2005, 01:55:05 »
Ah, brilliant! Thanks for the help mate.

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08