Ah, my bad!
With the two changes you said, the error is this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/screens.rpy", line 353, in execute
screen main_menu():
File "game/screens.rpy", line 353, in execute
screen main_menu():
File "game/screens.rpy", line 364, in execute
if persistent.black:
File "game/screens.rpy", line 367, in execute
imagebutton auto "gui/menu/black_ground.png" xpos 1100 ypos 110 focus_mask True
File "renpy/common/00defaults.rpy", line 139, in _imagemap_auto_function
rv = auto_param % variant
TypeError: not all arguments converted during string formatting
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
python hide:
File "renpy/ast.py", line 922, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2218, in py_exec_bytecode
exec(bytecode, 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 "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3101, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3512, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/screen.py", line 432, in visit_all
callback(self)
File "renpy/display/core.py", line 3512, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/screen.py", line 443, in per_interact
self.update()
File "renpy/display/screen.py", line 631, in update
self.screen.function(**self.scope)
File "game/screens.rpy", line 353, in execute
screen main_menu():
File "game/screens.rpy", line 353, in execute
screen main_menu():
File "game/screens.rpy", line 364, in execute
if persistent.black:
File "game/screens.rpy", line 367, in execute
imagebutton auto "gui/menu/black_ground.png" xpos 1100 ypos 110 focus_mask True
File "renpy/ui.py", line 952, in _imagebutton
idle = choice(idle, idle_image, "idle", required=True)
File "renpy/ui.py", line 940, in choice
rv = renpy.config.imagemap_auto_function(auto, name)
File "renpy/common/00defaults.rpy", line 139, in _imagemap_auto_function
rv = auto_param % variant
TypeError: not all arguments converted during string formatting
Windows-10-10.0.19041
Ren'Py 7.4.4.1439
Graphic Test 1.0
Sun May 16 22:04:51 2021
As said, without that if-statement, the menu works perfectly fine :/
Also, what do you mean with the auto-thing? Like, should auto get taken out of all or just the "inactive" button?
Cause when I take it away from the inactive button, I get this error:
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/screens.rpy", line 367: expected a keyword argument, colon, or end of line.
imagebutton "gui/menu/black_ground.png" xpos 1100 ypos 110 focus_mask True
Ren'Py Version: Ren'Py 7.4.4.1439
Sun May 16 22:08:53 2021