Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00gamemenu.rpy", line 166, in script
jump expression _game_menu_screen
ScriptError: could not find label 'game_menu'.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/00gamemenu.rpy", line 166, in script
jump expression _game_menu_screen
File "C:\Users\Brian\Desktop\REN'PY\renpy-6.18.1-sdk\renpy\ast.py", line 1480, in execute
rv = renpy.game.script.lookup(target)
File "C:\Users\Brian\Desktop\REN'PY\renpy-6.18.1-sdk\renpy\script.py", line 602, in lookup
raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'game_menu'.
Windows-8-6.2.9200
Ren'Py 6.99.3.404
Sample Game
For one, even though the cookbook calls to put it in after start, it'll cause less issues with rollback if you put that definition into an init.
For two, I put that exact code into a test program and ran across no errors. I was running 6.99, and not 6.18 however. It also worked just fine with the definition in an init.
Doublecheck that you didn't misspell the game_menu screen, I guess.
But I'm using Ren'Py 6.99.03.404...
Anyway, how weird... I just erased the code, saved the script, opened my game, and put it back in... It seems to work fine now. I'll mark this thread as solved. Thanks for your help... :3