EDIT: after postin this, i realized my quickmenu no longer works even though i literally haven't touched it at all. dunno if it has something to do with this error.
I implemented a "Continue" button into my main menu using some cookbook code and for te most part it's working great. The button itself functions correctly, but a couple hours after I implemented the code, Ren'Py gives me this error message every time I click "New game" or "Continue".
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00start.rpy", line 301, in script call
call expression "before_main_menu"
File "game/script.rpy", line 68, in script
call screen confirm (message = u "Are you sure you want to restart the game?", yes_action = Start (), no_action = Jump ("main_menu"))
File "renpy/common/000statements.rpy", line 526, in execute_call_screen
args, kwargs = a.evaluate()
SyntaxError: invalid syntax (game/script.rpy, line 68)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/00start.rpy", line 301, in script call
call expression "before_main_menu"
File "game/script.rpy", line 68, in script
call screen confirm (message = u "Are you sure you want to restart the game?", yes_action = Start (), no_action = Jump ("main_menu"))
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\ast.py", line 1947, in execute
self.call("execute")
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\ast.py", line 1935, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\statements.py", line 277, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 526, in execute_call_screen
args, kwargs = a.evaluate()
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\ast.py", line 188, in evaluate
kwargs[k] = renpy.python.py_eval(v, locals=scope)
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\python.py", line 2033, in py_eval
code = py_compile(code, 'eval')
File "C:\Users\chesw\Documents\renpy-7.3.2-sdk\renpy\python.py", line 690, in py_compile
raise e
SyntaxError: invalid syntax (game/script.rpy, line 68)
Windows-8-6.2.9200
Ren'Py 7.3.2.320
Lovesick 1.0
Wed Aug 21 21:25:23 2019
Code: Select all
label main_menu:
call screen main_menu
label restart:
call screen confirm (message = u "Are you sure you want to restart the game?", yes_action = Start (), no_action = Jump ("main_menu"))
### Auto-save activation:
init -1 python hide:
config.has_autosave = True
init +1 python:
class LoadMostRecent():
def __init__(self):
self.slot = renpy.newest_slot()
def __call__(self):
renpy.load(self.slot)
def get_sensitive(self):
return self.slot is not None
This is very annoying and takes up a lot of my time since I can't easily reload my game without getting the error. Has anyone had anything similar?