Jump to content

Recommended Posts

Sorry for the repost, I know this has been discussed before, but I have tried five different step by step tutorials, and have not been able to get music to play in my mission.

I just want to add a few custom songs for the mission's music. Can anyone assist?

 

Many thanks in advance. 

Share this post


Link to post
Share on other sites
13 minutes ago, killzone_kid said:

Seems legit, but what you have tried so far that doesn't work?

So the 1st and 3rd ones yielded nothing. The 2nd one got me this17622232_10202883678611159_950072198_o.j

 

and this

17572011_10202883679211174_226134730_o.p

Share this post


Link to post
Share on other sites

0 = [] spawn... for starters. If your config is correct it should work after you correct this.

Share this post


Link to post
Share on other sites

You are supposed to use class name, not the file name. The class name is
"music1" in that picture. So it should be playMusic ["music1", 1] and not playMusic ["Track01", 1]

Share this post


Link to post
Share on other sites

I use it as a sound config so players who have music turned off hear it. Same thing for music but slightly different configs.

Add (in this case) music.ogg to your mission file (copy class music and change it for additional files)

//In description.ext

class CfgSounds {
  class music
     {
          name = "music";
          sound[] = {"music.ogg", db+5, 1}; 
          titles[] = {};
      };
};


//Locally on clients
 

player say2d 'Music';

Thats how I do it for intro scenes, basic and works

Share this post


Link to post
Share on other sites
1 hour ago, Brother Jason said:

 

Seems ok. Other things to check

1. make sure that the description.ext is just that and not description.ext.txt as some editors can save it this way

2. the ogg files encoded correctly. I would copy and paste arma ogg just to eliminate the possibility of wrong encoding

3. remove first \ from file path so it starts with music not \music

4. make sure files are actually present in folder music which is in mission folder

5. save mission after every description.ext editing, this will refresh it.

6. make sure the music volume is turned up in sound options

Share this post


Link to post
Share on other sites
1 hour ago, killzone_kid said:

 

Seems ok. Other things to check

1. make sure that the description.ext is just that and not description.ext.txt as some editors can save it this way

2. the ogg files encoded correctly. I would copy and paste arma ogg just to eliminate the possibility of wrong encoding

3. remove first \ from file path so it starts with music not \music

4. make sure files are actually present in folder music which is in mission folder

5. save mission after every description.ext editing, this will refresh it.

6. make sure the music volume is turned up in sound options

 

Hmm, double checked all of these. Everything looks good.

2 hours ago, MKD3-FHI said:

I use it as a sound config so players who have music turned off hear it. Same thing for music but slightly different configs.

Add (in this case) music.ogg to your mission file (copy class music and change it for additional files)

//In description.ext


class CfgSounds {
  class music
     {
          name = "music";
          sound[] = {"music.ogg", db+5, 1}; 
          titles[] = {};
      };
};


//Locally on clients
 


player say2d 'Music';

Thats how I do it for intro scenes, basic and works

I'll try this out tomorrow, going to bed for now, I'll get back to you on how it works though.

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

×