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.
-
lilurz
- Regular
- Posts: 27
- Joined: Wed Jun 12, 2019 1:40 am
- Completed: None, yet.
- Projects: The Hawkins Files
- Location: Your computer
-
Contact:
#1
Post
by lilurz » Fri Aug 23, 2019 8:30 pm
Error:
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/options.rpy", line 99: indentation mismatch.
Ren'Py Version: Ren'Py 6.17.7.521
Code:
Code: Select all
style.window.background = Frame("textbox1.png", 25, 25)
Please help me!
-
+ ali3nn +
- Regular
- Posts: 32
- Joined: Wed Aug 14, 2019 3:08 pm
-
Contact:
#2
Post
by + ali3nn + » Fri Aug 23, 2019 8:47 pm
lilurz wrote: ↑Fri Aug 23, 2019 8:30 pm
File "game/options.rpy", line 99: indentation mismatch.
you have to fix the indentation, check all the other lines to make sure it matches up.
-
lilurz
- Regular
- Posts: 27
- Joined: Wed Jun 12, 2019 1:40 am
- Completed: None, yet.
- Projects: The Hawkins Files
- Location: Your computer
-
Contact:
#3
Post
by lilurz » Fri Aug 23, 2019 9:10 pm
+ ali3nn + wrote: ↑Fri Aug 23, 2019 8:47 pm
lilurz wrote: ↑Fri Aug 23, 2019 8:30 pm
File "game/options.rpy", line 99: indentation mismatch.
you have to fix the indentation, check all the other lines to make sure it matches up.
Thanks. I solved it!
-
Arkilos
- Newbie
- Posts: 22
- Joined: Mon Jun 03, 2019 9:20 am
-
Contact:
#4
Post
by Arkilos » Sun Dec 01, 2019 5:56 pm
Hello.
It has has been a considerable time since my last post, I haven't been working on my VN for some time.
I came to an error that I can't find.
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 29: indentation mismatch.
Ren'Py Version: Ren'Py 7.3.5.606
Sun Dec 01 23:15:24 2019
here is the main code, I do not know where the mismatch is.
Code: Select all
label start:
#image of a regional train traveling through the countryside.
"it has been a few years since you have last set foot at home."
"there passing came as a great surprise for you."
#Choice 1
menu:
jump choice_girl
"A young middle school girl." (error line)
jump coice_boy
"A young middle schoolboy."
label choice_girl:
menu:
"A young middle school girl."
jump choice_girl
"your hair is long and light brown..."
"a trait that you have gotten from your mother"
label choice_boy:
menu:
"A young middle schoolboy."
jump choice_boy
"your hair is short messy and dark brown..."
"a trait that you have gotten from your father"
label choice_done:
label return
here is hoping someone has better eyes than me, I do not know what to change.
Novum Arkilum
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#5
Post
by Imperf3kt » Sun Dec 01, 2019 8:06 pm
Your indentation (blank spacing) is all over the place. There's a lot of errors with it.
I suggest giving the documentation on indentation a look at. It'll help you understand what indentation is and why it's important to get it right.
You can find it here:
https://www.renpy.org/doc/html/language ... and-blocks
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
Arkilos
- Newbie
- Posts: 22
- Joined: Mon Jun 03, 2019 9:20 am
-
Contact:
#6
Post
by Arkilos » Sun Dec 01, 2019 8:24 pm
Thank you for your replay and help.
Novum Arkilum
-
rayminator
- Miko-Class Veteran
- Posts: 754
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
-
Contact:
#7
Post
by rayminator » Mon Dec 02, 2019 1:36 pm
Arkilos wrote: ↑Sun Dec 01, 2019 5:56 pm
Hello.
It has has been a considerable time since my last post, I haven't been working on my VN for some time.
I came to an error that I can't find.
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 29: indentation mismatch.
Ren'Py Version: Ren'Py 7.3.5.606
Sun Dec 01 23:15:24 2019
here is the main code, I do not know where the mismatch is.
Code: Select all
label start:
#image of a regional train traveling through the countryside.
"it has been a few years since you have last set foot at home."
"there passing came as a great surprise for you."
#Choice 1
menu:
jump choice_girl
"A young middle school girl." (error line)
jump coice_boy
"A young middle schoolboy."
label choice_girl:
menu:
"A young middle school girl."
jump choice_girl
"your hair is long and light brown..."
"a trait that you have gotten from your mother"
label choice_boy:
menu:
"A young middle schoolboy."
jump choice_boy
"your hair is short messy and dark brown..."
"a trait that you have gotten from your father"
label choice_done:
label return
here is hoping someone has better eyes than me, I do not know what to change.
It should look like this
Code: Select all
label start:
#image of a regional train traveling through the countryside.
"it has been a few years since you have last set foot at home."
"there passing came as a great surprise for you."
#Choice 1
menu:
"A young middle school girl.":
jump choice_girl
"A young middle school boy.":
jump coice_boy
label choice_girl:
"A young middle school girl."
"your hair is long and light brown..."
"a trait that you have gotten from your mother"
label choice_boy:
"A young middle school boy."
"your hair is short messy and dark brown..."
"a trait that you have gotten from your father"
label choice_done:
label return
Users browsing this forum: Bing [Bot], Google [Bot], span4ev