Home   Help Search Login Register  

Author Topic: Problem with sound files  (Read 559 times)

0 Members and 1 Guest are viewing this topic.

Goettschwan

  • Guest
Problem with sound files
« on: 12 May 2005, 16:04:15 »
Hi i would like to ask a question : I have looked at the sound example mission by bloodmixer. After thinking i understood well i went by and copied some of his instructions and one of his soundfiles to a test mission, and made a waypoint playing one of his files.
Interesting enough, it plays the onscreen text from the stringtable.csv when hitting the waypoint, but not the file itself. And there is no problem with the file, it works in the tutorial  ???
There has to be an error somewhere because if i just go and put another character inside bloodmixers tutorial mission it functions. But have no idea where.
My description.ext :
Code: [Select]
class CfgSounds
{
  sounds[] =    { voicesample };

  class voicesample
  {
      name = "";
      sound[] = {"voicesample.ogg", db-10, 1.0};
      titles[] =
      {
        0, $STRM_voicesample
      };
  };
};
Relevant exerpt from the mission file :
Code: [Select]

class Item1
      {
        side="CIV";
        class Vehicles
        {
            items=1;
            class Item0
            {
              position[]={10437.097656,123.974998,4100.428711};
              special="NONE";
              id=1;
              side="CIV";
              vehicle="Civilian11";
              leader=1;
              rank="CORPORAL";
              skill=0.600000;
              text="Karl";
            };
        };
        class Waypoints
        {
            items=1;
            class Item0
            {
              position[]={10446.279297,123.974998,4099.762695};
              expActiv="karl say ""voicesample"";";
              class Effects
              {
              };
              showWP="NEVER";
            };
        };

What could it be that i did wrong? The file is called voicesample.ogg and sits right next to the mission file.
Thanks,
STG

Offline Blanco

  • Former Staff
  • ****
Re:Problem with sound files
« Reply #1 on: 12 May 2005, 16:12:49 »
Dunno what's wrong, I hate description.ext files...

I'm always using Dialogg. A small tool where you can select you ogg-files (make sure you put them in a [sound] folder, otherwise the prog can't locate the oggs), select the soundclass (radio, music or speak) and the tool will generate the description.ext for you.
It always worked, great tool.

 
« Last Edit: 12 May 2005, 16:15:39 by Blanco »
Search or search or search before you ask.

Goettschwan

  • Guest
Re:Problem with sound files
« Reply #2 on: 12 May 2005, 16:15:30 »
Will try, thanks for the idea.
StG

Goettschwan

  • Guest
Re:Problem with sound files
« Reply #3 on: 12 May 2005, 18:03:33 »
That functions. Thanks a lot. Not giving a name to the soundfile in doing
Code: [Select]
name=""
is maybe not a good idea.  :tomato:
Guess everybody gets to do stupid questions  ;D.