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 problem
Author Message
Shives Offline
Member

Posts: 154
Joined: Jan 2012
Reputation: 1
Post: #1
Custom sound problem
I have got a problem with custom sounds
I've created a sound folder in the folder of the custom story
In this sound folder i've created a ogg file with the name Ghost.ogg. In the script I've written
PlaySoundAtEntity("", "Ghost.ogg", "Player_1",0,false);
But in the game nothing happens. Whith other sounds from the game it works.

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


01-24-2012 03:04 PM
Find all posts by this user Quote this message in a reply
trollox Offline
Member

Posts: 223
Joined: Dec 2011
Reputation: 3
Post: #2
RE: Custom sound problem
Have You created a .snt file inside of the sound folder where the .ogg file should be saved?
01-24-2012 03:24 PM
Find all posts by this user Quote this message in a reply
Shives Offline
Member

Posts: 154
Joined: Jan 2012
Reputation: 1
Post: #3
RE: Custom sound problem
(01-24-2012 03:24 PM)trollox Wrote:  Have You created a .snt file inside of the sound folder where the .ogg file should be saved?
Now i have tried it but it doesn't work too.
Maybe i transformed the ogg file to snt wrong. I just changed the name
of the file from Ghost.ogg to Ghost.snt

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


01-25-2012 01:03 PM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #4
RE: Custom sound problem
Make a text document. Then change it to .txt to .snt. Now add this:


Quote:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Ghost.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
Make sure they are the same name.

01-25-2012 01:23 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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