Frictional Games Forum (read-only)
Custom sound won't work. - 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 sound won't work. (/thread-8838.html)



Custom sound won't work. - xtron - 06-27-2011

I tried to add a custom sound, it works fine with the suitor from Justine but this one doesn't. I made a new map inside of sounds called "custom" ( I added the custom folder in both custom_stories/WEhRTY/sounds/ and redist/sounds/ ). I copied a .snt and renamed it and edited it to the custom sounds benefit and when I go ingame and pass the area it wont play o.O.

Any ideas?

Here's my code....
Code:
void func_play_sound1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Scary01", "Scary01.snt", "Player", 1.0f, false);
}

please help XD


RE: Custom sound won't work. - TheDavenia - 06-27-2011

You sure the code doesn't have to be like this:

void func_play_sound1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("korven01", "korven01.snt", "korv", 1.0f, false);
}

? XD


RE: Custom sound won't work. - xtron - 06-27-2011

the "player" is where it should be plaied XD so...I want it to be plaied at the Player. Not at the korv hahahaha


RE: Custom sound won't work. - TheDavenia - 06-27-2011

(06-27-2011, 01:59 PM)xtron Wrote: the "player" is where it should be plaied XD so...I want it to be plaied at the Player. Not at the korv hahahaha

lol


RE: Custom sound won't work. - xtron - 06-27-2011

bump, I realy need help with this :/


RE: Custom sound won't work. - SLAMnesia - 06-27-2011

hey xtron, how did you convert your sound file to .snt? i can only convert mine to .ogg
i have audacity ect

and idk how to help you Big Grin


RE: Custom sound won't work. - rojkish - 06-27-2011

Have you written this in your .snt file yet?

Spoiler below!

<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="close_door" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="0.5" MaxDistance="12" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>


Sound file should be the .ogg file.


RE: Custom sound won't work. - xtron - 06-27-2011

(06-27-2011, 08:56 PM)SLAMnesia Wrote: hey xtron, how did you convert your sound file to .snt? i can only convert mine to .ogg
i have audacity ect

and idk how to help you Big Grin

just copy like amb01.snt and rename it and change the sound name XD


@Rojkish

I just copied another .snt file and changed the name of it and the sound name in the file.