Results 1 to 5 of 5

Thread: Making custom sounds work

  1. #1

    Making custom sounds work

    I want to play custom sounds and music in my missions but it doesn't work like it did in Armed Assault anymore. How exactly is it done?

  2. #2
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    Well today i tryed to define sound in the "Description.ext" of a mission. It doesn't worked.

    Only thing works, is to make a "Config.cpp" define your sound and musik there and load it like a Addon/Mod.

  3. #3
    Considering we have new say2d and say3d commands, I don't think sounds will (at least forever) be restricted to addons. Probably just new ways of doing things that we don't know about yet.

    I guess you already checked existing missions? How about the OFP single mission pack that Wolle came out with?
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  4. #4
    Second Lieutenant Celery's Avatar
    Join Date
    Apr 9 2003
    Location
    BI Forums
    Posts
    4,882
    Author of the Thread
    Quote Originally Posted by CarlGustaffa View Post
    Considering we have new say2d and say3d commands, I don't think sounds will (at least forever) be restricted to addons. Probably just new ways of doing things that we don't know about yet.

    I guess you already checked existing missions? How about the OFP single mission pack that Wolle came out with?
    I checked the campaign missions and they don't contain custom sounds. W0lle's missions have custom sounds but they don't work.

  5. #5
    I got the custom sounds and music to work just fine...

    Try this with RSCtitles and music..

    Code:
    class Header
    {
      gameType = Coop;
      minPlayers = 1;
      maxPlayers = 8;
    };
    
    
    
    OnLoadMission = "FOG of WAR: Dolores Assault";
    OnloadMissionTime = False;
    
    
    class RscStdText
      {
    	type=0;
    	idc=-1;
    	style=2;
    	colorBackground[]={0,0,0,0}; 
    	colorText[]={1,1,1,1};       
    	font="TahomaB";
    	size=1;
      };
    
    class RscTitles
    {
    	titles[]={fog1,fog2,fog3,fog4,fog5,fog6,fog7,test1}; 
    	
    	
    
    class fog1
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=10;
    	  	fadein=2;
    		fadeout=2;
    	  	name="fog1";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog1.JPG";
    	  	  	x=0.25;
    	  	  	y=0.2;
    	  	  	w=0.5;
    	  	  	h=0.5;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    	
    class fog2
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=5;
    	  	fadein=0;
    		fadeout=0;
    	  	name="fog2";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog2.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    	
    class fog3
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=5;
    	  	fadein=0;
    		fadeout=0;
    	  	name="fog3";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog3.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    
    class fog4
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=5;
    	  	fadein=0;
    		fadeout=0;
    	  	name="fog4";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog4.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    
    class fog5
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=5;
    	  	fadein=0;
    		fadeout=0;
    	  	name="fog5";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog5.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    
    class fog6
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=5;
    	  	fadein=0;
    		fadeout=0;
    	  	name="fog6";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog6.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    	
    class fog7
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=1;
    	  	fadein=0;
    		fadeout=5;
    	  	name="fog7";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\fog7.JPG";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    
    class test1
    	{
    	  	idd=-1;
    	  	movingEnable=0;
    	  	duration=10;
    	  	fadein=0;
    		fadeout=0;
    	  	name="test1";
    		sizeEx=1;
    	  	controls[]={"Pic","Text",};
    	  	
    	  	class Pic : RscStdText
    		{
    	  	  	style=48; 
    	  	  	text="image\test1.PAA";
    	  	  	x=0.0;
    	  	  	y=0.0;
    	  	  	w=1.0;
    	  	  	h=1.0;
    			sizeEx=0.05;
    		};
    	  	class Text : RscStdText 
    		{
    	  	  	text="";
    			colorText[]={1,1,1,1};
    			font="TahomaB";
    			size=0.8;	  	  	
    	  	  	x=0.095;
    	  	  	y=0.3;
    	  	  	w=0.8;
    	  	  	h=0.05;
    			sizeEx=0.03;
    		};
    	  	
    	};
    
    };
    
    
         class intro1
         {
              name = "intro1";
              sound[] = {\music\intro1.ogg, 1.0,1.0};
              titles[] = 
              {
              };
         };
    
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •