Jump to content
Sign in to follow this  
lonesoldier

How do i add custom sound?

Recommended Posts

How do i add my own custom music to a mission? Because i have a song "sepultura:Chaos A.D." and i want to add it into my mission. how do i do that?

Share this post


Link to post
Share on other sites

In the mission folder (the mission your making under users/missions/mymission) make a file called description.ext, open it with note pad. Type

class CfgMusic

{

tracks[]={mymusic};

class mymusic

{

name = "mymusic";

sound[] = {\music\mymusic.ogg, db+10, 1.0};

};

};

where "mymusic.ogg" is the file name (best in *.ogg format). Make a folder called "music" in your particular mission folder and move the music file into it.

You should be able to select it as music now

Share this post


Link to post
Share on other sites

I've just worked out how to add music (as above), but now whenever I add a trigger (to that mission only) and go to the effects part it kicks me out and says something about having something missing (to do with Cfgtracks? maybe) from my .ext file. Otherwise mission works fine.

Can anyone help?

Share this post


Link to post
Share on other sites

What does it read in your .ext file? The problem can be for example one missing character or something like that.

Share this post


Link to post
Share on other sites

Actually think I sorted it, I'm using a program I downloaded (ofpdlc) but what that produces is different from was written... a line or two missing... think that's it.

Cheer! smile.gif

Share this post


Link to post
Share on other sites

Nope! sad.gif

I'm trying to add two tracks - Axiom and Judith and the program is giving me:

//Made with OP:DLC Music

class CfgMusic

{

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

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

};

This works okay (lets the music play in the game), but won't let me enter the effects panel in the editor... any idea what is wrong?

Share this post


Link to post
Share on other sites

Nope but just sorted it! smile.gif

It should be:

class CfgMusic

{

tracks[] = {Axiom, Judith};

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

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

};

Hope that might help ppl!

Share this post


Link to post
Share on other sites

Well about it having to be .ogg files well the song that i wanted to put in is an MP3 taht i downloaded off winmx.

So can i still add it?

Share this post


Link to post
Share on other sites

Ok i have done everything and i have selected the song from the effects panel in the trigger but whenever i enter the trigger the game exits with no errors coming up. the game just exits to the desktop.

Share this post


Link to post
Share on other sites

Has to be a .ogg file my friend! You can get a program called Wavesurfer (check Bloodmixers' tutorial at OFPEditingcenter.com for details) which will convert wavs and mp3s to .ogg. Bit of a pain but I only learnt how to do it today and have added two songs to my mission. Besides, you've done everything else now.

You have got a music folder and a description.ext file haven't you? I'm guessing so... if so all you need is .ogg instead of .wav.

BTW if you want a copy (afore mentioned site being bloody slow to post new missions ;o) mail me at fenris@pitchblack.co.uk and I'll send it - though it's 7.5 meg!!!

Fenris

Share this post


Link to post
Share on other sites

hey fernis i have got the WaveSurfer 1.1 and it isent 7mb on my comp its only about 1.4mb. I have opened the track on it and i can play the track with it but how do i convert it into an ogg? i have read the manual and its just a heap of bullsh*t. Please help!

Share this post


Link to post
Share on other sites

Okay soldier but you have to spell my name right! I meant my mission was 7 meg not Wavesurfer. You need the .ogg plugin (I'll try and mail it to you, but if not go back to the site where you got it from), then you just open the music you want and click save as and select file type .ogg. That's it!!

Share this post


Link to post
Share on other sites

Right, I've mailed it to you plus some more instructions. Drop me a line if you have any problems!

And it's Fenris (as in big-bad wolf demi-god) as opposed to fernis (small potted plant)!!! smile.gif

-------------

How the #### do I stop being a new member?

Share this post


Link to post
Share on other sites

Thanks very much FENRIS (is that right?) cant thank ya enuff dude. Cheers. Hey send me yer mission man! Also how will i download ya mission if its 7-8mb?? becoz hotmail only allows 1024k attachments. Anyway if ya can get it to me then send it man. Cheers biggrin.gif

Share this post


Link to post
Share on other sites

fernis isn't just a plant, its a kiln. (very hot thing where u burn stuff)

smile.gifsmile.gif

Share this post


Link to post
Share on other sites

Hey i dont have a wavesurfer folder. its just in my downloads directory and all it is is an .exe icon 'Wavesurfer-11-.exe' so where would i put the files u sent me?confused.gifconfused.gif

Share this post


Link to post
Share on other sites

If you've installed Wavesurfer you should have a folder in your hard drive (not in program files or anything) called .wavesurfer if you go into that there is a plugin folder, stick the files in there.

Glad to help, I've had to root around to learn everything so I know what a pain it is. As for the mission, I guess you'll have to wait for it to be put on the site so you can download it... I don't know a way around that hotmail thing.

Plant-Oven-Wolf-Boy!! smile.gif

Share this post


Link to post
Share on other sites

Ok i have done everything and the song wont play when i enter the trigger. But the songs filename is this: sepultura - refuse resist(1).ogg.mp3 it has mp3 at the end of it, howcome? no errors come up and the game dosent crash its just the music wont play.

Share this post


Link to post
Share on other sites

Sounds like the file has not been converted - it's still an mp3. When you've opened it in Wavesurfer, click on save as under the file menu then type in the name (just call it refus**e

sist to make it easier) then in the drop-down box below that select the correct file type .ogg. This will then take quite a long time to save as it converts it to .ogg. Put that file in yout music folder and make sure your description.ext file is correct.

I know Rob is having similar problems, but without intenting to be rude I think it is just to do with the conversion process. It took me a day to figure out what to do using the tutorials etc, but I got there and it works perfectly.

If you can sort out an email address that will let you have larger attachments then you could always send me the song and the .ext file and I'll see if I can figure it out.

JUst to make sure you've got the .ogg plugins in the right place - you need to uncompress them from the .zip I sent you which will give you a folder called ogg. Take the files OUT of that folder and drop them in the plugin folder of Wavesurfer.

Keep it up, it'll get fixed eventually! 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  

×