Frictional Games Forum (read-only)
Custom sound problem - 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: Custom sound problem (/thread-12832.html)



Custom sound problem - Shives - 01-24-2012

I have got a problem with custom sounds
I've created a sound folder in the folder of the custom story
In this sound folder i've created a ogg file with the name Ghost.ogg. In the script I've written
PlaySoundAtEntity("", "Ghost.ogg", "Player_1",0,false);
But in the game nothing happens. Whith other sounds from the game it works.


RE: Custom sound problem - trollox - 01-24-2012

Have You created a .snt file inside of the sound folder where the .ogg file should be saved?


RE: Custom sound problem - Shives - 01-25-2012

(01-24-2012, 03:24 PM)trollox Wrote: Have You created a .snt file inside of the sound folder where the .ogg file should be saved?
Now i have tried it but it doesn't work too.
Maybe i transformed the ogg file to snt wrong. I just changed the name
of the file from Ghost.ogg to Ghost.snt


RE: Custom sound problem - flamez3 - 01-25-2012

Make a text document. Then change it to .txt to .snt. Now add this:


Quote:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Ghost.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
Make sure they are the same name.