Forum Jump :

Author Message


Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2008-03-05 20:12        
     
Im making a mission where the player will recieve some messages from papa bear, ive followed instructions from different forum topics here on armaholic.
my description.ext looks like this:
class CfgSounds
{
sounds[] = {}; 
class hilt3
{
name = "";
sound[] = {"\sound\hilt3.ogg", 9, 1};
titles[] = {};
};


class CfgRadio
{
    sounds[] =
    {
      papa1, papa2, papa3
    };

    class papa1
    {
      name = "papa1";
      sound[] = {"sound/papa1.ogg", db+1, 1.0};
      title = $STRD_papa1;
    };
    class papa2
    {
      name = "papa2";
      sound[] = {"sound/papa2.ogg", db+1, 1.0};;
      title = $STRD_papa2;

  
 class papa3
    {
      name = "papa3";
      sound[] = {"sound/papa3.ogg", db+1, 1.0};;
      title = $STRD_papa3;
    };
};

when i try to load the mission in the editor the game crashes and i get this error:
Fucking stupid computer:
(path to mission folder)/description.ext/line 28 '/cfgsounds/cfgradio/papa2.':';
encounterd instead of '='

Ive even tryed to create a stringtable.csv in notepad that looks like this
Language	English
STRD_papa1 Go Go Go! We have got no time to loose!
STRD_papa2 Good job! you killed him, that is very well done! Now proceed to the 
camp and free the prisoners
STRD_papa3 Good Good! The Americans are free, now get back to base

Im not sure if that stringtable is 100% correct nor if my way of making it is, i just tryed to do like it says herein this radio and sound tutorial

i dont think i understood that fully tough, maybe that is the cause of my error?


Author Message


Posts: 101
Rank:


Level: Member

Country: us
Location: Florida
Occupation: Student
Age: 30
In-game name:

 
#2 Posted at 2008-03-05 20:18        
     
Missed the }; to close papa2.

class CfgRadio
{
    sounds[] =
    {
      papa1, papa2, papa3
    };

    class papa1
    {
      name = "papa1";
      sound[] = {"sound/papa1.ogg", db+1, 1.0};
      title = $STRD_papa1;
    };
    class papa2
    {
      name = "papa2";
      sound[] = {"sound/papa2.ogg", db+1, 1.0};;
      title = $STRD_papa2;
    };
    class papa3
    {
      name = "papa3";
      sound[] = {"sound/papa3.ogg", db+1, 1.0};;
      title = $STRD_papa3;
    };
};


Advertisement


Author Message


Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2008-03-05 20:48        
     
Missed the }; to close papa2.
Oh dammit! It was so obvious and i missed it.
Thx alot for helping me, that would ahd taken ages to figure out on my own:eek


Author Message


Posts: 201
Rank:


Level: Member

Country: il
Location:
Occupation:
Age: 39
In-game name: Variable

 
#4 Posted at 2010-04-04 07:32        
     
I need some help on the same topic. I got the directSay command to work but for some reason, some of the files get activated with a delay, or stop in the middle just to continue a three seconds later from the point it stopped. Very weird behavior. The first one, Woman works perfectly fine, but the others are messed up. Those are activated by a truck driver that picks up the team and briefs them.
I am attaching my description.ext file, if someone could take a look on it and tell me if I have done something wrong I would appreciate it.


// Mission Header
class Header
{
  gameType = Coop;
};

respawn = "GROUP";
respawnDelay = 5;
onLoadMission = "B I T T E R   M E M O R I E S   (SP / C O O P )";
OnLoadMissionTime = FALSE;
debriefing = 1;

class CfgSounds
{
		// List of sounds (.ogg files without the .ogg extension)
		sounds[] = {woman,driversay11,driversay12,driversay13,dogcry};

		// Definition for each sound

		class woman
		{
				name = "woman"; // Name for mission editor
				sound[] = {"\sounds\woman.ogg", 20, 1.0};
				titles[] = {	};
		};

		class driversay1
		{
				name = "driversay1"; // Name for mission editor
				sound[] = {"\sounds\driversay11.ogg", 20, 1.0};
				titles[] = {	};
		};
		
		class driversay2
		{
				name = "driversay2"; // Name for mission editor
				sound[] = {"\sounds\driversay12.ogg", 20, 1.0};
				titles[] = {	};
		};
		
		class driversay3
		{
				name = "driversay3"; // Name for mission editor
				sound[] = {"\sounds\driversay13.ogg", 20, 1.0};
				titles[] = {	};
				
		};

		class dogcry
		{
				name = "dogcry"; // Name for mission editor
				sound[] = {"\sounds\dogcry.ogg", 20, 1.0};
				titles[] = {	};
		};
};


class CfgRadio
{
 sounds[] = {woman,driversay1,driversay2,driversay3};
  class RadioMsg1
  {
   name = "woman";
    sound[] = {"\sounds\woman.ogg", 10, 1.0};
    title = "Don't go Georg! If you will go there you will not come back! Please!";
  };

  class RadioMsg2
  {
   name = "driversay1";
   sound[] = {"\sounds\driversay11.ogg", 10, 1.0}; // .wss implied
   title = "Did you receive the ammunition from Hallssonar? Good. Take the explosives, they are in the truck's cabin. Damn! This rain never stops!";
  };
 
  class RadioMsg3
  {
   name = "driversay2";
   sound[] = {"\sounds\driversay12.ogg", 10, 1.0}; // .wss implied
   title = "I will take you to the abandoned base, maybe there you will find some equipment that you can use. A great stench is rising from inside, I wonder what is causing it...";
  };
  
   class RadioMsg4
  {
   name = "driversay3";
   sound[] = {"\sounds\driversay13.ogg", 10, 1.0}; // .wss implied
   title = "Ok that's it. I will not go any further. Too risky. Stefanson tried to check the base. He is now hanged right by the entrance. Rupov, his dog is barking at his corpse for two days now. Good luck, and goodbye my friends, I hope I will see you all again soon.";
  };
 

};

Join the CiA coop nights! http://ciahome.net