Page 1 of 1

Indentation errors...

Posted: Tue May 16, 2017 2:14 pm
by Navypink
So I've just began using ren'py and I'm making my first game. It's been workng without any problems, until now.... Whenever I try to load the game, there's a messege that says: "Indentation mismatch in line 79" or, occasionally, line 80. I've tried everything, but nothing seems to work. So I thought I need some help. Here's a screenshot of the piece of code supposedly bothering ren'py:

Code: Select all

"I felt sorry for him, he'd just lost his best friend... Besides, he was nice and I would really like to spend time with him~"
"But I had a club meeting to attend on lunchtime... what should I do?"
menu:
      "Sure, I'll spend time with you":
         $TaroLove += 1
         jump taro
      "I'm busy":
         $ShinLove += 1
         jump club
      "I don't know...!":
         jump hesitant
      label taro:    
         o "I don't really... have anything to do in particular, so I guess I'll.. join you, if that's fine."
         "Was I really doing this?"
         "Lunchtime was always the time for club meetings, and yet... I would soon be abscent for the first time."
         "\'My choices are my own\', I reminded herself. I don't have to attend every single meeting, after all."
         "Besides, a change would be nice, wouldn't it?"
         t "Really? That would be great! We can meet up outside of our class later."
         "I smiled as we went our own, seperate ways, but still somehow connected after our first ever conversation."
         "Something was changing in my life, and I was thrilled to see where my new relationship with Taro would take me."
         jump lunchtime
The rest seems to be fine, I just don't get the problem with the line: "label taro:" since I think that's what it's all about...
I would appreciate any help. Thanks in advance to any ren'py user who finds the time to help!

Re: Indentation errors...

Posted: Tue May 16, 2017 2:36 pm
by KuroPan
What is the line 79 (or 80) in this code ?

Re: Indentation errors...

Posted: Tue May 16, 2017 2:39 pm
by Divona
Definitely indentation error with label. What you did before was putting "label" inside "menu" and made Ren'Py confused because it doesn't know what to do with label inside the menu.

Code: Select all

    "I felt sorry for him, he'd just lost his best friend... Besides, he was nice and I would really like to spend time with him~"
    "But I had a club meeting to attend on lunchtime... what should I do?"

    menu:
          "Sure, I'll spend time with you":
             $TaroLove += 1
             jump taro
          "I'm busy":
             $ShinLove += 1
             jump club
          "I don't know...!":
             jump hesitant

label taro:    
     o "I don't really... have anything to do in particular, so I guess I'll.. join you, if that's fine."
     "Was I really doing this?"
     "Lunchtime was always the time for club meetings, and yet... I would soon be abscent for the first time."
     "\'My choices are my own\', I reminded herself. I don't have to attend every single meeting, after all."
     "Besides, a change would be nice, wouldn't it?"
     t "Really? That would be great! We can meet up outside of our class later."
     "I smiled as we went our own, seperate ways, but still somehow connected after our first ever conversation."
     "Something was changing in my life, and I was thrilled to see where my new relationship with Taro would take me."
     jump lunchtime

Re: Indentation errors...

Posted: Tue May 16, 2017 2:45 pm
by KuroPan
I've tried your code and in fact, you must put the label at the beginning of your line

Re: Indentation errors...

Posted: Tue May 16, 2017 4:07 pm
by Navypink
Thanks so much! I didn't know anyone would answer so quickly!