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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom sound won't work.
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#1
Custom sound won't work.

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....
void func_play_sound1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Scary01", "Scary01.snt", "Player", 1.0f, false);
}

please help XD

[Image: 44917299.jpg]Dubstep <3
06-27-2011, 01:35 PM
Find
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#2
RE: Custom sound won't work.

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

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
06-27-2011, 01:43 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#3
RE: Custom sound won't work.

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

[Image: 44917299.jpg]Dubstep <3
06-27-2011, 01:59 PM
Find
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#4
RE: Custom sound won't work.

(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

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
06-27-2011, 01:59 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#5
RE: Custom sound won't work.

bump, I realy need help with this :/

[Image: 44917299.jpg]Dubstep <3
06-27-2011, 06:29 PM
Find
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#6
RE: Custom sound won't work.

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
06-27-2011, 08:56 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#7
RE: Custom sound won't work.

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.
06-27-2011, 08:58 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#8
RE: Custom sound won't work.

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

[Image: 44917299.jpg]Dubstep <3
06-27-2011, 09:27 PM
Find




Users browsing this thread: 2 Guest(s)