Jump to content
Sign in to follow this  
doc1011

Music?

Recommended Posts

I've searched everysite clean and read and re-read the music tutorial on music. I just don't know why it won't play! I put my music file in the mission folder under a folder called music. the file itself is called mymusic.ogg . Anyway...I put this text into a description.ext.txt file I can't seem to get rid of the .txt put somewhere i read that it's fine like that. Anyway this is the text.

class CfgMusic

{

tracks[]={mymusic};

class mymusic

{

name = "mymusic";

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

};

};

A couple of times a message came on the screen that it couldn't find the file but now nothing happens at all.

In the activation field i've put playMusic "mymusic"

But nothing I'm at a loss here I have no idea what's going on. please a lil help!

Share this post


Link to post
Share on other sites

Try it this way:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">sound[] = {music\mymusic.ogg, db+10, 1.0};

<span id='postcolor'>

Note that there is no leading backslash.

Share this post


Link to post
Share on other sites

Nope, that didn't work. But at least it brought up the error message again. Meaning that the .ext file is kind of working confused.gif Please keep um comin tho... any ideas are ones i'll try.

Share this post


Link to post
Share on other sites

Are you sure your OGG file is in a compatible format? The following must be true (from an old OFPEC Tutorial):

Encoding must be Constant Bit Rate

Bit Rate can vary. 56K seems to be good quality without taking alot of disk space.

Channels must be set to mono (at least for .ogg files used for sound. .ogg files used for music can be in stereo)

Frequency must be set to 44100 Hz

Preserve ID tags is checked

Volume Normalization is not checked (actually..not sure if this matters)

Share this post


Link to post
Share on other sites

Never seen that before, Thanks again..I'll give that a shot and see what happens

Share this post


Link to post
Share on other sites

Tell you the truth Frag, I looked around and i don't really know what most of those rules are talking about. I have proikosoft easy cd-da extractor and it dosen't give me many choices in creating .ogg Is there a better way to change mps's into .ogg?? or am i just missing the boat completly on this one?

Share this post


Link to post
Share on other sites

Jeez.....This is starting get me mad. I've done everything that the tutorials say. I have the right format, I dunno. Will it only play in .PBO format cause it just won't work in the editor. It brings up an error saying that it (can't find Music mymusic) i dunno...It urks me that everyone else seems to have no problem with this yet I've tried everything! sad.gif

Share this post


Link to post
Share on other sites

HEY! Alrrrrright! I firgured it out!...I was making the .EXT file in notebook and it dosn't work like that, I downloaded the script mission editor and made a real .EXT file and now it works! Thanks anyway Frag!

Share this post


Link to post
Share on other sites

hey fellow canadian Doc

im having the same problem

i got a prog, converted a mp3 to a ogg, its 48000 bitrate(so its smaller) 16bit, sounds great

its name is  forsaken.ogg

i made a folder called music in the mission folder name under my name in users, put forsaken.ogg in there

then in the missions name folder i put the description.ext file which has this exactly in it:

class CfgMusic

{

tracks[]={forsaken};

class forsaken

{

name = "forsaken";

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

};

};

same as you, only with the appropriate file name changes, also, someone said to chage the

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">sound[] = {music\forsaken.ogg, db+10, 1.0};

<span id='postcolor'>

to/from

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">sound[] = {\music\forsaken.ogg, db+10, 1.0};

<span id='postcolor'>

i did ot both, to no avail, and each time i saved it as a multiplayer not used the editor(though i tried editor and didnt work)

i really dont know why this wont work, it seems quite natural that is SHould!

BAHHHH!!!!!!

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (perrin693r @ Nov. 04 2002,20:54)</td></tr><tr><td id="QUOTE">i made a folder called music in the mission folder name under my name in users, put forsaken.ogg in there<span id='postcolor'>

Did you put it in the missions file you saved the mission as for example:

soundtest.intro

Also what ogg encoder are you using?

RED

Share this post


Link to post
Share on other sites

actually hey its all cool now!

my new code:

class CfgMusic

{

tracks[]={ FirstSong};

class FirstSong

{

name="My FirstSong";

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

};

};

and in the game i put a trigger that is activated by west(since im west) and in the effects i scroll through music and see My FirstSong, put that, load game and it works

thanks for your help thought

uhhhhh, i made a post in some other link of the step by step thing i did if theres anyone out there still confused how

in my searchs i found alot of pll asking the question then replying "oh i got it!" without a explanation, which pissed me off so i put a explanation up, heres the link to an that dont understand

http://www.flashpoint1985.com/cgi-bin....8;st=10

hope it helps

Share this post


Link to post
Share on other sites

Hey Perrin, sorry i wasn't able to help you out. It took me a lot of messing around to finally get it right but i finally did. I guess next time i make a post i should look at it more often. Anyway, your right about people not giving a complete explanation of what they did to make it work. So after saying that i'll make mine more clear.

It told me somewhere that making .ext files in notebook was fine, this wasn't true for me. I had to download the editor from OFPEC once i made the .ext file in that program all the scripts i'd been given worked just as everyone said they would.

Share this post


Link to post
Share on other sites

hmmmm the only thing i could see that makes you making a .ext file is that you DONT have File Extensions turned on

do you know what i mean? oh F**k i forget how to do it now its been to long

uhhhhhh OH YEAH

start menu ->Settings -> Folder options

in there pick the VIEW Tab up top, and UN-Check 'Hide File Entensions'

if you dont know already what this does is allow you to see the .whatevers of files

im Assuming your prob in making .ext files is that *IF*(i dont even know if you already have extensions turned off or not, im just guessing)you Dont have extensions turned on then when you make a description.ext file YOU see description.ext but Really its description.ect.txt cause windows hides the extension .txt

just a guess, you could try it

other then that i dont know why you unable to make .ext files, i can fine using notepad

what OS you using?

Share this post


Link to post
Share on other sites

pls dont spam the ME forums with questions asked numerous times.

Use the search function of the forum !

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Balschoiw @ Nov. 07 2002,20:18)</td></tr><tr><td id="QUOTE">pls dont spam the ME forums with questions asked numerous times.

Use the search function of the forum !<span id='postcolor'>

and whos that directed at? im not spamming so it better not be directed at me

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  

×