custom sounds not working - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: custom sounds not working (/thread-15189.html) |
custom sounds not working - zombiehacker595 - 04-30-2012 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 folder 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? RE: custom sounds not working - jens - 04-30-2012 Have you checked the resource.cfg file (next to amnesia.exe) and made sure that custom_stories is listed as a directory with resources? RE: custom sounds not working - trollox - 04-30-2012 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. RE: custom sounds not working - zombiehacker595 - 04-30-2012 (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? RE: custom sounds not working - trollox - 04-30-2012 might be i'm unsure. RE: custom sounds not working - jens - 04-30-2012 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. RE: custom sounds not working - zombiehacker595 - 04-30-2012 i got it to work thanks |