Campbell 0 Posted November 22, 2004 how do i put my voice on radio messgesand play music? read tutes. is they a stickey that i can copy and paste files in? new @this help please. Need help with radiocommands that can be seen and hear them in game. and help with radio like call air support ect,med or evac. Share this post Link to post Share on other sites
MEDICUS 0 Posted November 23, 2004 Record them with a mic and include them as a soundfile in your mission. You can play them during your mission with this command: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname say "name-of-soundfile" MfG MEDICUS Share this post Link to post Share on other sites
theavonlady 2 Posted November 23, 2004 Learn by example. Take an existing OFP mission with voice and radio messages, UnPBO it and study its files. Start with a simple mission, like the original Steal The Car SP mission. It begins with a radio message and ends with a voice message and lip animation. Share this post Link to post Share on other sites
bigduke6 0 Posted November 23, 2004 Hi, I had the same problems about a month ago, and I found this tutorial very helpful. http://members.lycos.co.uk/bloodmixer/tutorial_sound.html? Ignore the bits at the start about the sound convertor programs (unless you actually need one, of course) but the stuff lower down I found very helpful. Hope it helps. Mart Share this post Link to post Share on other sites
Campbell 0 Posted November 23, 2004 what is unpob it and how do i use it? read tots dont understand. what description file do i need for music and radio sounds and where to put them. I new at this. read tot did every thing c&paste [says filename.ogg] Not found? Share this post Link to post Share on other sites
bigduke6 0 Posted November 25, 2004 Campbell, I'm assuming you have actually created the sound files you want to use, and saved them in .ogg format? If so.... I only add music to my missions, and to do it you need the following in the folder where your mission is saved when you save it from the mission editor (codemasters/operation flashpoint/users/yourusername/missions/yourmissionname) 1) A folder named music where you put all your ogg format music files 2) A file called description.ext. To do this open up notepad and type the following: class CfgMusic { Â Â tracks[]={file1}; Â Â class file1 Â Â { Â Â name = "file1"; Â Â sound[] = {\music\file1.ogg, db+10, 1.0}; Â Â }; Â Â }; Then click 'save as', type 'description.ext' and save it in the mission folder as above. Simple. Each file has to be defined in the Tracks[]=(file1,file2,file3,etc) section, separated by a comma, and each sound/track needs to have the its own section of code as in class file1 Â Â { Â Â name = "file1"; Â Â sound[] = {\music\file1.ogg, db+10, 1.0}; Â Â }; I tend to use the same names throughout, so just use the name of the sound file you created everywhere it says 'file1' above, and MAKE SURE the 'file1.ogg' file is actually in the music folder in the CORRECT mission folder. If you save a mission with a different name, the mission editor will create a new folder, and it will NOT have your music folders/files, etc in it. The db+10 sets the volume of the sound, and the 1.0 the pitch. Don't mess with the pitch, but be aware that if everything else is working fine but you still can't hear a sound/music, try upping the sound value (eg, db+40), or if in a noisy environment in game (I tend to write helicopter pilot missions so its quite noisy) I had to go into the actual game options (not in mission editor), and actually increase the music volume setting, and slightly decrease the other two. Note that I'm a fairly noobie to this myself, so there may be other/better ways of doing this, but it certainly works for me. If you still have problems, reply with the names of the music files you have created and want to use, and I'll write the definitions for you, so you can see how to do it. The same principles apply for radio and voices, so once you've cracked music, go back to the tutorial in my previous post and read it again, and it should all make sense. Mart 'Charlie don't surf!' Share this post Link to post Share on other sites
theavonlady 2 Posted November 25, 2004 what is unpob it and how do i use it? Search The FAQ for "unPBO". It's a small utility that unpacks OFP PBO files into their original folder structure. Quote[/b] ]read tots dont understand. what description file do i need for music and radio sounds and I new at this. read tot did every thing c&paste [says filename.ogg] Not found?where to put them. Description.ext is one of the files in a mission folder. UnPBO the Steal The Car mission for an example. Share this post Link to post Share on other sites
Campbell 0 Posted November 26, 2004 Thanks all for the help. Â Â Â Â Â Â ?? says file not found? Share this post Link to post Share on other sites
BoweryBaker 0 Posted November 27, 2004 the symbol before the word encountered you put in the wrong place. recheck the description file. Share this post Link to post Share on other sites
bigduke6 0 Posted November 28, 2004 I would guess you have missed out an '=' somewhere. Check the lines <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tracks[]={file1}; and for each file <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+10, 1.0}; for missing a '='. You say it says file not found? That's different to the screen print you supllied. Have you got an example of this message? Mart Share this post Link to post Share on other sites
BoweryBaker 0 Posted November 28, 2004 download a mission like one of mine and check the description file. I use sounds all the time. Share this post Link to post Share on other sites
Campbell 0 Posted November 28, 2004 class CfgMusic { tracks[]={file1}; class file1 { name = "file1"; sound[] = {\music\file1.ogg, db+10, 1.0}; }; }; This is the desfile its says file not found? And will the file show up in Music in trigger with rest of music? Help!!!!!!!!!!!!!!!! Share this post Link to post Share on other sites
theavonlady 2 Posted November 29, 2004 As posted in the other thread you mentioned this in: 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}; OK, gentlemen, once you become OFP sound configuration experts, I'd like to invite you to become more perplexed by visiting the AMORE section at The FAQ. AMORE is a method to place your files in a global OFP folder. That way you and others can reuse the audio files in multiple missions but just have a single copy of the sound/music file in AMORE's folder. I'll be putting out something new soon that separates a large amount of audio files from missions that use them. Just trying to confuse you. Share this post Link to post Share on other sites
bigduke6 0 Posted November 29, 2004 Campbell, I am confused. If you can't see the music file name in the music portion of the trigger, how are you getting the file not found message. If you haven't put it in the trigger, what is trying to find it to play it? What do you do, or what does the game do, that causes the file not found error to display? Also, I do have the first backslash in my des file, and mine seems to work okay. Mart Share this post Link to post Share on other sites
theavonlady 2 Posted November 29, 2004 Campbell,I am confused. If you can't see the music file name in the music portion of the trigger, how are you getting the file not found message. Because there's a track definition in description.ext. So the "not found" error only occurs when OFP attempts to actually play the file. But the definition, per se, is legitimate. Quote[/b] ]Also, I do have the first backslash in my des file, and mine seems to work okay. This is interesting. Where is your "music" folder? Within your mission's folder or in OFP's main folder? Share this post Link to post Share on other sites
Campbell 0 Posted November 29, 2004 Music folder is in my user mission. have decription in missions and oggfile in missions users.and will renameing song make it not work? do i need more files to make it work?Removed \ still says music file not found? what do ido to play music with trigger                                        class CfgMusic { tracks[]={file1}; class file1 { name = "file1"; sound[] = {\music\file1.ogg, db+10, 1.0}; }; }; I have removed the \ in music still the says the same. Iam stumped all iam trying to do is play 1 song what all folders and files do you need for music? HELP HElp  Share this post Link to post Share on other sites
Campbell 0 Posted November 30, 2004 class CfgMusic { tracks[]= { filename }; class filename { name = "filename"; sound[] = {\music\filename.ogg, db+0, 1.0}; }; } try this file says the same { insead of = What iam i doing wrong the file above is the one iam using. saved filename.ogg to music folder in my missons and Description.ext to users that missions? Share this post Link to post Share on other sites
theavonlady 2 Posted November 30, 2004 class CfgMusic { tracks[]= { filename }; class filename { name = "filename"; sound[] = {\music\filename.ogg, db+0, 1.0}; }; } try this file says the same { insead of = Â Â Â What iam i doing wrong the file above is the one iam using. saved filename.ogg to music folder in my missons and Description.ext to users that missions? Â Â Â Try this, copied from a working mission: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic { tracks[]={file1}; class file1 { name = "file1"; sound[] = {\music\file1.ogg, db+0, 1.0}; }; }; Are you missing that last line close bracket? Share this post Link to post Share on other sites
Blanco 0 Posted November 30, 2004 Why struggling with that #!@ description.ext when this little tool does all the hard and boring work for you? Just read the instructions and it's done in no time. Share this post Link to post Share on other sites
Ex-RoNiN 0 Posted November 30, 2004 Campbell, could you please enclose your code in code tags - your code is otherwise very hard to read Like Avon said, the last two lines ought to be <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> }; Share this post Link to post Share on other sites
Campbell 0 Posted November 30, 2004 How do i inclose code tag? Share this post Link to post Share on other sites
bigduke6 0 Posted December 2, 2004 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Because there's a track definition in description.ext. So the "not found" error only occurs when OFP attempts to actually play the file. But the definition, per se, is legitimate. That's what I was getting at. If Campbell was asking <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> And will the file show up in Music in trigger with rest of music? then I assumed that he hadn't actually allocated his new files to any trigger or waypoint because he couldn't see them in the list.....So if he can't see them in his list of available music, then he can't have set a track to play, which means OFP won't have looked for it. So, what does he do to get OFP to say 'file not found'? Is it when the mission plays (must be, but how can it be looking for a track if he hasn't selected it from the music list?) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> This is interesting. Where is your "music" folder? Within your mission's folder or in OFP's main folder? I have my music folder(s) within my mission folder(s) ....\OperationFlashpoint\Users\(username)\missions\(mission name) This I guess gets all pbo'd up when you save it to SP or MP. I play MP, and have had a couple of weird cases in the past where not all MP players (there's 2 of us) can hear the music. Sometimes, only the computer which created the server can hear the music, but then other 'music' in the same playing of the same mission does get heard by all players. Maybe it depends if it gets 'played' by a waypoint, trigger, etc. Are you still getting the same 'file not found' message Campbell, or have you cracked it? Mart Share this post Link to post Share on other sites
Campbell 0 Posted December 2, 2004 i tryed janes file get same thing ? class CfgMusic { tracks[]={file1}; class file1 { name = "file1"; sound[] = {\music\file1.ogg, db+0, 1.0}; }; }; Do ineed more files in mission all i have is music and description.ext? i am copy and pasted file?Lol I got it working D--As- me download the litte tools link i had to have a sound and a music floder now it plays song and shows i main music dir Thanks all Share this post Link to post Share on other sites