Home   Help Search Login Register  

Author Topic: Description.ext problem!  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Crunch

  • Members
  • *
Description.ext problem!
« on: 26 Jan 2004, 05:21:57 »
Hi!

   I have a mission that when I try to load it, the game shuts down and tells me of an error in the description file. Something about EndOfFile.

  Here'S how my *.ext looks like when I get the error message:

Code: [Select]


class CfgMusic
{
      Tracks[]={PeopleOfTheSun};

           class PeopleOfTheSun
           {
                 Name = "PeopleOfTheSun";
                 Sound[] = {\Music\PeopleOfTheSun.ogg,db+25, 1.0};
                 };
                 };
     

class CfgSounds
{
      Sounds[] = { Dealer01 };
     
           class Dealer01
           {
                 Name = "Dealer01";
                 Sound[] = {"Dealer01.ogg", db 50, 1.0};
                 Titles[] =
                 {
                 0, $STRM_Dealer01
                 };
                 };

           class AssHole01
           {
                 Name = "asshole1";
                 Sound[] = {"AssHole01.ogg", db-50, 1.0};
                 Titles[] =
                 {
                 0, $STRM_AssHole01
                 };
                 };
};


class CfgRadio
{
      Sounds[] = { DealerCheck01, DealerAnswer01, DealerCheck02, DealerAnswer02 };

           class DealerCheck01
           {
                 Name = "DealerCheck01";
                 Sound[] = {"DealerCheck01.ogg", db 50, 1.0};
                 Title = $STR_DealerCheck01;
                 };
                 };
                 
           class DealerAnswer01
           {
                 Name = "DealerAnswer01";
                 Sound[] = {"DealerAnswer01.ogg", db 50, 1.0};
                 Title = $STR_DealerAnswer01;
                 };
                 };
                 
           class DealerCheck02
           {
                 Name = "DealerCheck02";
                 Sound[] = {"DealerCheck02.ogg", db 50, 1.0};
                 Title = $STR_DealerCheck02;
                 };
                 };

      class DealerAnswer02
      {
      Name = "DealerAnswer02";
      Sound[] = {"DealerAnswer02.ogg", db 50, 1.0};
      Title = $STR_DealerAnswer02;
           };
                };


And if I take the two last ones, then all works fine.:

Code: [Select]


class CfgMusic
{
      Tracks[]={PeopleOfTheSun};

           class PeopleOfTheSun
           {
                 Name = "PeopleOfTheSun";
                 Sound[] = {\Music\PeopleOfTheSun.ogg,db+25, 1.0};
                 };
                 };
     

class CfgSounds
{
      Sounds[] = { Dealer01 };
     
           class Dealer01
           {
                 Name = "Dealer01";
                 Sound[] = {"Dealer01.ogg", db 50, 1.0};
                 Titles[] =
                 {
                 0, $STRM_Dealer01
                 };
                 };

           class AssHole01
           {
                 Name = "asshole1";
                 Sound[] = {"AssHole01.ogg", db-50, 1.0};
                 Titles[] =
                 {
                 0, $STRM_AssHole01
                 };
                 };
};


class CfgRadio
{
      Sounds[] = { DealerCheck01, DealerAnswer01, DealerCheck02, DealerAnswer02 };

           class DealerCheck01
           {
                 Name = "DealerCheck01";
                 Sound[] = {"DealerCheck01.ogg", db 50, 1.0};
                 Title = $STR_DealerCheck01;
                 };
                 };
                 
           class DealerAnswer01
           {
                 Name = "DealerAnswer01";
                 Sound[] = {"DealerAnswer01.ogg", db 50, 1.0};
                 Title = $STR_DealerAnswer01;
                 };
                 };

Anyone sees the mistake???
   
     Thanx in advance for the help!!

Back to the forest!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Description.ext problem!
« Reply #1 on: 26 Jan 2004, 05:40:01 »
Try removing the extra end brackets like so:


class CfgRadio
{
      Sounds[] = { DealerCheck01, DealerAnswer01, DealerCheck02, DealerAnswer02 };

          class DealerCheck01
          {
                Name = "DealerCheck01";
                Sound[] = {"DealerCheck01.ogg", db 50, 1.0};
                Title = $STR_DealerCheck01;
          };

               
          class DealerAnswer01
          {
                Name = "DealerAnswer01";
                Sound[] = {"DealerAnswer01.ogg", db 50, 1.0};
                Title = $STR_DealerAnswer01;
          };

               
          class DealerCheck02
          {
                Name = "DealerCheck02";
                Sound[] = {"DealerCheck02.ogg", db 50, 1.0};
                Title = $STR_DealerCheck02;
          };


          class DealerAnswer02
          {
                Name = "DealerAnswer02";
                Sound[] = {"DealerAnswer02.ogg", db 50, 1.0};
                Title = $STR_DealerAnswer02;
          };
};



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

Offline Captain Crunch

  • Members
  • *
Re:Description.ext problem!
« Reply #2 on: 26 Jan 2004, 07:36:02 »
You're the best Planck!!!


     Thanx!
Back to the forest!