OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 27 Sep 2003, 20:17:57

Title: Why won't this d... .ogg file work?
Post by: Robinhansen on 27 Sep 2003, 20:17:57
I've followed the instructions about how to put music in the missions - but it simply wont work...what am I doing wrong ???

};
class CfgMusic
{
tracks[]={valkyries};
class valkyries
{
name = "valkyries";
sound[] = {"\music\valkyries.ogg", db+15, 1.0};
};
Title: Re:Why won't this d... .ogg file work?
Post by: Deepsmeg on 27 Sep 2003, 20:33:44
Here's one from one of my missions, which works

class CfgMusic // Overall class name
{
   tracks[]={cossack.ogg}; // declaring the music file's name
   class cossack // the actual declaration
   {
      name = "Cossack Patrol";
      sound[] = {\music\cossack.ogg, db+30, 1.0}; // declares which ogg
   };
};

Notice the difference in the tracks line
Title: Re:Why won't this d... .ogg file work?
Post by: Robinhansen on 27 Sep 2003, 21:46:12
Well it does'nt work in my mission >:(

class CfgMusic
{
  tracks[]={valkyries.ogg};  
  class valkyries
  {
      name = "Ride Of The Valkyrie";
      sound[] = {\music\valkyries.ogg, db+30, 1.0};
  };
};

Do I miss somthing or is all I have to write... ???

Title: Re:Why won't this d... .ogg file work?
Post by: Kaliyuga on 27 Sep 2003, 21:49:08
class CfgMusic
{
  tracks[]= {war};

  class war {
     name = "war";
     sound[] = {\music\war.ogg, db+0, 1.0};
  };
};


in your trigger/script/etc  

Playmusic war
Title: Re:Why won't this d... .ogg file work?
Post by: Robinhansen on 27 Sep 2003, 22:07:44
Does'nt work either ??? I'm loosing my mind...
Title: Re:Why won't this d... .ogg file work?
Post by: KJAM on 27 Sep 2003, 22:23:02
have you made sure that it is a DESCRIPTION.EXT  file instead of something like DESCRIPTION.EXT.TXT

and
Quote
class CfgMusic
{
  tracks[]={valkyries.ogg};  
  class valkyries
  {
      name = "Ride Of The Valkyrie";
      sound[] = {\music\valkyries.ogg, db+30, 1.0};
  };
};

is the .ogg file you are trying to use in your mission folder in another folder called "music" (without Quotes) and is the .ogg file actually called valkyries.ogg?

it may be one of the things i stated above thats the reason it isnt workng, but also place a trigger down and click on EFFECTS (to the left of the ok button) then click on the music list and look for Ride Of The Valkyrie
Title: Re:Why won't this d... .ogg file work?
Post by: Deepsmeg on 29 Sep 2003, 12:13:58
and ofp seems a bit picky at times about sample rates and stuff
it likes 16 bit files, iirc
Title: Re:Why won't this d... .ogg file work?
Post by: Robinhansen on 05 Oct 2003, 17:46:14
IT WORKS!!!!! ;D ;D Cheers m8...just what I needed... ;D ;D