OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 20 May 2003, 18:34:36

Title: Music problem
Post by: punisher on 20 May 2003, 18:34:36
hi
i was playing around with my description.ext trying to get sounds to work but this will not.

Then i tryed to load the mission and OFP crashed, an error msg then came up: Some input after EndOfFile.

here is a part of my discription.ext:


class CfgMusic
{
  tracks[]=
  {
      mguns
  };
 
  class mguns
  {
      name = "mguns";
      sound[] = {\music\mguns.ogg, db+10, 1.0};
  };
};
  tracks[]=
  {
      rifle1
  };
 
  class rifle1
  {
      name = "rifle1";
      sound[] = {\music\rifle1.ogg, db+10, 1.0};
  };
};
  tracks[]=
  {
      mgun_burst2
  };
 
  class mgun_burst2
  {
      name = "mgburst2";
      sound[] = {\music\mgun_burst2.ogg, db+10, 1.0};
  };
};
  tracks[]=
  {
      mgun_burst3
  };
 
  class mgun_burst3
  {
      name = "mgburst3";
      sound[] = {\music\mgun_burst3.ogg, db+10, 1.0};
  };
};
  tracks[]=
  {
      mgun_burst4
  };
 
  class mgun_burst4
  {
      name = "mgburst4";
      sound[] = {\music\mgun_burst4.ogg, db+10, 1.0};
  };
};
  tracks[]=
  {
      mgun_burst1
  };
 
  class mgun_burst1
  {
      name = "mgburst";
      sound[] = {\music\mgun_burst1.ogg, db+10, 1.0};
  };
};
Title: Re:Music problem
Post by: marketleader on 20 May 2003, 20:17:55
hey mate,
i've never seen a description.ext with:
sound[] = {\music\mguns.ogg, db+10, 1.0};
i usually do it, if i were you:
sound[] = {mguns.ogg, db10,1.0}
try it!  :)

i get problems saying it cant find the file, though. :-\. You try it but i think you'll get the same problem. not sure  :'(.
good luck mate! ;)
Title: Re:Music problem
Post by: Killswitch on 20 May 2003, 20:46:05
Here's how your description.ext should look like:

class CfgMusic
{
   tracks[]=
   {
      mguns, rifle1, mgun_burst1, mgun_burst2, mgun_burst3, mgun_burst4
   };
 
   class mguns
   {
      name = "mguns";
      sound[] = {"\music\mguns.ogg", db+10, 1.0};
   };
 
   class rifle1
   {
      name = "rifle1";
      sound[] = {"\music\rifle1.ogg", db+10, 1.0};
   };

   class mgun_burst1
   {
      name = "mgburst";
      sound[] = {"\music\mgun_burst1.ogg", db+10, 1.0};
   };
 
   class mgun_burst2
   {
      name = "mgburst2";
      sound[] = {"\music\mgun_burst2.ogg", db+10, 1.0};
   };
 
   class mgun_burst3
   {
      name = "mgburst3";
      sound[] = {"\music\mgun_burst3.ogg", db+10, 1.0};
   };
 
   class mgun_burst4
   {
      name = "mgburst4";
      sound[] = {"\music\mgun_burst4.ogg", db+10, 1.0};
   };
 
};

...if I'm not mistaken. Good luck!

Title: Re:Music problem
Post by: punisher on 20 May 2003, 22:02:03
cheers it worked
 :D