OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: asmodeus on 07 Feb 2003, 13:14:34

Title: Using both CfgMusic and Cfgsounds
Post by: asmodeus on 07 Feb 2003, 13:14:34
Hello!  In my beta mission, Lebrija Landing, I'm  having a problem with the description.ext (I believe)   ::)

Here's the situation:

I'm using Rubblemakers' great BigAmmoExplosion script which requires a "Sound" folder and an entry in the description.ext..  I'm also using custom music which uses a "Music" folder and an entry in the description.ext..  Here it is:

Code: [Select]
onloadintro="Custom music by Dj ElecTroSyN (Asmodeus)"
onLoadMission="Lebrija Landing"

class CfgSounds
{
  sounds[] = { "booby" };
  class booby
    {
   name = "";
   sound[] = {"booby.ogg", db-20, 1.0};
   titles[] = { };

class CfgMusic
{
      tracks[]={music};
 
      class music
      {
            name = "";
            sound[] = {\Music\DOS.ogg,db+30, 1.0};
      };
 class music1
      {
            name = "";
            sound[] = {\music\02FF.ogg, db+30,  
1.0};

      };
 
};

Now... The Thing is... With the above description.ext, the sound effect "booby" works, but the music does not when I execute it using:  playmusic "music"  (the file is named DOS.ogg)   However... If I switch the order in the above code where the music is first, it works and the "booby" sound does not....

What am I missing here?     ???

Any help would be great!   ;D

Thnx

Asmo
Title: Re:Using both CfgMusic and Cfgsounds
Post by: LCD on 07 Feb 2003, 13:30:47
ur prob is da modef00kin };s (again  ::))

try dat - and tel me if it works ;D

Code: [Select]
onloadintro="Custom music by Dj ElecTroSyN (Asmodeus)";
onLoadMission="Lebrija Landing";

class CfgSounds
{
  sounds[] = { "booby" };
  class booby
    {
   name = "";
   sound[] = {"booby.ogg", db-20, 1.0};
   titles[] = { };
    };
};

class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "";
            sound[] = {\Music\DOS.ogg,db+30, 1.0};
      };
class music1
      {
            name = "";
            sound[] = {\music\02FF.ogg, db+30, 1.0};

      };

};  

should work ;)

LCD OUT
Title: Re:Using both CfgMusic and Cfgsounds
Post by: asmodeus on 07 Feb 2003, 13:33:22
Those damn };s  

 :o  

I'm gonna make a mission where you hunt guys with those painted on their back.   ::)  

Trying it now...   ;D

Title: Re:Using both CfgMusic and Cfgsounds
Post by: asmodeus on 07 Feb 2003, 13:38:16
Thanks a lot LCD!!

Did the trick like usual!   ;D

I'm going to release this new version soon!  

Thanks again!   :D

Asmo