Jump to content
Sign in to follow this  
HaZZarD

CfgMusic & playMusic not working at all in MP ?

Recommended Posts

I have this problem driving me mad :mad: , now is five time I delete and re try to do all the CfgMusic and playMusic part but no results ...so I decided to come here for help :icon_rolleyes:

When I try in SP there are no problems , I have 3 songs and all those 3 start when I make the trigger fire

In Multy , the first song , the one that plays at the start of the mission , ALWAYS works but the other two songs in mid and end of the mission NEVER play , I have the mission working and ending as planned so the triggers are all ok but no music .

Even the final cut scene start but not music so I lose all the atmosphere :/

I'll try to describe what I have done so far so that you can get an idea :

lets start with the description , this is my whole mission description :

briefingName="COOP/PvP Capture The Officer";
author="HaZZarD";  //appears as author in overview and loading screen
overviewText="A Persian officer is somewhere in the city of Kavala. Capture him and bring him back for the interrogation."; //appears in overview and loading screen
onLoadName="*Capture The Officer*"; //mission name for loading screen only
overviewPicture="manhunt.jpg"; //mission picture for loading screen only
onLoadMission = "Good training and Have Fun !";
onLoadMissionTime = True;
loadScreen = "manhunt.jpg";




respawn = "BASE";
respawnDelay = 90;
disabledAI = 1 ;
respawnTemplatesWest[] = {,"MenuPosition","Spectator"};





class Header
{
 gameType = COOP;
 minPlayers = 1;
 maxPlayers = 16;
};

[b]class CfgMusic
{
tracks[]={};
class music1
{ name = "ACDC"; sound[] = {\music\introz.ogg, db+10, 1.0};
};
class music2
{ name = "MiamiVice"; sound[] = {\music\mid.ogg, db+10, 1.0};
};
class music3
{ name = "Rock"; sound[] = {\music\theend.ogg, db+10, 1.0};

};[/b]
}; 



class CfgIdentities
{
class Wardak

{
	name="Wardak";
               nameSound = "Wardak"; 
	face="PersianHead_A3_02";
	glasses="G_Aviator";
	speaker="Male01PER";
	pitch=1.1;
};

class Habibi

{
	name="Habibi";
               nameSound = "Habibi"; 
	face="PersianHead_A3_03";
	glasses="G_Aviator";
	speaker="Male02PER";
	pitch=1.1;
};


};

debriefing =1;
class CfgDebriefing
{

class End1
{
	title = "Mission canceled";
	subtitle = "officer KIA";
	description = "The officer has been killed in action , our mission is revoked";
               pictureBackground = "kia.jpg";
	picture = "b_inf";
	pictureColor[] = {0.0,0.3,0.6,1};
};

class End2
{
	title = "Mission Completed";
	subtitle = "";

               pictureBackground = "officer1.jpg";
	picture = "b_inf";
	pictureColor[] = {0.0,0.3,0.6,1};description = "The officer is captured and secured by NATO forces , our allies will proceed with the interrogation";
};

};

class Params
{

class TimeOfDay 
{
   title = "Time of Day";
   values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
   texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
   default = 4;
 };

class Weather {

title = "Weather";
values[] = {1,2,3,4};
default = 1;
texts[] = {"Clear", "Stormy", "Cloudy", "Foggy"};
};

class MapUpdate
   {
       title = "officer marker = Bodyguard Respawn , refresh time";
       values[] = {0, 10, 30, 60, 120, 300, 300000};
       texts[] = {"Constant", "10 Seconds", "30 Seconds", "1 Minute", "2 Minutes", "5 Minutes", "Never"};
       default = 10;
   };

};




#include "VAS\menu.hpp"

class CfgFunctions
{
#include "VAS\cfgfunctions.hpp"
};

then I have my 3 OGG songs in the mission folder ---> music folder --> ( introz.ogg , mid.ogg , theend.ogg )

in game I tried this

trigger ACT.

 85 fadeMusic 0 ; hint "AC/DC - Rock' n Roll Train" ;

this just for the fade and credits

in trigger EFFECTS under TRACK I select "ACDC"

and I did the same for the other songs but just this one , the first one , starts

Share this post


Link to post
Share on other sites

Not sure if this causes a problem, but shouldn't file path be written with quotes?

class CfgMusic
{
   tracks[]={};
   class music1
   {
       name = "ACDC";
       sound[] = {"\music\introz.ogg", db+10, 1.0};
   };
};

Share this post


Link to post
Share on other sites
Not sure if this causes a problem, but shouldn't file path be written with quotes?

class CfgMusic
{
   tracks[]={};
   class music1
   {
       name = "ACDC";
       sound[] = {"\music\introz.ogg", db+10, 1.0};
   };
};

Ok I add quotes and then this night when we try the mission I' ll see if that was the problem , thanks : )

but it's strange because in SP works and in MP just the first one song play and not the other two , it can be another problem too uhm

Share this post


Link to post
Share on other sites

when you fade out your music with the order you have to fade in again, otherwise the music track plays but its muted !!!

Share this post


Link to post
Share on other sites
when you fade out your music with the order you have to fade in again, otherwise the music track plays but its muted !!!

ah damn ... you mean that fading the first one make the others playing mute ? this make sense I think you got the problem

So what should I put in the trigger to make the second and third song playing at max volume and then fading again ?

EDIT :

what if I put in the second trigger 0 Fademusic 1 ; 85 fadeMusic 0 ; ?

Edited by HaZZarD

Share this post


Link to post
Share on other sites

Well i had this problem too.

Just write fademusic 1

---------- Post added at 19:00 ---------- Previous post was at 18:46 ----------

I do my fading manually with an audio program using fade out on the track itself. Its easier.

Share this post


Link to post
Share on other sites
Well i had this problem too.

Just write fademusic 1

---------- Post added at 19:00 ---------- Previous post was at 18:46 ----------

I do my fading manually with an audio program using fade out on the track itself. Its easier.

tried 0 fademusic 1 and WORKED YAY !! thanks ! you saved the day XD

the problem was that I tried the songs one by one that's why in editor all worked , I always tried just one per time damn

GG

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  

×