Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i add Sounds/Voices to my Custom Story
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#11
RE: How do i add Sounds/Voices to my Custom Story

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

04-14-2012, 12:21 AM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#12
RE: How do i add Sounds/Voices to my Custom Story

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?

Dark Seclusion Here
04-14-2012, 01:16 PM
Find
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#13
RE: How do i add Sounds/Voices to my Custom Story

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

(This post was last modified: 04-14-2012, 07:21 PM by Xanthos.)
04-14-2012, 07:20 PM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#14
RE: How do i add Sounds/Voices to my Custom Story

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


Dark Seclusion Here
04-15-2012, 05:23 PM
Find
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#15
RE: How do i add Sounds/Voices to my Custom Story

(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
05-31-2012, 11:42 PM
Find
Quick Offline
Junior Member

Posts: 3
Threads: 0
Joined: Jul 2012
Reputation: 0
#16
RE: How do i add Sounds/Voices to my Custom Story

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.
07-24-2012, 08:01 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#17
RE: How do i add Sounds/Voices to my Custom Story

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

"What you think is irrelevant" - A character of our time

A Christmas Hunt
07-24-2012, 08:58 PM
Find
Quick Offline
Junior Member

Posts: 3
Threads: 0
Joined: Jul 2012
Reputation: 0
#18
RE: How do i add Sounds/Voices to my Custom Story

(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.
07-24-2012, 09:11 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#19
RE: How do i add Sounds/Voices to my Custom Story

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

"What you think is irrelevant" - A character of our time

A Christmas Hunt
07-24-2012, 11:17 PM
Find
Quick Offline
Junior Member

Posts: 3
Threads: 0
Joined: Jul 2012
Reputation: 0
#20
RE: How do i add Sounds/Voices to my Custom Story

(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!
07-25-2012, 12:08 PM
Find




Users browsing this thread: 2 Guest(s)