Jump to content
Sign in to follow this  
Omen101

Need help adding custom music

Recommended Posts

Hey, ive made my custom song into a description.ext file but im stumped on where to put it and how to activate it and make it play ingame sad_o.gif ive tried searching for this but couldnt find anything. Thx in advance sad_o.gif

Share this post


Link to post
Share on other sites

Okay your description.ext should have a code look's like that:

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

{

tracks[]={track01};

class track01

{

name = "track01";

sound[] = {\music\track01.ogg, db+8, 1.0};

};

};

Now in this example in your mission folder you've got a folder called "music" in this folder is the sound file called "track01.ogg"

Now only thing you have to do in game is to create a trigger, select the side which should activate the trigger, set it to activated once or multiple then go to Effects, Music and select the music "track01".

Or you can use it in a script with: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player say "track01"

Share this post


Link to post
Share on other sites

Erm...

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

{

tracks[]={track01};

class track01

{

name = "track01";

sound[] = {\music\track01.ogg, db+8, 1.0};

};

};

Make sure you create a subfolder "music" in your mission folder and place the music called "track01.ogg" there.

Share this post


Link to post
Share on other sites

Thanks man.

But it doesn't work?

I can put my track as a trigger, but it won't play?

There's no sound.

Share this post


Link to post
Share on other sites

Then there is probably something wrong with the music file itself.

It has to be 128kbps, 16 bit, stereo, Encoding - Constant Bitrate, ogg-file.

For regular sounds like voice samples, event sounds or such use Frequency 44100 hz, 16 bit, mono, Bit Rate in ranges from 80 -

112kbps, ogg-file, constant Bitrate and embedd them with class CfgSounds in the description.ext.

You can download out a really comprehensive Tutorial on embedding sound and music in your mission here from OFPEC

That should answer all of your questions.

Share this post


Link to post
Share on other sites

Thanks you. I tried alot of times, but I finally got it to work.

By the way, that bug in your sig is annoying me

smile_o.gif

At first, I thought it was something on my screen, trying to take it of biggrin_o.gif

Thanks again man.

Share this post


Link to post
Share on other sites
Quote[/b] ]By the way, that bug in your sig is annoying me

It´s not a bug, it´s a feature biggrin_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]By the way, that bug in your sig is annoying me

It´s not a bug, it´s a feature biggrin_o.gif

Lol!

Thats what i say to anyone who moans about Arma!

Share this post


Link to post
Share on other sites
Guest
Quote[/b] ]
Quote[/b] ]By the way, that bug in your sig is annoying me

It´s not a bug, it´s a feature  biggrin_o.gif

Well, this feature of you foced me to buy a new screen.

Arma features made me buy a new PC already......from now on I will ignore feautes, they tend to make me poor.

Quote[/b] ]

You can download out a really comprehensive Tutorial on embedding sound and music in your mission here from OFPEC

Thanks very much for this link.

This is a very nice tut explaining what there is to know about getting sounds in your mission

thumbs-up.gif

[edit]

Fixed my quote mess sad_o.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  

×