Frictional Games Forum (read-only)

Full Version: custom sounds not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i have started to add custom sounds i did the whole sounds folder, and now it doesnt even work can someone tell me what is wrong here? thanks Smile

folder

[Image: whyunowork.png]



and here is the script

void OnStart()

{

AddEntityCollideCallback("Player", "ScriptArea_5", "wolves", true, 1);

}

void wolves(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "12_Wolves_Howling.snt", "ScriptArea_5", 0, false);
}

can anyone see anything wrong?
Have you checked the resource.cfg file (next to amnesia.exe) and made sure that custom_stories is listed as a directory with resources?
Also what program did you use to convert the .ogg file? you can't just rename the type of the file. Because i shouldn't look like that. It should be greenish. If you havn't and need too i'd recommend sony vegas. Otherwise the script looks fine.
(04-30-2012, 12:16 PM)trollox Wrote: [ -> ]Also what program did you use to convert the .ogg file? you can't just rename the type of the file. Because i shouldn't look like that. It should be greenish. If you havn't and need too i'd recommend sony vegas. Otherwise the script looks fine.


i used youtube to mp3 converter but it can convert to ogg aswell do you think this stuffed it up?
(04-30-2012, 12:05 PM)jens Wrote: [ -> ]Have you checked the resource.cfg file (next to amnesia.exe) and made sure that custom_stories is listed as a directory with resources?


and yes i did?
might be i'm unsure.
Then make sure the .snt files specifies the correct .ogg file to play and finally make sure that the collision callback wolves actually triggers, best is to add a debug message to it so that you can see if it triggers.
i got it to work thanks Smile