Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
custom sounds not working
Author Message
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
custom sounds not working

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?
(This post was last modified: 04-30-2012, 11:54 AM by zombiehacker595.)
04-30-2012, 11:54 AM
Find Reply
jens Offline
Frictional Games

Posts: 4,095
Threads: 199
Joined: Apr 2006
Reputation: 202
#2
RE: custom sounds not working

Have you checked the resource.cfg file (next to amnesia.exe) and made sure that custom_stories is listed as a directory with resources?
04-30-2012, 12:05 PM
Website Find Reply
trollox Offline
Member

Posts: 215
Threads: 16
Joined: Dec 2011
Reputation: 3
#3
RE: custom sounds not working

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
Find Reply
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#4
RE: custom sounds not working

(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?
(This post was last modified: 04-30-2012, 12:20 PM by zombiehacker595.)
04-30-2012, 12:19 PM
Find Reply
trollox Offline
Member

Posts: 215
Threads: 16
Joined: Dec 2011
Reputation: 3
#5
RE: custom sounds not working

might be i'm unsure.
04-30-2012, 01:02 PM
Find Reply
jens Offline
Frictional Games

Posts: 4,095
Threads: 199
Joined: Apr 2006
Reputation: 202
#6
RE: custom sounds not working

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.
04-30-2012, 01:18 PM
Website Find Reply
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#7
RE: custom sounds not working

i got it to work thanks Smile
04-30-2012, 01:29 PM
Find Reply




Users browsing this thread: 1 Guest(s)