I keep getting the expected menuitem error 6^9

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
lostumbrella
Newbie
Posts: 1
Joined: Mon Feb 12, 2018 5:40 pm
Contact:

I keep getting the expected menuitem error 6^9

#1 Post by lostumbrella »

hey uh
im really bad at starting stuff so ill just jump right into it
i keep getting the expected menuitem error. this is literally the first time of me programming so im clueless on how to fix this



this is the thing if anybody needs it-

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 111: expected menuitem
    jump getclosetocat
    ^

Ren'Py Version: Ren'Py 6.99.14.1.3218
Mon Feb 12 23:34:57 2018
yyyeah im a noob

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: I keep getting the expected menuitem error 6^9

#2 Post by mitoky »

Please post the part where the error comes from!

irredeemable
Regular
Posts: 78
Joined: Thu Feb 08, 2018 7:57 am
Contact:

Re: I keep getting the expected menuitem error 6^9

#3 Post by irredeemable »

Check your indentation. You most likely have something like this:

Code: Select all

menu:
    "Choice 1":
        jump choice1
    "Choice 2":
        jump choice2
    jump getclosetocat
Which should be:

Code: Select all

menu:
    "Choice 1":
        jump choice1
    "Choice 2":
        jump choice2
jump getclosetocat

ShogunOfSorrow
Newbie
Posts: 1
Joined: Thu Mar 22, 2018 6:55 pm
Tumblr: shogun-of-sorrow.tumblr.com
Contact:

Re: I keep getting the expected menuitem error 6^9

#4 Post by ShogunOfSorrow »

I'm also new and am having a similar issue, I keep getting an "expected menuitem" error on a label and I can't seem to figure out what's wrong with it?

Code: Select all

menu identity:

   "I'm the new janitor.":
      jump option1_selected
   "I'm the new human mascot.":
      jump option2_selected
   label option1_selected:
      r "Sweet, can you clean my office for me? Mags keeps bugging me about it."
      l "No."
      r "What kind of janitor are you then?"
      hide roddy smug
      show black with dissolve
      jump option1_done
   label option2_selected:
      r "Ooo! Cool! Can you do a funny little dance for me? No matter how much I ask, Swerve always refuses."
      l "No."
      r "What kind of mascot are you then?"
      hide roddy smug
      show black with dissolve
      jump option2_done
   label option1_done:
   label option2_done:

    # This ends the game.

return 
Any idea on what I'm missing here?

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: I keep getting the expected menuitem error 6^9

#5 Post by rayminator »

ShogunOfSorrow wrote: Thu Mar 22, 2018 7:08 pm I'm also new and am having a similar issue, I keep getting an "expected menuitem" error on a label and I can't seem to figure out what's wrong with it?

Code: Select all

menu identity:

   "I'm the new janitor.":
      jump option1_selected
   "I'm the new human mascot.":
      jump option2_selected
   label option1_selected:
      r "Sweet, can you clean my office for me? Mags keeps bugging me about it."
      l "No."
      r "What kind of janitor are you then?"
      hide roddy smug
      show black with dissolve
      jump option1_done
   label option2_selected:
      r "Ooo! Cool! Can you do a funny little dance for me? No matter how much I ask, Swerve always refuses."
      l "No."
      r "What kind of mascot are you then?"
      hide roddy smug
      show black with dissolve
      jump option2_done
   label option1_done:
   label option2_done:

    # This ends the game.

return 
Any idea on what I'm missing here?
this should fix your problem

Code: Select all

menu identity:

        "I'm the new janitor.":
            jump option1_selected
        "I'm the new human mascot.":
            jump option2_selected

    return

label option1_selected:
    r "Sweet, can you clean my office for me? Mags keeps bugging me about it."
    l "No."
    r "What kind of janitor are you then?"

    hide roddy smug
    show black with dissolve

    jump option1_done

label option2_selected:
    r "Ooo! Cool! Can you do a funny little dance for me? No matter how much I ask, Swerve always refuses."
    l "No."
    r "What kind of mascot are you then?"
    
    hide roddy smug
    show black with dissolve
    jump option2_done

label option1_done:
label option2_done:

# This ends the game.

    return 

Post Reply

Who is online

Users browsing this forum: No registered users