Frictional Games Forum (read-only)
How do i add Sounds/Voices to my Custom Story - 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 do i add Sounds/Voices to my Custom Story (/thread-14205.html)

Pages: 1 2


RE: How do i add Sounds/Voices to my Custom Story - Southlaguna - 04-14-2012

(04-10-2012, 02:23 PM)Daniel47 Wrote: I've got the jist of what is being explained here. I know that for custom made sounds/voices/music, they need to go through an audio converter and so on. However, do I need to do the same thing for the original Amnesia sounds/music?
No for the original music on Amnesia you just need to type in the script

for sound:
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


for Music:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);



RE: How do i add Sounds/Voices to my Custom Story - FragdaddyXXL - 04-14-2012

Do I have to put my custom sounds and music in the Amnesia's sounds and music folders? Is there a way for the engine to search in my CS folder? Without a full conversion?



RE: How do i add Sounds/Voices to my Custom Story - Xanthos - 04-14-2012

(04-14-2012, 01:16 PM)FragdaddyXXL Wrote: Do I have to put my custom sounds and music in the Amnesia's sounds and music folders? Is there a way for the engine to search in my CS folder? Without a full conversion?
Put all custom sounds here
amnesia the dark descent > custom_stories > CustomStoryName >sounds > HERE!
and
amnesia the dark descent > custom_stories > CustomStoryName >music > HERE!



RE: How do i add Sounds/Voices to my Custom Story - FragdaddyXXL - 04-15-2012

(04-14-2012, 07:20 PM)Xanthos Wrote:
(04-14-2012, 01:16 PM)FragdaddyXXL Wrote: Do I have to put my custom sounds and music in the Amnesia's sounds and music folders? Is there a way for the engine to search in my CS folder? Without a full conversion?
Put all custom sounds here
amnesia the dark descent > custom_stories > CustomStoryName >sounds > HERE!
and
amnesia the dark descent > custom_stories > CustomStoryName >music > HERE!
Ah! Very good. Thank you.




RE: How do i add Sounds/Voices to my Custom Story - DanielRand47 - 05-31-2012

(04-14-2012, 12:21 AM)Southlaguna Wrote:
(04-10-2012, 02:23 PM)Daniel47 Wrote: I've got the jist of what is being explained here. I know that for custom made sounds/voices/music, they need to go through an audio converter and so on. However, do I need to do the same thing for the original Amnesia sounds/music?
No for the original music on Amnesia you just need to type in the script

for sound:
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


for Music:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
Thanks, this will help a lot. Sorry for the late response.
http://www.frictionalgames.com/forum/thread-14182.html


RE: How do i add Sounds/Voices to my Custom Story - Quick - 07-24-2012

Okay, I'm a 15-years old guy and i really enjoy scripting/level editing in general. however, I'm just a begginer, so here's my question:
The script for custom SOUNDS is:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Enter you ogg file to play here.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="5" MinDistance="1" MaxDistance="50" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7" Priority="5" />
</SOUNDENTITY>


Thats for custom SOUNDS, right? But, what do type for custom MUSIC? Referring to the music you hear the entire level. Thanks in advance.


RE: How do i add Sounds/Voices to my Custom Story - i3670 - 07-24-2012

You don't need a snt file for music only an .ogg file e.g. the music file


RE: How do i add Sounds/Voices to my Custom Story - Quick - 07-24-2012

(07-24-2012, 08:58 PM)i3670 Wrote: You don't need a snt file for music only an .ogg file e.g. the music file
So, I just create an "music" folder in my "CustomStoryName" folder, and put the .ogg file in it?
But, how will the game know which track should be on for which level?
Do I rename the .ogg file with the same name as the map i want it to play in, or do I do something else?
Thanks on the fast reply on a little old thread.


RE: How do i add Sounds/Voices to my Custom Story - i3670 - 07-24-2012

You name whatever you want and just use
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);



Plays music.




asMusicFile - the music to play + extension .ogg


abLoop - determines whether a music track should loop


afVolume - volume of the music


afFadeTime - time in seconds until music reaches full volume


alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc


RE: How do i add Sounds/Voices to my Custom Story - Quick - 07-25-2012

(07-24-2012, 11:17 PM)i3670 Wrote: You name whatever you want and just use
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);



Plays music.




asMusicFile - the music to play + extension .ogg


abLoop - determines whether a music track should loop


afVolume - volume of the music


afFadeTime - time in seconds until music reaches full volume


alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc
Works like a charm, thanks a lot!