Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: sound format and inclusion

  1. #1
    Master Gunnery Sergeant
    Join Date
    Feb 11 2008
    Location
    The Netherlands, Frisia
    Posts
    1,083

    sound format and inclusion

    My question is, is ArmA 2 still using .ogg's as sound format?
    And how does one get them to work in a mission?
    I've tried a OFP/ArmA sound tutorial and it worked fine in those games, but when i try to use it in ArmA 2 the game crashes.
    So is there a new format and a new way of including sounds?

  2. #2
    Master Gunnery Sergeant
    Join Date
    Feb 11 2008
    Location
    The Netherlands, Frisia
    Posts
    1,083
    Author of the Thread
    So nobody knows anything about this?

  3. #3
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    As far as i can say you can't define sounds in the "Descripted.ext" of a mission.

    Sounds only can be definied by using/creating a AddOn with a "Config.cpp"

  4. #4
    you can use do them you just need to make sure it ends with 3 of these }; at the end of the description..

    Code:
    // Include spectating script resource
    
    class Header
    {
      gameType = Coop;
      minPlayers = 1;
      maxPlayers = 8;
    };
    
    
    
    OnLoadMission = "CRUISE CONTROL";
    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\cctitle.paa";
    	  	  	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 CfgMusic
         {
         tracks[] = {junkz};
    
         class junkz
         {
              name = "junkz";
              sound[] = {\music\junkz.ogg, 1.0,1.0};
              titles[] = 
              {
              };
         };
    
    };
    Plus when it does drop u to desk top you should get an error box telling you what you are missing..

  5. #5
    Master Gunnery Sergeant
    Join Date
    Feb 11 2008
    Location
    The Netherlands, Frisia
    Posts
    1,083
    Author of the Thread
    Thanks for the info guys.
    Gonna try it again, it seems it was missing a }; at the bottom of the file.

    ---------- Post added at 02:02 PM ---------- Previous post was at 01:52 PM ----------

    Edit: it still doesnt work.
    It gave me the same error as it gave me before:
    line 53:/CfgMusic/: Missing '}'

    But i dont know where to put it, it's confusing as i really can't read code without getting a major headache. It's at the bottom, that i know. I put 3x }; there, that didnt work.
    Then i put the last one } instead of }; and that didnt work either.
    Could any of you be so kind as to make the file for me? That would be really appreciated.
    Soundfile should be called Sample1.

  6. #6
    Code:
    class CfgMusic
    {
     tracks[]={};
    
     class Sample1
     {
      name = "";
      sound[] = {"Sample1.ogg", db+0, 1.0};
     };
    
    };
    just put that in the description file.

  7. #7
    Quote Originally Posted by SiC-Disaster View Post
    Thanks for the info guys.
    Gonna try it again, it seems it was missing a }; at the bottom of the file.

    ---------- Post added at 02:02 PM ---------- Previous post was at 01:52 PM ----------

    Edit: it still doesnt work.
    It gave me the same error as it gave me before:
    line 53:/CfgMusic/: Missing '}'

    But i dont know where to put it, it's confusing as i really can't read code without getting a major headache. It's at the bottom, that i know. I put 3x }; there, that didnt work.
    Then i put the last one } instead of }; and that didnt work either.
    Could any of you be so kind as to make the file for me? That would be really appreciated.
    Soundfile should be called Sample1.
    can u post the description in here so we can see where your going wrong..?

    But looking at the error u need to count down to line 53 and see whats missing along that line.

  8. #8
    Master Gunnery Sergeant
    Join Date
    Feb 11 2008
    Location
    The Netherlands, Frisia
    Posts
    1,083
    Author of the Thread
    This is the stuff from the .Ext file.

    class CfgMusic
    {
    tracks[]={};

    class Music1
    {
    name = "Music1";
    sound[] = {\music\Music1.ogg, db+40, 1.0};
    };
    class Music2
    {
    name = "Music2";
    sound[] = {\music\Music2.ogg, db+40, 1.0};
    };



    class CfgEnvSounds
    {
    sounds[]={Ambience1};

    class Ambience1
    {
    name="Ambience1";
    sound[]={"Ambience1.ogg",db-20,0,1};
    soundNight[]={"Ambience1.ogg",db-40,0,1};
    };
    };



    class CfgSounds
    {
    sounds[] = { Sample1, Sound2, };
    class Sample1
    {
    name = "Sample1";
    sound[] = {"Sample1.ogg", db+20, 1.0};
    titles[] =
    {
    0, $STRM_Sample1
    };
    };
    class Sound2
    {
    name = "Sound2";
    sound[] = {"Sound2.ogg", db+20, 1.0};
    titles[] =
    {
    0, $STRM_Sound2
    };
    };
    }

  9. #9
    try this

    I highlighted the stuff for you to see where i adjusted it
    Code:
    class CfgMusic
    {
    tracks[]={Music1, Music2};
    
    class Music1
    {
    name = "Music1";
    sound[] = {\music\Music1.ogg, db+40, 1.0};
    };
    };
    class Music2
    {
    name = "Music2";
    sound[] = {\music\Music2.ogg, db+40, 1.0};
    };
    };
    
    
    class CfgEnvSounds
    {
    sounds[]={Ambience1};
    
    class Ambience1
    {
    name="Ambience1";
    sound[]={"Ambience1.ogg",db-20,0,1};
    soundNight[]={"Ambience1.ogg",db-40,0,1};
    };
    };
    
    
    
    class CfgSounds
    {
    sounds[] = {Sample1, Sound2};
    class Sample1
    {
    name = "Sample1";
    sound[] = {"Sample1.ogg", db+20, 1.0};
    titles[] =
    {
    0, $STRM_Sample1
    };
    };
    class Sound2
    {
    name = "Sound2";
    sound[] = {"Sound2.ogg", db+20, 1.0};
    titles[] =
    {
    0, $STRM_Sound2
    };
    };
    };
    Last edited by Junker; Jun 13 2009 at 18:54.

  10. #10
    Master Gunnery Sergeant
    Join Date
    Feb 11 2008
    Location
    The Netherlands, Frisia
    Posts
    1,083
    Author of the Thread
    Thanks alot Junker, but i'm afraid i crashed again :\

    Config: some input after EndOfFile. is what it says. I'm at a loss to what that might mean?

Page 1 of 2 12 LastLast

Posting Permissions

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