Snoopy22 0 Posted March 1, 2007 please...I cant take this anymore! 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 can u feel my pain? or am I just doing something very stupidly wrong Share this post Link to post Share on other sites
Balschoiw 0 Posted March 1, 2007 How about using the ? Share this post Link to post Share on other sites
Snoopy22 0 Posted March 1, 2007 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
charonos 0 Posted March 1, 2007 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
snkman 351 Posted March 1, 2007 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 Share this post Link to post Share on other sites
Snoopy22 0 Posted March 1, 2007 -___- I loooooooooooove you it is fixed.....I am so happy yet pissed..... Share this post Link to post Share on other sites
mattxr 9 Posted March 1, 2007 -___- I loooooooooooove youit is fixed.....I am so happy yet pissed..... Why didn't you just look in the BIS Biki.. It explains all with examples .. just search Description. http://community.bistudio.com/wiki/Description.ext Share this post Link to post Share on other sites
Snoopy22 0 Posted March 1, 2007 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
Snoopy22 0 Posted March 1, 2007 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
snkman 351 Posted March 1, 2007 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
MrWho 0 Posted March 29, 2007 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 Posted March 29, 2007 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. Share this post Link to post Share on other sites
deanosbeano 0 Posted March 29, 2007 with a trigger check fasads guide he put it on wiki other day , its a very good tute/ q&a . fasads tute on wiki Share this post Link to post Share on other sites
-SPA-LynxEye 0 Posted April 1, 2007 Maybe this command is useful to you. http://community.bistudio.com/wiki/createSoundSource Share this post Link to post Share on other sites
nastros 0 Posted April 17, 2007 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
nastros 0 Posted April 17, 2007 again can someone help me with this Share this post Link to post Share on other sites
CarlGustaffa 4 Posted April 17, 2007 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
nastros 0 Posted April 17, 2007 thanks ill give it a try Share this post Link to post Share on other sites
nastros 0 Posted April 18, 2007 ahh im now going  mad 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
nastros 0 Posted April 26, 2007 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
CarlGustaffa 4 Posted April 28, 2007 ""? My weirdest reply yet Share this post Link to post Share on other sites