[SCRIPT] Problems with sounds (more help needed) - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Problems with sounds (more help needed) (/thread-15345.html) |
Problems with sounds (more help needed) - Sazureth - 05-09-2012 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! RE: Rain loop stops playing when outside certain area - Cranky Old Man - 05-09-2012 (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.How big is this area? I assume that it's big, but I'd be very happy for exact measurements. RE: Rain loop stops playing when outside certain area - Sazureth - 05-09-2012 (05-09-2012, 06:11 PM)Cranky Old Man Wrote: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: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.How big is this area? RE: Rain loop stops playing when outside certain area - Cranky Old Man - 05-09-2012 Post erased. My theory was completely wrong. RE: Rain loop stops playing when outside certain area - Your Computer - 05-09-2012 The SNT file specifies the maximum distance the sound can be heard at. RE: Rain loop stops playing when outside certain area - Adny - 05-09-2012 Why not place the sound file in the level editor? Much more convenient for looping/ambient sound effects. RE: Rain loop stops playing when outside certain area - Adrianis - 05-09-2012 Open up the .snt in Notepad++, and look for the maximum distance setting. That's the 'mysterious area' of effect for the sound RE: Rain loop stops playing when outside certain area - Sazureth - 05-12-2012 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) RE: Problems with sounds (more help needed) - warmacha11 - 07-14-2012 did you a make a .snt file for your .ogg sound file? if so, can you post it? |