Home   Help Search Login Register  

Author Topic: "Config: '}' instead of '{'" error  (Read 1049 times)

0 Members and 1 Guest are viewing this topic.

Offline Arctic

  • Members
  • *
  • In Utero
"Config: '}' instead of '{'" error
« on: 22 Sep 2002, 18:14:22 »
I think I have figured out what was wrong with my custom music.

In this line of my description.ext:
sound[] = {\Music\Tool.ogg,db+30, 1.0};

I had " " marks around \Music and the ebd of 1.0. In another mission with WORKING custom music, I didn't have the quotation marks there so I removed them.

The next problem, however, is I included custom sounds (voice overs) and I get this "Config: '}' instead of '{'" error message. I can't figure out which } mark is wrong!

Here is my description.ext file in its entirety:

Code: [Select]
class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "Tool";
            sound[] = {\Music\Tool.ogg,db+30, 1.0};
            titles[] =
      };
      };
     
class CfgSounds
{
      sounds[] = {voicesample, voicesample2};

      class voicesample
      {
           name = "voicesample";
           sound[] = {"A10Engage1.ogg", db-20, 1.0};
           titles[] =  
           {
0, $STRM_Voice
{;
};
};
     class voicesample2
     {
           name = "voicesample2";
           sound[] = {"A10cvyDEAD.ogg", db-20, 1.0};
           titles[] =
           {
0, $STRM_Voice2
{;
};
};

Can someone help!

Offline KTottE

  • Former Staff
  • ****
Re:"Config: '}' instead of '{'" error
« Reply #1 on: 22 Sep 2002, 18:32:52 »
You have different numbers of { and }, and you have some that are turned the wrong way

{; when it should be };
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline Arctic

  • Members
  • *
  • In Utero
Re:"Config: '}' instead of '{'" error
« Reply #2 on: 22 Sep 2002, 21:12:35 »
 >:(  >:(  >:(  >:(

This thing is really starting to annoy me!  :gunman: *shooting holes in the darn description.ext file*

I keep moving around the brackets to no avail!
 :help:

This has to be my fifth topic on sound for OFP. At least this time I think I am headed in a good direction!

BTW, I tried using description.ext files from other missions as a guide, but they aren't helping.

Gameer_77

  • Guest
Re:"Config: '}' instead of '{'" error
« Reply #3 on: 22 Sep 2002, 22:35:17 »
Try this:

Code: [Select]
class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "Tool";
            sound[] = {\Music\Tool.ogg,db+30, 1.0};
      };
     };
   
class CfgSounds
{
      sounds[] = {voicesample, voicesample2};

      class voicesample
      {
          name = "voicesample";
          sound[] = {"A10Engage1.ogg", db-20, 1.0};
          titles[] =  
          {
0, $STRM_Voice
  };
};
    class voicesample2
    {
          name = "voicesample2";
          sound[] = {"A10cvyDEAD.ogg", db-20, 1.0};
          titles[] =
          {
0, $STRM_Voice2
  };
};
};


 8)PEACE

Offline Arctic

  • Members
  • *
  • In Utero
Re:"Config: '}' instead of '{'" error
« Reply #4 on: 22 Sep 2002, 23:03:24 »
that worked! yay! Now if I can only get the stupid music to work!