Jump to content
Sign in to follow this  
Redskin53

music files

Recommended Posts

Im haveing trouble finding the proper place to put my music to.What am i doing wrong here or where does it need to be placed? Thx for any help

// description.ext

// sets things up before mission is started.

// end all lines with ; to be safe.

// the text displayed when loading mission.

// this will only be shown if a player hosts.

//

onLoadMission = "[T W L] C & H The 5 Th F L A G";

// set respawn to "base" and respawn delay in seconds.

//

respawn = 3;

respawnDelay = 10;

// disable AI by default.

//

disabledAI = true;

// show GPS.

// default true in WG tourney missions.

//

showGPS = true;

class CfgMusic

{

tracks[]=

{

loser,loser1,ffs,defile

};

class loser

{

name = "loser";

sound[] = {\music\loser.ogg, db-10, 1.0};

titles[] ={};

};

class loser1

{

name = "loser1";

sound[] = {\music\loser1.ogg, db-3, 1.0};

titles[] ={};

};

class ffs

{

name = "ffs";

sound[] = {\music\ffs.ogg, db-1, 1.0};

titles[] ={};

};

class defile

{

name = "defile";

sound[] = {\music\defile.ogg, db-1, 1.0};

titles[] ={};

};

};

// end description.ext

// --tactician

Share this post


Link to post
Share on other sites

does knobody know how to do this??cmon all you ofp gurus,i cant get the music to play,just cant figure out where it needs placing crazy_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]// end description.ext

// --tactician

I don't know this stuff, but to me it looks like part of this is from Tactician right? Maybe you can message him, just search his name on the forum and send him a message with your question?

Share this post


Link to post
Share on other sites

did u make a folder called music and is it placed in the mission folder ?

Share this post


Link to post
Share on other sites

Ok you need a folder inside your missions folder named music.

There you put your music files that are of file type .ogg .

Then in your description.ext file you need to place the following (i used two music files in this mission myself so i think you will get it):

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

{

tracks[]={explosion, wealldie};

class explosion

{

name = "";

sound[] = {\music\explosion.ogg, db+40, 1.0};

};

class wealldie

{

name = "";

sound[] = {\music\wealldie.ogg, db+40, 1.0};

};

};

Then you call the music with for example a trigger or something else that has this in it: playmusic "music file name"

This is how i did it and this is how mine works. Hope i was of some help to you.

Later,

Warrior X

Share this post


Link to post
Share on other sites

thx guys for responding -heres the problem,i can get the music files into the dec. ext. but when i create the trigger and it goes off the music doesnt play,so perhaps im not putting the music file in the correct place,i tried moveing it around inside tacticians script and if i put it below of end of dec it ctd.if i move ir just below the respawn area i dont get any error message but the music files just dont play.i have working music in CTF's but for some reason a C&H is different for the scripting and where music files go. wink_o.gif

RED53

Share this post


Link to post
Share on other sites
Quote[/b] ]CTF's but for some reason a C&H is different for the scripting and where music files go.

No it´s not different at all.

Check out the ME FAQ on top of the page to get some hints on useage of music , sounds, etc. Make sure it fits the right file formats also. If you need a quickstart into OFP editing check out the cookbook on our page. I could be helpful as it explains most things you asked for.

Link in Signature.

Share this post


Link to post
Share on other sites

what im saying is its different within the script as to where the cfg music file goes(ctf vs C&H) they are different scripts and if you dont get it in the right place it doesnt work sad_o.gif

I cant seem to find tactician's address,so unless someone can come up with a solution, the music files are just worthless crazy_o.gif

RED53

Share this post


Link to post
Share on other sites

// description.ext

// sets things up before mission is started.

// end all lines with ; to be safe.

// the text displayed when loading mission.

// this will only be shown if a player hosts.

//

onLoadMission = "[T W L] C & H The 5 Th F L A G";

// set respawn to "base" and respawn delay in seconds.

//

respawn = 3;

respawnDelay = 10;

class CfgMusic

{

tracks[]=

{

loser,loser1,ffs,defile

};

class loser

{

name = "loser";

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

titles[] ={};

};

class loser1

{

name = "loser1";

sound[] = {\music\loser1.ogg, db+3, 1.0};

titles[] ={};

};

class ffs

{

name = "ffs";

sound[] = {\music\ffs.ogg, db+1, 1.0};

titles[] ={};

};

class defile

{

name = "defile";

sound[] = {\music\defile.ogg, db+1, 1.0};

titles[] ={};

};

};

// disable AI by default.

//

disabledAI = true;

// show GPS.

// default true in WG tourney missions.

//

showGPS = true;

// end description.ext

// --tactician

ok here is the whole script

RED53

Share this post


Link to post
Share on other sites

there are 13 scripts,however the only thing im concerned about is getting the music to play in the decricption ext which is the only place for the music to go.if you need a list of scripts here they are.

1.eastoutro,westoutro,return,vrs,showscore,showstat,loadammocrates,capture,cleanbody,hold,

reload,vechical,objectrespawn.

Hope this helps

RED53

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  

×