Jump to content
Sign in to follow this  
Joe_1911

How do you add music in missions?

Recommended Posts

but i'm completly lost on how to add music to OFP missions. Every tutorial i've read has confused me. Can someone jsut explain exactly how to get a song NOT included with OFP to play when you set off a trigger?

Thx

-Joe

Share this post


Link to post
Share on other sites

You take your song file and convert it into .ogg format.

Create a folder called "music" in the folder where your mission is.

Copy your .ogg song into that new folder called "music".

Create a file called description.ext and put the following code into it:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgMusic

{

tracks[]={musicfilename};

class musicfilename

{

name = "";

sound[] = {\music\filename.ogg, db+30, 1.0};

};

};

<span id='postcolor'>

For multiple music files, you do it like this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgMusic

{

tracks[]={musicfilename1; filename2; filename3};

<span id='postcolor'>

Then you do the </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class musicfilename1<span id='postcolor'> bit for each music file smile.gif

Share this post


Link to post
Share on other sites

I should add that I had huge problems with large music files. Try files that are under 1 meg or play for about 2:30 and work your way from there... not sure why this occured as most tell me that there is no limit.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (map1976 @ July 15 2002,08:19)</td></tr><tr><td id="QUOTE">I should add that I had huge problems with large music files. Try files that are under 1 meg or play for about 2:30 and work your way from there... not sure why this occured as most tell me that there is no limit.<span id='postcolor'>

You might have used the wrong file properties.

Make sure its 64bit, 44 khz and signed.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

Make sure its 64bit, 44 khz and signed.

<span id='postcolor'>

What do you mean by "signed"?

(and thanks for the tip)

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (map1976 @ July 16 2002,06:31)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

Make sure its 64bit, 44 khz and signed.

<span id='postcolor'>

What do you mean by "signed"?

(and thanks for the tip)<span id='postcolor'>

I don't know sad.gif

Its an option in GoldWave, you can save it as "signed". It sounds good (and works too) so I use it smile.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×