CAN'T DO ANOTHER PASSAGE!
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.
-
- Newbie
- Posts: 7
- Joined: Mon Apr 11, 2011 9:13 pm
- Contact:
CAN'T DO ANOTHER PASSAGE!
Well, the title is all messed up. Anyways, here's the thing. I tried getting my game to work, but then as i launched it, it says:
====
On line 36 of C:\Users\Karen\.jedit\Idiots Guide/game/script.rpy: expected menuitem
jump school
^
====
And the label thing is the same "school"! Do you think it's because I have to many routes? I have four, and those don't show errors, just this one! Help?
====
On line 36 of C:\Users\Karen\.jedit\Idiots Guide/game/script.rpy: expected menuitem
jump school
^
====
And the label thing is the same "school"! Do you think it's because I have to many routes? I have four, and those don't show errors, just this one! Help?
Re: CAN'T DO ANOTHER PASSAGE!
Check your script befor line 36...
Code: Select all
menu:
"a menuitem": # <--- didn't you miss it at all or colon at the end of line?
jump school
-
- Newbie
- Posts: 7
- Joined: Mon Apr 11, 2011 9:13 pm
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
=========
h "Well, what should we do?"
menu:
"Head to the Intermediate School!"
jump school
"Let's go eat something!"
jump eat
"Let's go to someone's house"
jump house
"Let's stay for tutoring"
jump tutor
label school:
j "I say we go to the school who's with me?"
label eat:
l "Man, am I hungry...who says we should eat?"
label house:
e "Well, how about go blow stuff up at someone's house"
label tutor:
h "I know this might sound weird, but I say we should stay for tutoring."
=====
That's whats going on, but i always get the message, im not really understanding you, Alex.
h "Well, what should we do?"
menu:
"Head to the Intermediate School!"
jump school
"Let's go eat something!"
jump eat
"Let's go to someone's house"
jump house
"Let's stay for tutoring"
jump tutor
label school:
j "I say we go to the school who's with me?"
label eat:
l "Man, am I hungry...who says we should eat?"
label house:
e "Well, how about go blow stuff up at someone's house"
label tutor:
h "I know this might sound weird, but I say we should stay for tutoring."
=====
That's whats going on, but i always get the message, im not really understanding you, Alex.
-
- Forum Founder
- Posts: 2005
- Joined: Sat Jan 25, 2003 2:32 pm
- Completed: ToL, Shoujo Attack!, Lemma Ten
- Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
I'm pretty sure he's right, it should be:
instead of
(you need a colon on the end of your menu choices)
Code: Select all
"Head to the Intermediate School!":
Code: Select all
"Head to the Intermediate School!"
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
Re: CAN'T DO ANOTHER PASSAGE!
Oh, Blue Lemma has already answered you...))
You can read some more explanations here
http://www.renpy.org/wiki/renpy/doc/tut ... _and_Jumps
http://www.renpy.org/wiki/renpy/FAQ#How ... _blocks.3F
Also, you can use "Code" button when you need to post some code (press it and put your code between [ code] and [ /code] tags).
You can read some more explanations here
http://www.renpy.org/wiki/renpy/doc/tut ... _and_Jumps
http://www.renpy.org/wiki/renpy/FAQ#How ... _blocks.3F
Also, you can use "Code" button when you need to post some code (press it and put your code between [ code] and [ /code] tags).
-
- Newbie
- Posts: 7
- Joined: Mon Apr 11, 2011 9:13 pm
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
^ Thank you~ Since I am just a newbie
But even if i do the colon, instead, something else happens.
But even if i do the colon, instead, something else happens.
Code: Select all
On line 35 of C:\Users\Karen\.jedit\Idiots Guide/game/script.rpy: choice menuitem expects a non-empty block.
"Head to the Intermediate School!":
^
-
- Forum Founder
- Posts: 2005
- Joined: Sat Jan 25, 2003 2:32 pm
- Completed: ToL, Shoujo Attack!, Lemma Ten
- Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
You need to have something after that. For instance,
Note the indentation [4 spaces] on the jump school line. That needs to be there.
Edit: For reference, here is how the script from "menu" on should look (with indentations):
http://www.renpy.org/doc/html/language_ ... and-blocks
Code: Select all
"Head to the Intermediate School!":
jump school
Edit: For reference, here is how the script from "menu" on should look (with indentations):
Code: Select all
menu:
"Head to the Intermediate School!":
jump school
"Let's go eat something!":
jump eat
"Let's go to someone's house":
jump house
"Let's stay for tutoring":
jump tutor
label school:
j "I say we go to the school who's with me?"
label eat:
l "Man, am I hungry...who says we should eat?"
label house:
e "Well, how about go blow stuff up at someone's house"
label tutor:
h "I know this might sound weird, but I say we should stay for tutoring."
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
Code: Select all
h "Well, what should we do?"
menu:
"Head to the Intermediate School!":
jump school
"Let's go eat something!":
jump eat
"Let's go to someone's house":
jump house
"Let's stay for tutoring":
jump tutor
label school:
j "I say we go to the school who's with me?"
label eat:
l "Man, am I hungry...who says we should eat?"
label house:
e "Well, how about go blow stuff up at someone's house"
label tutor:
h "I know this might sound weird, but I say we should stay for tutoring."
-
- Newbie
- Posts: 7
- Joined: Mon Apr 11, 2011 9:13 pm
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
Code: Select all
On line 92 of C:\Users\Karen\.jedit\Idiots Guide/game/script.rpy: indentation mismatch.
Code: Select all
92 menu:
93 "Ever's House":
94 jump ever
95 label ever:
96 "Lexi's House":
97 jump lexi
98 label lexi:
99 "Hikari's House":
100 jump hikari
101 label hikari:
102 "Josh's House":
103 jump josh
104 label josh:
Re: CAN'T DO ANOTHER PASSAGE!
As error message says: "indentation mismatch". That means, that you use all that spaces wrong. Read a good explanation of how indentation works and what blocks are in second link I gave you.
And after all, your code should looks like Blue Lemma and Aleema told
You don't need to use <label> statement inside menu. Jump <label_name> tells Ren'py to jump to that label, and label itself can be placed in any other part of your code.
And after all, your code should looks like Blue Lemma and Aleema told
Code: Select all
menu: # have some spaces, because it belongs to a label
"Ever's House": # have additional spaces, because it belongs to menu block
jump ever # have some more spaces, because it belongs to menuitem "Ever's House"
"Lexi's House":
jump lexi
"Hikari's House":
jump hikari
"Josh's House":
jump josh
label ever: # labels itself don't need any indentation
"So, we jumped to label ever... what's next?"
# some more code
label lexi:
"So, we jumped to label lexi... what's next?"
# some more code
Last edited by Alex on Tue Apr 19, 2011 4:32 am, edited 1 time in total.
-
- Forum Founder
- Posts: 2005
- Joined: Sat Jan 25, 2003 2:32 pm
- Completed: ToL, Shoujo Attack!, Lemma Ten
- Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
All the indentation spaces come in groups of 4 (I think some lines are off by 1 space up there)
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
-
- Miko-Class Veteran
- Posts: 636
- Joined: Thu May 14, 2009 8:15 pm
- Projects: Castle of Arhannia
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
the 4 space rule is only preferred by the python community. it's not mandatory as long as items in the same block are all aligned.All the indentation spaces come in groups of 4 (I think some lines are off by 1 space up there)
renpy returned the error "indentation mismatch" because that's the what it noticed (compilers and interpreters report all the errors, even if it's redundant to do so). the main problem was just the labels not needing to be inside the menu at all (besides being misused).
-
- Newbie
- Posts: 7
- Joined: Mon Apr 11, 2011 9:13 pm
- Contact:
Re: CAN'T DO ANOTHER PASSAGE!
and now this!!! wtf?
Code: Select all
On line 88 of C:\Users\Karen\.jedit\Idiots Guide/game/script.rpy: say statement does not expect a block. Please check the indentation of the line after this one.
l "So then...who's house?"
Re: CAN'T DO ANOTHER PASSAGE!
Did you maybe indent too far? As stated before everything for a block needs to be at the same indentation. Maybe read over the Indentation and Blocks Section of the Ren'Py Language Basics.
Who is online
Users browsing this forum: Majestic-12 [Bot]