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 ain't working?
Author Message
sacroid Offline
Member

Posts: 88
Joined: Apr 2010
Reputation: 0
Post: #1
Custom sound ain't working?
So yeah, I'm working on a kinda very special proyect, wich I will announce in a few weeks.
The thing is, in a Hallway I have a clock in the center, and I made a custom sound of the clock ticking.
What I did was put the .ogg sound here:
..../custom stories/Madness/Sounds/

then the script:
PlaySoundAtEntity("clock_ticking", "clock_ticking.ogg", "clock_grandfather_1", 0.0, true);

-----

or to make it more clrear, here is the whole script:

void OnStart()
{  
AddEntityCollideCallback("Player", "Clocksound", "CollideClocksound", true, 1);
}

void OnEnter()
{
}

void CollideClocksound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("clock_ticking", "clock_ticking.ogg", "Player", 0.0, true);  [b]<---This is  the command that activates the sound)[/b]
SetSwingDoorClosed("autodoor", true, true);
GiveSanityDamage(5.0f, true);
PlaySoundAtEntity("doorslam", "15_slam_door.snt", "autodoor", 0.0, false);
PlaySoundAtEntity("reactdoor", "react_scare.snt", "Player", 0.0, false);
StartPlayerLookAt ("autodoor", 5, 5, "");
AddTimer("", 2, "stoplook3");
FadeImageTrailTo(1.0f, 10.0f);
FadeRadialBlurTo(0.15f, 10.0f);
AddTimer("", 0.5f, "TimerEndEffects");
StopSound("Rain", 2);
StopSound("Eerie", 2);

/// EVERY COMMAND WORKS EXCEPT THE SOUND ONE.
When I activate this trigger... it simply doesn't sound. Why?? XD

I think everything is right.. isn't it?

I would appreciate help!! Smile

(This post was last modified: 02-14-2011 11:10 PM by sacroid.)
02-14-2011 10:51 PM
Find all posts by this user Quote this message in a reply
Mofo Offline
Member

Posts: 71
Joined: Sep 2010
Reputation: 2
Post: #2
RE: Custom sound ain't working?
I think you need a .SNT file. Just copy one from the standard sounds and modify it.
02-14-2011 11:08 PM
Find all posts by this user Quote this message in a reply
sacroid Offline
Member

Posts: 88
Joined: Apr 2010
Reputation: 0
Post: #3
RE: Custom sound ain't working?
(02-14-2011 11:08 PM)Mofo Wrote:  I think you need a .SNT file. Just copy one from the standard sounds and modify it.

No, i've seen custom stories using their own sounds being .ogg format...

(This post was last modified: 02-14-2011 11:18 PM by sacroid.)
02-14-2011 11:11 PM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #4
RE: Custom sound ain't working?
You can play only with PlayMusic with that .ogg files. For PlaySoundAtEntity you have to make .snt files. And of course .snt files need their own .ogg files.

02-15-2011 12:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sacroid Offline
Member

Posts: 88
Joined: Apr 2010
Reputation: 0
Post: #5
RE: Custom sound ain't working?
(02-15-2011 12:18 AM)Tanshaydar Wrote:  You can play only with PlayMusic with that .ogg files. For PlaySoundAtEntity you have to make .snt files. And of course .snt files need their own .ogg files.

And how do I do myself an .snt file? Tongue

02-15-2011 10:55 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #6
RE: Custom sound ain't working?
Just copy the existing ones and edit them with notepad++

02-15-2011 07:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




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