Frictional Games Forum (read-only)

Full Version: Why my Soundfile trigger wont work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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);
}
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.
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)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.
Damn.Still doesnt work.I put the .ogg in the end.
(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?

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...
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.

Doesnt 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
Pages: 1 2