Visual novel help ;-;

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.
Message
Author
StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#31 Post by StarsongKG » Sat May 05, 2018 7:30 pm

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: 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

Code: Select all

    menu:
    
    "Anxiety, Depression, Suicidal thoughts, self-harm, foul lauguage, bullying, "
    
        "I Agree" :
        
        "Loading Rebecca's Route"
        
        "I Disagree" :
         
         "Goodbye"
         
  
   
label after_menu:    
    
and if i indent Menu it wants me to not do it

kivik
Miko-Class Veteran
Posts: 784
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Visual novel help ;-;

#32 Post by kivik » Sat May 05, 2018 7:57 pm

The problem isn't the menu line, but the line after the menu. Menu is a block, so everything inside the menu block needs to be indented:

Code: Select all

    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

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#33 Post by StarsongKG » Sat May 05, 2018 8:30 pm

o
Mk! fixed!

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#34 Post by StarsongKG » Sat May 05, 2018 9:08 pm

How do i change the name of my game?

kivik
Miko-Class Veteran
Posts: 784
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Visual novel help ;-;

#35 Post by kivik » Sun May 06, 2018 5:12 am

Have a look in options.rpy

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#36 Post by StarsongKG » Sun May 06, 2018 7:20 pm

How do i add music?

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1834
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Visual novel help ;-;

#37 Post by Imperf3kt » Sun May 06, 2018 8:07 pm

Please consider reading the documentation for such questions. It is very easy to follow for your last two questions.

But, to be helpful:

Code: Select all

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.

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#38 Post by StarsongKG » Wed May 23, 2018 4:40 pm

My iicharacter_alpha wont work ;-;. (The Ren'py character creator) And i cant download my models

kivik
Miko-Class Veteran
Posts: 784
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Visual novel help ;-;

#39 Post by kivik » Wed May 23, 2018 4:51 pm

That's not affiliated with official Renpy, you'll have to talk to the creator of the program about it.

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#40 Post by StarsongKG » Mon May 28, 2018 11:00 am

O.. kk

kivik
Miko-Class Veteran
Posts: 784
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Visual novel help ;-;

#41 Post by kivik » Mon May 28, 2018 3:54 pm

You can use a solid colour as an image and put it on the transient layer or something:

Code: Select all

image overlay blood = Solid("#ff0000aa") # hex colour 6 digits + alpha 2 digits

...

show overlay blood
Adjust the last 2 hex decimal digits (from 00 to ff) to change the opacity.

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#42 Post by StarsongKG » Thu Jun 07, 2018 2:40 pm

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




Its only rare when we get this number..

kivik
Miko-Class Veteran
Posts: 666

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#43 Post by StarsongKG » Fri Jun 08, 2018 2:15 pm

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 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.

kivik
Miko-Class Veteran
Posts: 784
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Visual novel help ;-;

#44 Post by kivik » Fri Jun 08, 2018 4:08 pm

If you read the error message (quite often it tells you exactly what's wrong :D).

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)

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#45 Post by StarsongKG » Sat Jun 09, 2018 1:16 pm

Thanks! sorry for being a burden

Post Reply

Who is online

Users browsing this forum: No registered users