OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nogreymatter on 23 Dec 2005, 23:51:33
-
I've created an outro for one of my missions that requires talking. I have made a sound file and converted it into .ogg and for some reason when it hits the spot in the outro where it talks it "says sound not found." This is what I have in the editor:
matt say "talk1"
I have all the audio requirements for the sound file to work in ofp and I have created a Sound folder in the mission and put the audio file in there.
Can anyone help me?
-
Have you defined the sound in description.ext?
-Pilot
-
Yes it looks like this
class CfgSounds
{
   sounds[] = { };
  ÂÂ
   class talk1
   {
      name = "talk1"
      sound[] = {"talk1", db+112, 1.0};
      titles[] =
      {
         0, $STRD_talk1
      };
   };
};
-
Is the folder named "Sound" or "Sounds"? It has to be named "Sound". Also, include the extension in the sound field of description.ext:
sound[] = {"talk1", db+112, 1.0};
should be:
sound[] = {"talk1.ogg", db+112, 1.0};
-Pilot
-
Try also:
sound[] = {"\sound\talk1.ogg", db+112, 1.0};
To specify excactly where the file is saved rather than rely on defaults.
Bye the way:
name = "talk1"Enables you to access this sound from the Environmental settings for a trigger. If you don't need to do this it is better to have:
name = ""To reduce the number of names the mission has to deal with
-
I thought the name field was the name you called the sound from in the script. IIRC, it has nothing to do with the Enviromental settings for triggers. Or am I again going to learn something new? ;D
-Pilot
-
I think you just have ;D
The name you use in the script is the class name.
Merry Christmas
-
I think you just have ;D
;D
I thought so.
Merry Christmas
-Pilot
-
Well the problem is fixed. The problem was I didn't add .ogg, and I had sounds instead of sound in my description.
Thanks guys,
Merry Christmas.
-
then use the solve button should be lower left of the thread
Just a tip stops people reading all the replies then finding out its solved