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.
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: menu statement expects a non-empty block.
menu:
^
File "game/script.rpy", line 33: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
"I Agree" :
^
Ren'Py Version: Ren'Py 6.99.14.3.3347
Sat May 05 18:29:41 2018
menu:
"Anxiety, Depression, Suicidal thoughts, self-harm, foul lauguage, bullying, " # caption for the menu choice block, needs to be indented!
"I Agree" :
"Loading Rebecca's Route" # this needs indenting as well, as it's part of the I agree block
"I Disagree" :
"Goodbye" #indent this too, because it's part of disagree block
define audio.some_word = "myfile.wav"
label start:
play music some_word
Use almost whatever you like in place of "some_word"
You can find more on playing music and other sound files, here: https://www.renpy.org/doc/html/audio.html
Or take a look at the demo tutorial game included with Ren'Py
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Okay im really confused. Does anyone have skype, It will be really easy to show and understand (me understanding you guys) what im doing wrong. ergergerr
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 295: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
menu:
^
File "game/script.rpy", line 816: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
menu:
^
File "game/script.rpy", line 828: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
menu:
^
Ren'Py Version: Ren'Py 6.99.14.3.3347
Fri Jun 08 13:07:41 2018
The bottom 2 errors, are from me trying to make a menu inside a menu. I did it once, and it worked. but ever since I did it again, it's giving me errors! Im trying to have multiple endings, 1 suicide, the rest, Living. And it will continue if you pick the living ones, but people say different things depending on what choices you choose. Il probably will be bashed about how dumb im being.
If you read the error message (quite often it tells you exactly what's wrong ).
Let's break this one down: Line is indented
It's saying you've indented the line menu:
but the preceding say statement statement does not expect a block
Your previous statement is a say statement. Say statement isn't a block, so what goes after it should not be indented. Blocks are code that has a block starting statement (e.g. menu:), and children statements that goes underneath - which are indented. Say statement isn't a block, so you don't indent what comes after it.
Please check this line's indentation.
Check your line's indentation (but make sure you check the children lines)