Jump to content
Brandon E

CfgMusic Error, Cant seem to get it working

Recommended Posts

Hello so im creating a mission with a song that triggers when I start the mission.

 

So in my description.ext file i've got this

 

class CfgMusic
{
	tracks[] = {};
	class MyIntro
	{
		// display name
		name	= "intro";

		// filename, volume, pitch
		sound[]	= { "\music\sound1.ogg", db + 0, 1.0 };
	};
	class MyOutro
	{
		name	= "outro";
		sound[]	= { "\music\sound2.ogg", db + 10, 1.0 };
	};
};

Copy and pasted from Bohemia's website on how to import the music/make it play and in my init.sqf file i've got the following

execVM "description.ext";
playMusic "MyIntro";
vehicle player switchCamera "EXTERNAL";

Now everything works, the mission loads up, it forces you to 3rd person and even starts playing the music however no matter who's code I use I always am getting presented with this error

'...s\Sniper.Stratis\description.ext"
class |#|CfgMusic
{tracks[] = {};
class MyIntro
...'
File C:\Users\Brandon\Documents\Arma 3\mpmissions\Sniper.Stratis\desc..., line 1
Error Missing ; 

This above error pops up in black box on the screen the moment the mission loads. It's missing a semi colon but I have no idea where and i keep adding one and nothing, works. Any Ideas?

Share this post


Link to post
Share on other sites
execVM "description.ext";

🤔

 

Surely you don't need this. More like, NEVER do this. Just remove this line and everything's alright, I'm pretty sure.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
1 minute ago, POLPOX said:

execVM "description.ext";

🤔

 

Surely you don't need this. More like, NEVER do this. Just remove this line and everything's alright, I'm pretty sure.

I always did that because originally in Arma 2 I believe it never executed on its own;

 

thanks though that did the trick 🙂

Share this post


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

because originally in Arma 2 I believe it never executed on its own

Never happened. description.ext was always a mission alternative to config.cpp. It is a config file not a script file.

 

Share this post


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

I always did that because originally in Arma 2 I believe it never executed on its own;

Its a config, it doesn't "execute"

  • Like 1

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

×