| 
		
	
		| Southlaguna   Member
 
 Posts: 70
 Threads: 21
 Joined: Jan 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| FragdaddyXXL   Member
 
 Posts: 136
 Threads: 20
 Joined: Apr 2012
 Reputation: 
7
 | 
			| 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?
 
 |  |  
	| 04-14-2012, 01:16 PM |  |  
	
		| Xanthos   Senior Member
 
 Posts: 318
 Threads: 9
 Joined: Mar 2012
 Reputation: 
8
 | 
			| 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 |  |  
	
		| FragdaddyXXL   Member
 
 Posts: 136
 Threads: 20
 Joined: Apr 2012
 Reputation: 
7
 | 
			| 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.
			 
 |  |  
	| 04-15-2012, 05:23 PM |  |  
	
		| DanielRand47   Member
 
 Posts: 109
 Threads: 16
 Joined: Mar 2012
 Reputation: 
3
 | 
			| 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 |  |  
	
		| Quick   Junior Member
 
 Posts: 3
 Threads: 0
 Joined: Jul 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| i3670   Posting Freak
 
 Posts: 1,308
 Threads: 74
 Joined: Oct 2011
 Reputation: 
36
 | 
			| 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
			 
 |  |  
	| 07-24-2012, 08:58 PM |  |  
	
		| Quick   Junior Member
 
 Posts: 3
 Threads: 0
 Joined: Jul 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| i3670   Posting Freak
 
 Posts: 1,308
 Threads: 74
 Joined: Oct 2011
 Reputation: 
36
 | 
			| 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
 
 |  |  
	| 07-24-2012, 11:17 PM |  |  
	
		| Quick   Junior Member
 
 Posts: 3
 Threads: 0
 Joined: Jul 2012
 Reputation: 
0
 | 
			| 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 |  |  |