Home   Help Search Login Register  

Author Topic: Using both CfgMusic and Cfgsounds  (Read 641 times)

0 Members and 1 Guest are viewing this topic.

asmodeus

  • Guest
Using both CfgMusic and Cfgsounds
« 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
« Last Edit: 07 Feb 2003, 13:15:32 by Asmodeus »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Using both CfgMusic and Cfgsounds
« Reply #1 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

asmodeus

  • Guest
Re:Using both CfgMusic and Cfgsounds
« Reply #2 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


asmodeus

  • Guest
Re:Using both CfgMusic and Cfgsounds
« Reply #3 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