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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Problems with sounds (more help needed)
Author Message
Sazureth Offline
Junior Member

Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #1
Problems with sounds (more help needed)

Hey, what could be the reason for a .snt sound loop not playing unless I'm inside a certain area? If I'm simply not in that mysterious area, I can't hear the sound play at all.

The only function I'm using is PlaySoundAtEntity ("", "general_rain_m.snt", "Player", 1, false); which I've tried to call both on OnStart() and in its own function.
Changing the bool or the fade time has no effect.

/E: Solved, thank you!
(This post was last modified: 05-12-2012 12:56 PM by Sazureth.)
05-09-2012 06:06 PM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 922
Joined: Apr 2012
Reputation: 37
Post: #2
RE: Rain loop stops playing when outside certain area

(05-09-2012 06:06 PM)Sazureth Wrote:  Hey, what could be the reason for a .snt sound loop not playing unless I'm inside a certain area? If I'm simply not in that mysterious area, I can't hear the sound play at all.

The only function I'm using is PlaySoundAtEntity ("", "general_rain_m.snt", "Player", 1, false); which I've tried to call both on OnStart() and in its own function.
Changing the bool or the fade time has no effect.
How big is this area?
I assume that it's big, but I'd be very happy for exact measurements.

Noob scripting tutorial: From Noob to Pro

05-09-2012 06:11 PM
Find all posts by this user Quote this message in a reply
Sazureth Offline
Junior Member

Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #3
RE: Rain loop stops playing when outside certain area

(05-09-2012 06:11 PM)Cranky Old Man Wrote:  
(05-09-2012 06:06 PM)Sazureth Wrote:  Hey, what could be the reason for a .snt sound loop not playing unless I'm inside a certain area? If I'm simply not in that mysterious area, I can't hear the sound play at all.

The only function I'm using is PlaySoundAtEntity ("", "general_rain_m.snt", "Player", 1, false); which I've tried to call both on OnStart() and in its own function.
Changing the bool or the fade time has no effect.
How big is this area?
I assume that it's big, but I'd be very happy for exact measurements.
It is pretty big. I have so much stuff on the map to block movement that giving measurements is somewhat difficult. The map, compared to most campaing maps, is enormous and the area is about the size of Wine Cellar, maybe slightly bigger.
05-09-2012 06:26 PM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 922
Joined: Apr 2012
Reputation: 37
Post: #4
RE: Rain loop stops playing when outside certain area

Post erased. My theory was completely wrong.

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 05-09-2012 07:06 PM by Cranky Old Man.)
05-09-2012 06:31 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #5
RE: Rain loop stops playing when outside certain area

The SNT file specifies the maximum distance the sound can be heard at.

Tutorials: From Noob to Pro
(This post was last modified: 05-09-2012 06:50 PM by Your Computer.)
05-09-2012 06:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Adny Offline
Posting Freak

Posts: 1,788
Joined: Mar 2012
Reputation: 173
Post: #6
RE: Rain loop stops playing when outside certain area

Why not place the sound file in the level editor? Much more convenient for looping/ambient sound effects.

ヽ༼ຈل͜ຈ༽ノ raise your chawwwwwwys ヽ༼ຈل͜ຈ༽ノ
05-09-2012 06:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Adrianis Offline
Senior Member

Posts: 632
Joined: Feb 2012
Reputation: 27
Post: #7
RE: Rain loop stops playing when outside certain area

Open up the .snt in Notepad++, and look for the maximum distance setting. That's the 'mysterious area' of effect for the sound Tongue
05-09-2012 07:01 PM
Find all posts by this user Quote this message in a reply
Sazureth Offline
Junior Member

Posts: 20
Joined: Jan 2012
Reputation: 0
Post: #8
RE: Rain loop stops playing when outside certain area

Okay, everything above is solved and working, but now I've come up with another problem - I don't know how to make the custom story use sounds from the custom story sounds-folder.

I ran some tests; tried to change the file names and editing the .snt and I noticed that my story plays all sounds from the Amnesia parent folder, not the custom story subfolder. How can I change this? (because now I cannot use custom sounds at all)
05-12-2012 01:11 PM
Find all posts by this user Quote this message in a reply
warmacha11 Offline
Junior Member

Posts: 38
Joined: May 2012
Reputation: 1
Post: #9
RE: Problems with sounds (more help needed)

did you a make a .snt file for your .ogg sound file? if so, can you post it?
(This post was last modified: 07-14-2012 11:24 PM by warmacha11.)
07-14-2012 11:23 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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