Jump to content
Sign in to follow this  
Snoopy22

*cries* Custom music...help...me auuugh

Recommended Posts

please...I cant take this anymore! banghead.gif its driving me nuts to the point that Im going crazy! NO COMMANDS ARE WORKING IN THE EDITOR or maybe Im not putting them in right.

What I wanna do is I have oblivion.ogg (music file) that I want in a mission I made.so you place the music in a music folder in the mission folder, -_- there are 3 mission folders though

C:\Program Files\Bohemia Interactive\ArmA\Missions

C:\Documents and Settings\luigi 22\My Documents\ArmA\Saved\missions

C:\Documents and Settings\luigi 22\My Documents\ArmA\UserSaved\missions

In your Description.ext that is located in:

C:\Program Files\Bohemia Interactive\ArmA\Missions

I put

class CfgMusic

{

tracks[]=

{

Oblivion

};

class oblivion

{

name = "oblivion";

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

};

};

I start up Arma, Put in a trigger with the command:

PlayMusic "oblivion.ogg" doesnt work

playmusic "oblivion" doesnt work

playmusic oblivion doesnt work

banghead.gif can u feel my pain? or am I just doing something very stupidly wrong

Share this post


Link to post
Share on other sites

I used it, ive been to like 10 different forms about this and it does not work! ive followed 2 tutorials it does not work! im going insane

Share this post


Link to post
Share on other sites

You might wanna try it with hyphens:

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

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

Share this post


Link to post
Share on other sites

Create a folder in your mission folder called "music" and put your Track's in it.

Here is an example for 3 tracks called: track01.ogg, track02.ogg, track03.ogg

Put this in your "description.ext"

<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, track02, track03};

class track01

{

name = "track01";

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

};

class track02

{

name = "track02";

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

};

class track03

{

name = "track03";

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

};

};

Ready smile_o.gif

Share this post


Link to post
Share on other sites

-___- I loooooooooooove you

it is fixed.....I am so happy yet pissed.....

Share this post


Link to post
Share on other sites

Well the problem was.....I didnt actually put a description.ext IN the mission folder............dont laugh

Share this post


Link to post
Share on other sites

wait wait! since all you experts are here! since I got this working...the music only runs for a bloody minute! how do u make it run the whole song?

Share this post


Link to post
Share on other sites

Well the music should run as long as the track goes...

If you have a Track with 1 min. it should play for 1 min.

Share this post


Link to post
Share on other sites

Ok, I'm lost. I'm learning how all this stuff works and for the most part have been able to understand the code and get it to work for what I want. Looking at other maps I found a map that plays music at the start, but when I look in the description.ext file I see no mention of a music file nor do I see a music folder when the pbo is unpacked. How is this possible?

Thanks for your help.

Share this post


Link to post
Share on other sites
Guest
Ok, I'm lost.  I'm learning how all this stuff works and for the most part have been able to understand the code and get it to work for what I want.  Looking at other maps I found a map that plays music at the start, but when I look in the description.ext file I see no mention of a music file nor do I see a music folder when the pbo is unpacked.  How is this possible?

Thanks for your help.

They add it to a trigger activation as a "trigger effect".

Just add a trigger to a mission, select it and look to lower left, there you see "effects". Under it you will find many available sounds and music files.

If you add your own custom music to the mission with the appropriate information in the description.ext your own sound/music will be listed there as well. thumbs-up.gif

Share this post


Link to post
Share on other sites

i have done all the above wrote the description.ext and converted my music to ogg and created a folder for it but i cant find the music in the triggers part or play the music using playMusic"nameOfTrack" can someone help me

Share this post


Link to post
Share on other sites

Not sure what your problem might be, you don't describe very much.

But here is what I have, that works with trigger (shows up under tracks), and can be played using playMusic command.

Music needs to be defined in description.ext, i.e:

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

class CfgMusic

{

tracks[]={};

class Customtune1

{

 name = "Customtune1";

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

};

class Customtune2

{

 name = "Customtune2";

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

};

};

It will show up in the trigger as Customtune1 and 2, and I use this command to play it:

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

4 fadeMusic 1; playMusic ["Customtune1",0]

That is, use 4 seconds to set full volume.

Then play music from 0 seconds into the song.

If it's still a problem, try using one of the builtin tracks. If this works it is the file itself that is the problem; wrong format, parameters, whatever -- can't help you with this (think I used constant bitrate though, not sure). I use the following for objectives completed jingle:

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

2 fadeMusic 0.5; playMusic ["ATrack23",85]

Found it in one of the default missions, which you should always examine.

This last one should work without anything being defined in description.ext.

Hope it is of any use.

Share this post


Link to post
Share on other sites

ahh im now going  mad banghead.gif i had it working then tried to add two more tracks but didnt work heres my code.

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

CfgMusic

{tracks[] =  {WelcomeToTheJungle,LiveandLetDie,getoutvoice};

class WelcomeToTheJungle

{

name = "WelcomeToTheJungle";

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

};

class  LiveandLetDie

{

name = "LiveandLetDie";

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

};

class getoutvoice

{

name = "getoutvoice";

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

};

};

Share this post


Link to post
Share on other sites

can someone please try and tell me where im going wrong with this the codes in the previous post

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  

×