For music and sfx I can set default values just fine with:
Code: Select all
define config.default_music_volume = 0.75
define config.default_sfx_volume = 0.95
Code: Select all
define config.default_amb_volume = 0.5
My ambience channel is properly set up, works, and has a working slider, so that's not the problem.I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/options.rpy", line 71, in script
define config.default_amb_volume = 0.5
File "game/options.rpy", line 71, in script
define config.default_amb_volume = 0.5
File "renpy/common/000namespaces.rpy", line 11, in set
setattr(self.nso, name, value)
Exception: config.default_amb_volume is not a known configuration variable.
I assume this means that I need to use a different method to set a default volume for a custom audio channel, but what method should I use?