Frictional Games Forum (read-only)
Turning Off Ambient Sound - 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: Turning Off Ambient Sound (/thread-44272.html)



Turning Off Ambient Sound - AGP - 04-14-2016

As weird as this title might strike you, I've been having the oddest problem.

Tesseract has been such a help to me, but sadly we have both been stumped on this.

In the map there are various ambient sounds set up to play, and for reaching the end of the map, I'd like it to go quiet, as it ends with some narration.

However, we've gone about several different ways of trying to silence it, but nothing has worked, and due to the complexity of the scripting (aka messiness of the hps file) I can't really post just the sound sections, so I've instead attached the whole hps file.

https://www.dropbox.com/s/646u1ng8i67edx1/helena_004.hps?dl=0

Thank you in advance for your help. <3


RE: Turning Off Ambient Sound - Spelos - 04-14-2016

Be careful with your naming.
In your script, you refer to the non existent timers of:
PHP Code:
    RemoveTimer("Soundloop2");
    
RemoveTimer("Soundloop3");
    
RemoveTimer("Soundloop4");
    
RemoveTimer("Soundloop5");
    
RemoveTimer("Soundloop6"); 

What you wanted to do is:
PHP Code:
    RemoveTimer("Sound2");
    
RemoveTimer("Sound3");
    
RemoveTimer("Sound4");
    
RemoveTimer("Sound5");
    
RemoveTimer("Sound6"); 

Since you have only one Soundloop1 that triggers Sound(s).
Hope this helps you. Smile


RE: Turning Off Ambient Sound - AGP - 04-14-2016

The sounds still play unfortunately. Sad


RE: Turning Off Ambient Sound - Spelos - 04-14-2016

In that case, there is a good chance that your .snt file has the Loop on.
If that is true, you need to Stop the Ambient sound manually like this:
PHP Code:
StopSound("Amb1");
StopSound("Amb2"); 



RE: Turning Off Ambient Sound - AGP - 04-14-2016

Huzzah! Brilliant! It works!