Frictional Games Forum (read-only)
Custom sounds not working! - 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 sounds not working! (/thread-15000.html)

Pages: 1 2


Custom sounds not working! - finScript - 04-22-2012

My sound file's name: sound_01_thunders_and_rain.ogg
I made an .snt file:
Code:
<SOUNDENTITY> <SOUNDS>    <Main>      <Sound File="sound_01_thunders_and_rain.ogg" />       </Main>   </SOUNDS>  <PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="True" Loop="True" Use3D="False" Blockable="False" BlockVolumeMul="0.5" Priority="0" /></SOUNDENTITY>


Still it's not working when I try to put it in-game or use PlaySoundAtEntity()


RE: Custom sounds not working! - JetlinerX - 04-22-2012

Need your in game script too.



RE: Custom sounds not working! - finScript - 04-22-2012

(04-22-2012, 04:22 PM)JetlinerX Wrote: Need your in game script too.
Actually i mean with "in-game" that i select in level editor sounds and add my sound there


RE: Custom sounds not working! - overscore - 04-23-2012

Try removing .ogg from the sound file name.


RE: Custom sounds not working! - Stepper321 - 04-23-2012

No, you need the .ogg, try following this tutorial: http://wiki.frictionalgames.com/hpl2/tutorials/script/page


RE: Custom sounds not working! - finScript - 04-23-2012

(04-23-2012, 05:51 PM)Stepper321 Wrote: No, you need the .ogg, try following this tutorial: http://wiki.frictionalgames.com/hpl2/tutorials/script/page
I've done my things just like in tutorial


RE: Custom sounds not working! - Stepper321 - 04-23-2012

Can i get your script file please?


RE: Custom sounds not working! - finScript - 04-24-2012

(04-23-2012, 07:16 PM)Stepper321 Wrote: Can i get your script file please?
Code:
void OnStart(){
PlaySoundAtEntity("", "sound_01_thunders_and_rain.snt", "Player", 0, false);}





RE: Custom sounds not working! - Stepper321 - 04-25-2012

(04-24-2012, 06:22 PM)tappara97 Wrote:
(04-23-2012, 07:16 PM)Stepper321 Wrote: Can i get your script file please?
Code:
void OnStart(){
PlaySoundAtEntity("", "sound_01_thunders_and_rain.snt", "Player", 0, false);
}
Mmmm, I ain't sure. Press enter after the ;, so it looks what i made it like in the quote, it's exactly the same function tough. Try it on 'void OnEnter(){ ... }'




RE: Custom sounds not working! - Acies - 04-26-2012

Remember to always render sounds used for PlaySoundAt in "Mono" format. Add that to your tutorial as well :>