Jump to content
Sign in to follow this  
Steaksauce1337

What am I doing wrong? Adding music

Recommended Posts

I've been at this for hours and still cannot get to work. I've read many tutorials and forums but still no dice...

How do I add custom music to a mission?

I have a description.ext with

class CfgMusic

{

tracks[]={};

class Music1

{

name = "Music1";

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

};

class Music2

{

name = "Music2";

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

};

I also have a folder titled "music" inside the mission folder. With 2 .ogg files titled music1.ogg and music2.ogg

Nothing shows up in a trigger under effects.

I'm sure this is a repost, but I've tried everything...

Share this post


Link to post
Share on other sites
class CfgMusic
{
 tracks[]={};
 class Music1
 {
   name = "Music1";
   sound[] = {\music\Music1.ogg, db+40, 1.0};
 };
 class Music2
 {
   name = "Music2";
   sound[] = {\music\Music2.ogg, db+40, 1.0};
 };
[color=Red]};[/color]

Share this post


Link to post
Share on other sites

Still a no go...

Copied exactly from here, and tried the one from the manual as well.

When setting a trigger and I go to effects none of the music shows up in the list

Share this post


Link to post
Share on other sites

This is what i use

class CfgMusic

{

tracks[] = {music1};

class music1

{

name = "music1";

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

titles[] = {0, ""};

};

};

Share this post


Link to post
Share on other sites

Still doesn't work. I've read the new manual out and searched several places... but it still doesnt work.. :(

I have screenshots here of my folder and files so maybe someone can see if I'm doing something wrong there....

http://www.flickr.com/photos/8064024@N06/5353896618/

http://www.flickr.com/photos/8064024@N06/5353888762/

Share this post


Link to post
Share on other sites

Hi,

try this:

[font="Fixedsys"]class CfgMusic {
tracks[]={};

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

class Music2 {
	name = "Music2";
	sound[] = {"music\Music2.ogg",db+40,1.0};
};
};[/font]

Do you reload your mission after changing description.ext?

For edits to description.ext to take effect in Preview you must first save or re-load the mission into the editor.
Edited by sxp2high

Share this post


Link to post
Share on other sites

Yes, went so far as to restart the game. I will try yours and see if it works. Looks similar to my OP though.

---------- Post added at 06:54 AM ---------- Previous post was at 06:39 AM ----------

Did not work.... I copied and pasted exact. My music is even named Music1.ogg

Am I looking for it in the wrong place? I assume it would be in effects/music in a trigger? I've checked everything else...

Share this post


Link to post
Share on other sites

still nothing :\

The music folder and description.ext would go in my documents\arma2\user saved\mission name folder right?

I figure it's something dumb like that I've done...

Share this post


Link to post
Share on other sites

I recall the whole system being quite picky with it.

If you have the ogg names with small letters without capital "M" ,make sure they match in description.ext as well.

And did you check all the way down in the editor list?

As they are always the lowest ones.

Share this post


Link to post
Share on other sites

still nothing. I checked the case sensitive part a while ago, playmusic does nothing and it is not in the list..

no doubt it is something simple... im thinking its in the folders or whatever.. the code has to be right

Share this post


Link to post
Share on other sites

Subtle application of Occams Razor:

Is the music slider turned down in the options screen?

Did you uncheck "Hide file extensions" in Windows?

EDIT:

To add:

Are you sure the trigger activates? Copy this and paste it in the on activation field:

hint "I am so turned on right now";

If you dont get the hint, then the trigger does not activate.

Edited by Jelliz

Share this post


Link to post
Share on other sites

Really strange...

Maybe you should try to re-convert the file. Using a different audio converter?

Share this post


Link to post
Share on other sites

I'm going to try a diff sound FX... also noticed all my files were set to "read only" that may of been an issue. I will give it a go in a few minutes.

Share this post


Link to post
Share on other sites

IT WORKS!!!!!

I was putting it in my arma 2\user saved

Looked at the editing manual AGAIN and noticed the guy had a mission.sqm which I didn't have in mine.. so I looked @ arma2\missions and put the description and music folder there.. it worked..

My own stupidity.

Thanks everyone for your help! I love this community... Only took 3 days:o

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  

×