Good evening. I have been combing OFPEC for the better part of an entire day (still in my jammies!) looking for the reason why my custom sounds are not working. I have read through every single post related to sound, and even browsed every post on every page just in case. I found several posts where people were able to get their problems similar to my own fixed, but nothing was really said as to how they did it.
I have read and followed both tutorials on the site. In fact, the tutorial by The Architect doesn't even work when I use his files in the tutorial! Very frustrating.
Here's what I've got.
A simple trigger, triggered by ANYONE. On activation: playSound "Sample1" (the .ogg file from the tutorial- nothing changed, placed in the Sound folder of the mission folder I'm working on).
When I preview the mission, I get a message that says "cannot find Sample1".
Again, I didn't change anything about the .ogg file, so I only assume that it's the right Hz and all that.
The file structure is exactly as it should be (ie \MyMission\sounds\Sample1.ogg).
My description file is an .ext, not an .ext.txt or anything like that. I am using Chris' Script Editor.
I reload the mission every time I make any changes. Heck, I even save and exit THE ENTIRE GAME just to make sure, but still the same problem.
Here is the Description file in its entirety, directly unzipped from the tutorial:
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
};
};
Let's see... what else have I tried??? Well, that's about it.
Using this file, with this .ogg (or any other I have), I cannot make this trigger work. I've tried to use the effects tab of the trigger, but the filenames don't show up there either.
Please, someone who knows 100% what the problem is, take away my headache. I've done my homework, and so far have not found any definitive answers as to why it's not working.
Thank you for your help.
Very Respectfully,
ESV