Frictional Games Forum (read-only)
How to Implement Custom Voices? - 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: How to Implement Custom Voices? (/thread-13210.html)



How to Implement Custom Voices? - Strembitsky - 02-10-2012

I have some voice recordings I would like to use in my CS. I know that I can just copy and paste the files into the sounds folder in Amnesia, but that won't be downloaded with the CS, will it? Help o.o


RE: How to Implement Custom Voices? - Tripication - 02-10-2012

The easiest way is to make ur own .ogg and copy a .snt file from the main game. Then edit the .snt fil to play your .ogg and in the scripting, make sure you play the .snt files name not the .ogg


RE: How to Implement Custom Voices? - Strembitsky - 02-10-2012

(02-10-2012, 03:23 AM)Tripication Wrote: The easiest way is to make ur own .ogg and copy a .snt file from the main game. Then edit the .snt fil to play your .ogg and in the scripting, make sure you play the .snt files name not the .ogg
But where would I put the files? Which folder?


RE: How to Implement Custom Voices? - Tripication - 02-10-2012

put the files in a sounds folder in your custom story's folder so Amnesia>custom_stories>CSName>sounds

Also, i forget who told me this, but the game will resolve paths on its own. So usually it doesn't matter, but just to keep it neat nd easy to use, make a sounds folder


RE: How to Implement Custom Voices? - Strembitsky - 02-10-2012

Okay, now, I was told you could use this:
Code:
AddEffectVoice(string& asVoiceFile, string& asEffectFile, string& asTextCat, string& asTextEntry, bool abUsePosition, string& asPosEntity, float afMinDistance, float afMaxDistance);
in order to play voices, and have subtitles. The information on the wiki isn't specific enough. Assistance?


RE: How to Implement Custom Voices? - Your Computer - 02-10-2012

You don't have to provide an effect file path; everything else is self-explanatory.