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
Script Help Problems with sounds (more help needed)
Sazureth Offline
Junior Member

Posts: 20
Threads: 8
Joined: Jan 2012
Reputation: 0
#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
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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
Sazureth Offline
Junior Member

Posts: 20
Threads: 8
Joined: Jan 2012
Reputation: 0
#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
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#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.

I rate it 3 memes.
05-09-2012, 06:54 PM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#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
Sazureth Offline
Junior Member

Posts: 20
Threads: 8
Joined: Jan 2012
Reputation: 0
#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
warmacha11 Offline
Junior Member

Posts: 38
Threads: 2
Joined: May 2012
Reputation: 1
#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




Users browsing this thread: 2 Guest(s)