Code: Select all
While running game code:
File "renpy/common/00barvalues.rpy", line 421, in set_mixer
_preferences.set_volume(self.mixer, value)
TypeError: 'float' object is not callable
I have also been attempting to change the default volumes so that the game doesn't start at full blast, but adding define config.default_music_volume = 0.25 to options.rpy has no effect and I suspect that it is related to the same issue causing the aforementioned error. I've attempted to remove any and all code I added that affects volume in any way, but the error still persists.
On a whim, I decided to build an android package to see how the game worked on my phone and interestingly there was no issue with adjusting the volume and the default volume was set exactly where it should be when I opened the preferences. I wasn't going to bother figuring this out just yet, but after it worked fine on my phone, I'm desperately trying to find a solution and haven't found anything so far. I'm not terribly familiar with python or programing in general, so I'm really lost at this point.
(EDIT)
Maybe I should also mention that the sliders for text speed and auto-forward work fine.
Code: Select all
Full traceback:
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
python hide:
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\ast.py", line 881, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\python.py", line 1913, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
python hide:
File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
ui.interact()
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\ui.py", line 289, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\core.py", line 2672, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\core.py", line 3477, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\transition.py", line 47, in event
return self.new_widget.event(ev, x, y, st) # E1101
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\screen.py", line 697, in event
rv = self.child.event(ev, x, y, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 244, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 244, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 244, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\viewport.py", line 305, in event
rv = super(Viewport, self).event(ev, x, y, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 244, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\layout.py", line 998, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\behavior.py", line 1860, in event
rv = self.adjustment.change(value)
File "C:\Program Files (x86)\renpy-7.1.1-sdk\renpy\display\behavior.py", line 1510, in change
return self.changed(value)
File "renpy/common/00barvalues.rpy", line 421, in set_mixer
_preferences.set_volume(self.mixer, value)
TypeError: 'float' object is not callable