Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom sound won't work.
Author Message
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
SLAMnesia Offline
Member

Posts: 94
Joined: May 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)