Frictional Games Forum (read-only)
Why my Soundfile trigger wont work? - 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: Why my Soundfile trigger wont work? (/thread-12494.html)

Pages: 1 2


Why my Soundfile trigger wont work? - kartanonperuna - 01-09-2012

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);
}


RE: Why my Soundfile trigger wont work? - MulleDK19 - 01-09-2012

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.


RE: Why my Soundfile trigger wont work? - kartanonperuna - 01-09-2012

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


RE: Why my Soundfile trigger wont work? - MulleDK19 - 01-09-2012

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


RE: Why my Soundfile trigger wont work? - kartanonperuna - 01-09-2012

Damn.Still doesnt work.I put the .ogg in the end.


RE: Why my Soundfile trigger wont work? - MulleDK19 - 01-09-2012

(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?




RE: Why my Soundfile trigger wont work? - kartanonperuna - 01-09-2012

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


RE: Why my Soundfile trigger wont work? - Tripication - 01-10-2012

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.




RE: Why my Soundfile trigger wont work? - kartanonperuna - 01-10-2012

Doesnt work.


RE: Why my Soundfile trigger wont work? - Tripication - 01-10-2012

(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