Help! Indentation Mismatch!

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
J3llyBeanz
Newbie
Posts: 2
Joined: Mon Feb 25, 2013 7:33 am
Contact:

Help! Indentation Mismatch!

#1 Post by J3llyBeanz »

I keep getting indentation mismatch on line 50...

label boring:

scene cottage

"I go back home."
"One day, I walked back into the shed."
"The mystery door had disappeared!"
"Dissapointed, I went back home..."
"I never got to see the door again.

"

return (This is line 50 BTW...)

label adventure:

scene sunny trees

"I wake up in a forest."
"The only way out seems to be a single path."
"The door had disappeared so I walked along the path."

please help me!

J3llyBeanz
Newbie
Posts: 2
Joined: Mon Feb 25, 2013 7:33 am
Contact:

Re: Help! Indentation Mismatch!

#2 Post by J3llyBeanz »

oh yeah! and return has 4 spaces.

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Help! Indentation Mismatch!

#3 Post by Kato »

Have you made a call stack for it to return to?

Code: Select all

Also pasting code into code tags like this helps with formatting issues...
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Help! Indentation Mismatch!

#4 Post by SundownKid »

Make sure you let the program auto-indent. Just put your cursor on the end of the line and press enter and it should indent for you. Otherwise use Tab to indent and Shift+Tab to un-indent, never use the space bar.

Post Reply

Who is online

Users browsing this forum: Andredron, Google [Bot]