Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


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

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
jens Offline
Frictional Games

Posts: 3,558
Joined: Apr 2006
Reputation: 172
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
trollox Offline
Member

Posts: 215
Joined: Dec 2011
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
trollox Offline
Member

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

might be i'm unsure.
04-30-2012 01:02 PM
Find all posts by this user Quote this message in a reply
jens Offline
Frictional Games

Posts: 3,558
Joined: Apr 2006
Reputation: 172
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

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

i got it to work thanks Smile
04-30-2012 01:29 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)