Jump to content
Sign in to follow this  
TheRedBaron

Music

Recommended Posts

ok I know that this has been answered a 1000 times but for some reason im not quite understanding it. Im trying to get my custom music to work. Ive allready converted it to an OGG file but am not sure what to do next. Ive tried creating a music folder and i put it in user\profile\missions\Mymissionfolder. In my music folder ive put the OGG file and created a discription.ext file. In the ext file i have this<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic

{

tracks[]=

{

metalica5

};

class metalica5

{

name = "metalica5";

sound[] = {\music\metalica5.ogg, db+0, 1.0};

};

}

then im not sure how to open it in the game. Can someone tell me if im messing up at any point through this and how to use the music in game? sad_o.gif

Share this post


Link to post
Share on other sites

It should be under triggers' Effect's Music menu,

and this should be under M&E.

Share this post


Link to post
Share on other sites

class CfgMusic

{

tracks[]=

{

file1

};

class file1

{

name = "file1";

sound[] = {\music\file1.ogg, db+0, 1.0};

};

}

i Did this is descrptionfile. Music dont show up in music in trigger? i have converted to ogg put in music folder my mission.saved file as Descrption.ext.file and put in users my mission folder? Says file not found. HELP crazy_o.gifcrazy_o.gifcrazy_o.gifcrazy_o.gifcrazy_o.gif

Share this post


Link to post
Share on other sites
sound[] = {\music\file1.ogg, db+0, 1.0};

Remove the first backslash ("\"). That makes OFP look from OFP's root folder downwards. So it should be:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sound[] = {music\file1.ogg, db+0, 1.0};

Share this post


Link to post
Share on other sites

User Missions is for completeld missions ready for download or discussions of that nature, this belongs in Mission Editing and Scripting, thus I'll move it there smile_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  

×