weird error[solved]

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.
Post Reply
Message
Author
User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

weird error[solved]

#1 Post by Scribbles »

I have no idea what this means or how to fix it?? I haven't changed any core renpy files/scripts o.o

Code: Select all

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
what on earth has happened and how do I fix it?

here is the full traceback if that helps:

Code: Select all

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

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\bootstrap.py", line 295, in bootstrap
    renpy.main.main()
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\main.py", line 430, in main
    renpy.game.script.report_duplicate_labels()
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\script.py", line 890, in report_duplicate_labels
    if renpy.parser.report_parse_errors():
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\parser.py", line 2543, in report_parse_errors
    renpy.display.error.report_parse_errors(full_text, error_fn)
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\display\error.py", line 179, in report_parse_errors
    error_fn=error_fn,
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\game.py", line 280, in invoke_in_new_context
    return callable(*args, **kwargs)
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\display\error.py", line 43, in call_exception_screen
    return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\ui.py", line 285, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\display\core.py", line 2500, in interact
    i()
  File "renpy/common/00voice.rpy", line 360, in voice_interact
    if _menu:
NameError: global name '_menu' is not defined

Windows-8-6.2.9200
Ren'Py 6.99.12.3.2123
Pinewood Island 1.05
Last edited by Scribbles on Sun Jun 25, 2017 11:42 am, edited 1 time in total.
Image - Image -Image

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: weird error

#2 Post by Divona »

It's likely caused by having duplicate label name.
Completed:
Image

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: weird error

#3 Post by Scribbles »

found some, removed them, still get the error *sigh* going to rewrite the skeleton of my code and start from there and see what it happening
Image - Image -Image

User avatar
Bryy
Veteran
Posts: 407
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Re: weird error

#4 Post by Bryy »

I'm dealing with this right now, too.

I love how it's not like it can't just tell you where it is, and with others, it totally does.

User avatar
Saltome
Veteran
Posts: 244
Joined: Sun Oct 26, 2014 1:07 pm
Deviantart: saltome
Contact:

Re: weird error

#5 Post by Saltome »

Well I have no clue, but if you attach the script I'm willing to try and look around.
Deviant Art: Image
Discord: saltome
Itch: Phoenix Start

User avatar
Amaraine
Newbie
Posts: 16
Joined: Thu Apr 06, 2017 9:57 am
Projects: Bondage Island, Lucretia's Legacy
Contact:

Re: weird error

#6 Post by Amaraine »

Came across this thread when encountering the same problem. In my case it was because compiling caused the "from" statements to be added to calls, and when I cut and pasted a small chunk of code that included calls, I ended up with duplicate from statements.

bcoder
Newbie
Posts: 7
Joined: Tue Mar 29, 2016 9:13 am
Contact:

Re: weird error

#7 Post by bcoder »

Hey all, just wanted to say that in my case, this was caused by making a copy of script.rpy right before I made some sweeping find / replace changes. Somehow having both a script.rpy and a script - copy.rpy in the game directory caused this crash (even though I certainly never intended to call script - copy.rpy).

User avatar
Saltome
Veteran
Posts: 244
Joined: Sun Oct 26, 2014 1:07 pm
Deviantart: saltome
Contact:

Re: weird error

#8 Post by Saltome »

bcoder wrote:Somehow having both a script.rpy and a script - copy.rpy in the game directory caused this crash (even though I certainly never intended to call script - copy.rpy).
This makes sense. Because renpy loads all script files in the game folder, including copies.
Deviant Art: Image
Discord: saltome
Itch: Phoenix Start

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: weird error

#9 Post by papiersam »

Are you sure you caught all the duplicates? The traceback points to:

Code: Select all

    File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\script.py", line 890, in report_duplicate_labels
    if renpy.parser.report_parse_errors():
If you find that duplicate, and it throws the error, that line should change to show the new duplicate label (I'm thinking once it hits the first duplicate, it cascades and throws an error instead of looking for all of them). In any case, posting the current traceback is a start.

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: weird error

#10 Post by Scribbles »

r_sami wrote:Are you sure you caught all the duplicates? The traceback points to:

Code: Select all

    File "C:\Users\Jaime\Downloads\renpy-6.99.11-sdk\renpy\script.py", line 890, in report_duplicate_labels
    if renpy.parser.report_parse_errors():
If you find that duplicate, and it throws the error, that line should change to show the new duplicate label (I'm thinking once it hits the first duplicate, it cascades and throws an error instead of looking for all of them). In any case, posting the current traceback is a start.
This is an old error, I remember this nightmare LOL

it was a mixture of what everyone was saying, but since then I've had the whole code rewritten and a new framework put in by someone who knew what they were doing > < lol
Image - Image -Image

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: weird error

#11 Post by papiersam »

I...oh. I didn't even see the date. Haven't been here for quite a while.

Regardless, sorry for the thread necromancy.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]