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
Why my Soundfile trigger wont work?
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#1
Why my Soundfile trigger wont work?

So theres this area,where you enter,a sound file is supposed to play,but it doesnt.

AddEntityCollideCallback("Player", "VoiceTrigger", "Prisoner", true, 1);




void Prisoner(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "prisoner_edited.snt", "agrippa_1", 94, false);
}
(This post was last modified: 01-10-2012, 09:31 AM by kartanonperuna.)
01-09-2012, 05:26 PM
Website Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#2
RE: Why my Soundfile trigger wont work?

Could be that the sound is too short to fade in over 94 seconds.

Or could be that prisoner_edited.snt doesn't exist, or has a typo in the sound names, or otherwise has an error.

Have you made sure to reload the map using "Map Reload" and not "Quick Map Reload, or just restarted Amnesia? If not, the game won't know about the sound.

[Image: 16455.png]
01-09-2012, 05:33 PM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#3
RE: Why my Soundfile trigger wont work?

Hmm I see that my prisoner_edited isnt snt...how do i convert it to it?I have already tried the program "Sound File Converter" but theres no snt option...
01-09-2012, 05:35 PM
Website Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#4
RE: Why my Soundfile trigger wont work?

(01-09-2012, 05:35 PM)kartanonperuna Wrote: Hmm I see that my prisoner_edited isnt snt...how do i convert it to it?I have already tried the program "Sound File Converter" but theres no snt option...
You don't convert it. snt is not a sound file. It's a sound config file. It tells the game where to find the sound if it's a cue, the volume, if it should loop, etc.

If your sound is .ogg and you don't need a config file, then just tell your script to play prisoner_edited.ogg instead.

[Image: 16455.png]
(This post was last modified: 01-09-2012, 05:43 PM by MulleDK19.)
01-09-2012, 05:40 PM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#5
RE: Why my Soundfile trigger wont work?

Damn.Still doesnt work.I put the .ogg in the end.
01-09-2012, 05:43 PM
Website Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#6
RE: Why my Soundfile trigger wont work?

(01-09-2012, 05:43 PM)kartanonperuna Wrote: Damn.Still doesnt work.I put the .ogg in the end.
What exactly is your sound file called?


[Image: 16455.png]
01-09-2012, 05:53 PM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#7
RE: Why my Soundfile trigger wont work?

prisoner_edited.ogg
Need help with this.
Okay so there is snt file of it too now.Still doesnt work.I dont know what could be wrong...
(This post was last modified: 01-09-2012, 06:47 PM by kartanonperuna.)
01-09-2012, 05:57 PM
Website Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#8
RE: Why my Soundfile trigger wont work?

Do this



AddEntityCollideCallback("Player", "VoiceTrigger", "Prisoner", true, 1);




void Prisoner(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "prisoner_edited.snt", "agrippa_1", 0, false);
}




Then make a folder in your custom story called SOUNDS.
Then in the folder, Copy an ALREADY existing .snt file from the main SOUNDS folder, (and assuming you already have an edited .ogg file named prisoner_edited.ogg) copy that too, into the sounds folder in your custom story.
Then rename the .snt file to prisoner_edited.snt
So in your Sounds folder located in Amnesia:The Dark Descent>custom_stories>[Your Map Name] You should have 2 files, one called prisoner_edited.snt and prisoner_edited.ogg
open the prisoner_edited.snt with Notepad(preferably Notepd++)and replace whatever is in there with this
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="prisoner_edited" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.7" MinDistance="10" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="true" Use3D="True" Blockable="True" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>






Edit the properties to you desire.
You do NOT need to locate the file in the script or level editor, the game will find the file itself.


[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-10-2012, 07:01 AM by Tripication.)
01-10-2012, 07:00 AM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#9
RE: Why my Soundfile trigger wont work?

Doesnt work.
01-10-2012, 07:28 AM
Website Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#10
RE: Why my Soundfile trigger wont work?

(01-10-2012, 07:28 AM)kartanonperuna Wrote: Doesnt work.
ok
If you would like to .rar or .zip the map and all the files, and upload it to mediafire.com we might be able to solve it for you, or you can keep going through the forums but yeh. up to u

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-10-2012, 07:32 AM by Tripication.)
01-10-2012, 07:30 AM
Find




Users browsing this thread: 2 Guest(s)