OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NightJay0044 on 10 Mar 2009, 17:54:16

Title: sound file not found again
Post by: NightJay0044 on 10 Mar 2009, 17:54:16
Hi all, lol I'm back with the sound issue again. I copied and pasted my code as usual.

I try and play the file in the editor from a script. It still says the file is not found..here my description ext;

Quote
class CfgMusic
{
   tracks[]={};

   class Request
   {
      name = "Request";
      sound[] = {\music\Request.ogg, db+40, 1.0};
   };
class Music2
   {
      name = "Music2";
      sound[] = {\music\Music2.ogg, db+40, 1.0};
   };
};



class CfgSounds
{
    sounds[] = { S1 };
    class
    {
        name = "Request";
        sound[] = { "\Sound\request.ogg", db+20, 1.0 };
        titles[] = { 0, $STRC_request };
    };
      class roger
    {
        name = "roger";
        sound[] = { "\Sound\roger.ogg", db+20, 1.0 };
        titles[] = { 0, $STRC_roger };
    };
        class goodluck
    {
        name = "goodluck";
        sound[] = { "\Sound\goodluck.ogg", db+20, 1.0 };
        titles[] = { 0, $STRC_goodluck };
    };
};

I tried it with both music and sound because the sound is from a movie.  So it will work either way.

I'm not sure why it's not finding it, why can't I just get it to work... :dunno:
Title: Re: sound file not found again
Post by: Ext3rmin4tor on 10 Mar 2009, 19:08:00
You didn't put the " in the music paths.