Jump to content
Sign in to follow this  
STS_SolidSnake

How to add custom music in mission?

Recommended Posts

Hi i need some help how do i add custom music to my mission`? i have this mp3 music i want to add, anyone help? thx xmas.gif

Share this post


Link to post
Share on other sites

Conver it to .ogg Then I think youp ut it into your mission folder, and use triggers to activate it?

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 (DestroyerX @ Dec. 23 2002,18:59)</td></tr><tr><td id="QUOTE">Search the forum for this. It has been asked many times. smile.gif<span id='postcolor'>

Sorry,

I always liked Gray Fox (Deepthroat) 's tips tounge.gif

Share this post


Link to post
Share on other sites

Too much of job but never mind, here we go:

(Every thing that is written or download here is on your own risk, so if you'er not sure or don't know what you are doing so get-off or else any dammage that will cost is not my problem and NOT on my responsibility)

First of all Download OggDrop Program

From this links:

Win32 OggDrop

XP OggDrop

(In case that you don't use Microsoft Windows, You can choose your opreation system download version here)

Then you have to make your MP3 File to Wav file

on this format "PCM 44.100 kHz, 16 Bit, Stereo" or less

and then you can drop it to the OggDrop Program and than

you got an ogg file!

Now i can show you one way how to make MP3 to Wav file

but you need an old winamp because on the last version (Winamp 3.0 Full) i didn't find this option!

so you will have to download the old one here:

Winamp 2.81 Full

and follow this topic!

After you Downloaded and Installed the winamp 2.81

you will have to follow the next steps carefully!!!

1) Press The Right Mouse button on the program (Winamp)

2) Choose "Visualization"

3) Then choose "Select Plug-In..."

4) Now you got a list with options! at the left side of the

screen choose "Output"

5) Then on the right side of the screen choose "Nullsoft Disk Writer plug-in v2.0 (x86)  [out_disk.dll]"

6) Now there are 3 buttons on this window, Choose "Configure"

7) Okey, now you opened a new window, at this window

you will find a button and "C:\" is writen there, this is the place that the winamp will place your wav file, choose wherever you want to!

8) Now there is a Checkbox (a Place to Place "V") it's written there "Convert to Format:"; Make Sure it's marked (that there is a "V" on it)

There is also "Output file mode:"; make sure it's "Auto (recommended)". and if there is a "V" on "Enabled" or "Override thread priorty (hack)" so remove the "V"

9) There is a button that nothing is written there except "..." Press it and keep reading the next step

10) Now there is a Format Label the Default is "PCM"

keep it that way!

11) Now in the attributes label, choose "44.100 kHz, 16 Bit, Stereo  172 kb/sec"

and Press "OK" and again "OK"

Now Press "Close"

Now every MP3 file that you will play it will recored it Fast

to the chosen place (Folder/Directory)

and now you got a wav file, make ogg file from the wav file

and keep following the next coming steps!

Place the Music File (ogg file) to your:

"Flashpoint Folder\Users\(Your Username)\(Your Mission)"

And Create new file with the Notepad (File name "description.ext")

and write there the following code:

</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[]={song1};

             class song1

             {

             name = "";

             sound[] = {\(File Name).ogg, db+30, 1.0};

             };

};<span id='postcolor'>

"db+30, 1.0" this are the volume and pitch sounds config

this time you don't need to use it but you must write this!

Now Save as the file to "description.ext" and place it to your

Mission Folder [Don't forget when you save as, choose Save As Type - All Files(*.*)]

and save the full name "description.ext"

after you placed this file at your mission folder,

Run Operation Flashpoint and open your mission!

Add a triger whenever you want with what action you want it to be, and type in the "On Activation" this (PlayMusic "Song1")

and it will play it! Good Luck!  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  

×