Jump to content
Sign in to follow this  
fasterthanlight

Change Domination entry song

Recommended Posts

Can someone help me find out how to change the song during the fade in, in Domination?

I have an mp3 already that I want to use, just need to know if it is script directed or just a file in game.

Share this post


Link to post
Share on other sites

x_client\x_intro.sqf and x_client\x_endcam.sqf are the only places I can find playMusic.

I'll advice against it though, as the download increase is pretty big compared to what you get from it. Most couldn't care less about the music.

Share this post


Link to post
Share on other sites

Huh? I think x_ is just Xenos own script naming convention :) The i_ files are just to indicate initialization files.

Share this post


Link to post
Share on other sites

Can you simply just add;

class CfgMusic

{

tracks[]={};

class Music

{

name = "";

sound[] = {"Music.ogg", db+0, 1.0};

};

};

to the end of your description and it would override the default music?

Share this post


Link to post
Share on other sites

Description:

class CfgMusic

{

tracks[]={ Intro };

class Intro {

name="Intro";

sound[]={"filepath\Intro.ogg", db+10, 1.0};

};

};

and then in the x_client\x_intro.sqf starting at line 42:

#ifndef __OA__

playMusic "Intro";

#else

playMusic "Intro";

#endif

To your question, if you just add it in the description, you only define the class. Your mission still doesn't "know" what do to with it.

Share this post


Link to post
Share on other sites

And don't forget that some users have turned off music and they won't hear the song.

Xeno

Share this post


Link to post
Share on other sites

I know I'm a bit late for this thread but anyway, I'm trying to insert music into my game as well using the coding that was written in this thread. For some reason, everytime I try to start my personal server up, my game force closes and an error code pops up saying:

File C:\Zak Nizam\Doucments\ArmA 2 Other

Profiles\SgtMaj%20Z%2e%20Nizam[26MEU]\MPMissions\26thMEU_Do

miCO!_(ACE)_Wounds.Takistan\description.ext, line 927: /Params/:

Missing '}'

Now, All I did was take the description:

class CfgMusic

{

tracks[]={ Intro };

class Intro {

name="Intro";

sound[]={"filepath\Intro.ogg", db+10, 1.0};

};

};

quoted above and copied and pasted it exactly as stated (at the bottom of the description.ext just before the closing '};'. Can anyone explain to me what I did wrong? If you need more information just let me know.

Share this post


Link to post
Share on other sites

Why don't you just replace the intro.ogg with your own song file and not worry about configs and scripts and all that? :)

Share this post


Link to post
Share on other sites

I didn't see an Intro.ogg when I looked in the sounds file.

Share this post


Link to post
Share on other sites

I know that. I've already replaced the song from in game, the problem is getting it to work in the description file so the game knows to play it at intro. It's not working because it keeps giving me that error I mentioned 4 comments ago.

Share this post


Link to post
Share on other sites

Try this:

class CfgMusic
{
tracks[]={[color="Red"]Intro[/color]};

class Intro {
name="Intro";
sound[]={"filepath\Intro.ogg", db+10, 1.0};
[color="Red"]titles[] = {};[/color]
};
}; 

Don't know if the spaces change anything, and don't know if titles is necessary, but it doesn't hurt to try. If this still does not work, I suggest moving to playSound instead of playMusic. There is already a cfgSounds defined, so you've got to add it there just as you did for cfgMusic, then when you call it use the command playSound. This also allows for fading and all that stuff.

Share this post


Link to post
Share on other sites

Thanks for trying to help, but that also gave me the same error... maybe if someone is on at the same time as me, they can edit the file themselves through teamview or something.. I don't understand why it won't work if it worked for others. It's Domination 2 just like fasterthanlight's mission.

Edited by znizam93

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  

×