Home   Help Search Login Register  

Author Topic: Sound/Music and OFP  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
Sound/Music and OFP
« on: 14 Aug 2003, 00:36:34 »
Yes as u guessed this question is again about Msuic and SOund in an Intro... i swear the game holds a grudge against me  >:( Anyway lads my problem is with my description.ext file i think.. i get the error message saying :-

File "radio1" not found

I have had htis problem b4 but cant fin dhte soloution believe it or not  :'(

This is what the description.ext file looks like :-

Quote
class CfgSounds
{
sounds[] = { welcome, radio1, radio2 };

class welcome
{
name = "welcome";
sound[] = {"welcome.ogg", db-40, 1.0};
titles[] =
{
0, $STRM_welcome
};

class radio1
{
name = "radio1";
sound[] = {"radio1.ogg", db+40, 1.0};
titles[] =
{
0, $STRM_radio1
};

class radio2
{
name = "radio2";
sound[] = {"radio2.ogg", db+40, 1.0};
titles[] =
{
0, $STRM_radio2
};
};
};
};
};

class CfgMusic
{
tracks[]={ Ego_A_Go_Go };

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

thats what it looks like people.... just for the record the name of the file is the same as the filename displayed in this file.....

Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline rhysduk

  • Former Staff
  • ****
Re:Sound/Music and OFP
« Reply #1 on: 14 Aug 2003, 13:15:22 »
Could someone please tell me why i get this error

'Users\Pirhana\mission\mission1.Eden\description.ext.classCfgRadio': '{' encountered instead of '='

when i am using this peice of a description.ext file....


Quote
classCfgRadio
{
sounds[] = {radio1};
class radio1
{
name = "";
sound[] = {"radio1.ogg, db+0, 1.0};
title = $STRM_radio1;
};
};

I can see nopthign wrong with thisd atalll.... please help me with both posts if u may .. Thankx guys!

Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Navy_Seals

  • Guest
Re:Sound/Music and OFP
« Reply #2 on: 14 Aug 2003, 21:04:28 »
Hey there rhysduk. Well its been quiet a while now, since i did any of that stuff, but lets see if i remember anything lol.

Well for ur second question:
sound[] = {"radio1.ogg, db+0, 1.0};
The problem is, u r missing "
So it should look like this sound[] = {"radio1.ogg", db+0, 1.0};

And about ur first problem. Well, from top of the head, make sure that the file is in the right directory and check the description.ext again to make sure u didnt type to many of { } those curly braces.
Well thats all for now...... i guess :P
Cheers ;)

Offline rhysduk

  • Former Staff
  • ****
Re:Sound/Music and OFP
« Reply #3 on: 15 Aug 2003, 23:39:07 »
thx Navy_Seals - my mission now loads into  the editor but i still get the error of

File "radio1" not found

Any idea why this is happening - the sound is in the right folder and both names of the files match --

Any iodeas ppl
Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

peter

  • Guest
Re:Sound/Music and OFP
« Reply #4 on: 17 Aug 2003, 15:52:32 »
just copied a working description.ext - part for you:

class CfgSounds
   {
   sounds[] = {radio1};
   
   class radio1
      {
      name = "";
      sound[] = {"radio1.ogg", db+40, 1.0};
      titles[] =
         {
         0, $STRM_radio1
         };
      };


... and the right path (folder) for the sound-file would be:
Users\Pirhana\mission\mission1.Eden\sound\radio1.ogg

Offline rhysduk

  • Former Staff
  • ****
Re:Sound/Music and OFP
« Reply #5 on: 17 Aug 2003, 16:32:14 »
HI peter - good job - that example does work so i know my names are not clashing between files and .ext fiel - if ya know what i mean - so what is the difference between

class CfgSounds
   {
   sounds[] = {radio1};
   
   class radio1
      {
      name = "";
      sound[] = {"radio1.ogg", db+40, 1.0};
      titles[] =
         {
         0, $STRM_radio1
         };
      };
and this

class CfgSounds
{
sounds[] =    { welcome, radio1, radio2 };

class welcome
{
name = "";
sound[] = {"welcome.ogg", db-40, 1.0};
titles[] =
{
0, $STRM_welcome
};

class radio1
{
name = "";
sound[] = {"radio1.ogg", db+40, 1.0};
titles[] =
{
0, $STRM_radio1
};

class radio2
{
name = "";
sound[] = {"radio2.ogg", db+40, 1.0};
titles[] =
{
0, $STRM_radio2
};
};
};
};
};


Is it the spacing i need or is it unnecesary for me to have it ?

thx again !
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Sound/Music and OFP
« Reply #6 on: 17 Aug 2003, 17:18:04 »
your sound file is here isn't it C\Program Files\Codemasters\OperationFlashpoint\Users\yourname\missions\missionname\sound\

and it looks like you have too many braces at the end of your cfgsounds so your music probably won't play

class CfgSounds
{
sounds[] =    { welcome, radio1, radio2 };

class welcome
{
name = "";
sound[] = {"welcome.ogg", db-40, 1.0};
titles[] = {0, $STRM_welcome};
};

class radio1
{
name = "";
sound[] = {"radio1.ogg", db+40, 1.0};
titles[] = {0, $STRM_radio1};
};

class radio2
{
name = "";
sound[] = {"radio2.ogg", db+40, 1.0};
titles[] = {0, $STRM_radio2};
};

};


class CfgMusic
{
tracks[]={ Ego_A_Go_Go };

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

Offline rhysduk

  • Former Staff
  • ****
Re:Sound/Music and OFP
« Reply #7 on: 17 Aug 2003, 23:22:23 »
Hi BF, my music works fine - there is nothign wrong with that ... right i have my sounds working  now thanks guys.... ;D But now i have another problem regarding radio in our mission... is this the right place to ask or do i solve this and start another thread ?

 ???

Thx all for helping me oslve this !
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)