Home   Help Search Login Register  

Author Topic: Help with music!! Crash!  (Read 479 times)

0 Members and 1 Guest are viewing this topic.

KiwiRanger

  • Guest
Help with music!! Crash!
« on: 03 Aug 2003, 07:14:56 »
I need help!! I have inserted some new music into my map and every time it goes to play the game crashes!! Please help!! this is my description.ext

class CfgMusic
{
  tracks[]=
  {
      blackhawk,
  };
 
  class blackhawk
  {
      name = "blackhawk takeoff";
      sound[] = {\music\blackhawk.ogg, db+0, 1.0};
  };
};

----*
But when i play the game and the trigger goes off, The game crashes to desktop without any error given! Please help.. And I have also made sure the the music is converted to .ogg and at the absolute right specs..

deaddog

  • Guest
Re:Help with music!! Crash!
« Reply #1 on: 03 Aug 2003, 14:55:30 »
Quote
 tracks[]=
  {
      blackhawk,
  };

Try removing that comma at the end of the word blackhawk.

Quote
     name = "blackhawk takeoff";

I'm not sure if spaces are allowed in the name.  Try using an underscore instead.

KiwiRanger

  • Guest
Re:Help with music!! Crash!
« Reply #2 on: 04 Aug 2003, 06:47:22 »
Thanks for you help but  >:( it's still crashing!!! hmm, do I need to be patched??

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Help with music!! Crash!
« Reply #3 on: 04 Aug 2003, 11:49:37 »
;--------------------
class CfgMusic
{
tracks[]={blackhawk,};
class blackhawk{name = "blackhawk takeoff";sound[] = {\music\blackhawk.ogg, db+0, 1.0};};
};
;--------------------
class CfgMusic
{
tracks[]={resident};
class resident{name = "resident";sound[] = {\Music\resident.ogg, db+10, 1.0};};
};
;--------------------

The above is yours and the below is from one of my missions. This is a tricky one indeed. :-\ If you have taken out that comma and you have no spaces in the name... Have you checked the name of you music folder is it's "music" or "Music"? But then it would tell that the music isn't found.
Is that your whole description.ext file?

Hawkins

DarkCell

  • Guest
Re:Help with music!! Crash!
« Reply #4 on: 04 Aug 2003, 23:11:14 »
ok this is what you have to do:

1:First make sure the music file is an OGG file!

2: go to your mission folder C:\Program Files\Codemasters\OperationFlashpoint\Users\username\missions\missionname
and make a new Folder called music in your mission Folder
(Right mouse click and then NEW and then click folder)

(Try to name your music file Blackhawk without space)

3:In the music Folder you put your music in! (music has to be an OGG file ofcourse ;) )

4 then make the script for the music in your mission Folder
 ( NOT IN THE MUSIC FOLDER!!)

right mouse click,then NEW then TEXT DOCUMENT
then type this in the document:

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


then click save as, Save as type: All Files

name it to  description.ext

Then you music should work!

If this doesn't wotk then I realy dunno what your doing wrong...try other music maybe?  :-\

Good Luck

Greetz Darkie!  ;)