Oh dear, for the first time I have an “uncaught exception” whatever that is. I have been setting up a game and without warning this message came up:
I'm sorry, but an uncaught exception occurred.
After initialization, but before game start.
File "renpy/common/00voice.rpy", line 360, in voice_interact
if _menu:
NameError: global name '_menu' is not defined
I have no idea what to do! I have a backup file but I will lose six hours of work so I’d prefer to fix this exception if I can! Very grateful for any advice people can give me.
Help with uncaught exception: '_menu' is not defined
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.
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.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Help with uncaught exception: '_menu' is not defined
An "uncaught exception" means Ren'Py didn't catch/detect it before trying to run/build the game and failed after trying to start your game.
This particular error is usually caused by duplicate label names or using a variable that shares its name with a label.
I'd suggest double-checking your label names are all unique.
This particular error is usually caused by duplicate label names or using a variable that shares its name with a label.
I'd suggest double-checking your label names are all unique.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Help with uncaught exception: '_menu' is not defined
Though it might not be the issue here, I recall this or a similar error occurring when a label or named menu is defined twice.
Perhaps, just in case, look through your code and just check you do not have duplicate label / menu names.
Other than that, what were you actually changing in your code before getting the error?
Perhaps, just in case, look through your code and just check you do not have duplicate label / menu names.
Other than that, what were you actually changing in your code before getting the error?
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Re: Help with uncaught exception: '_menu' is not defined
Thanks, I managed to fix it and save all my work
I could not find anything that I considered an exact duplication in the new label that caused the crash, but I reworked it until it behaved itself.
I appreciate your advice!
I could not find anything that I considered an exact duplication in the new label that caused the crash, but I reworked it until it behaved itself.
I appreciate your advice!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Ocelot