Ren'Py 6.12.0 Released

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
User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py 6.12.0 Released

#16 Post by PyTom »

You'll need to post the code surrounding this for us to help you.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Kittylove
Regular
Posts: 28
Joined: Thu Jul 02, 2009 1:35 pm
Contact:

Re: Ren'Py 6.12.0 Released

#17 Post by Kittylove »

:oops: Forgive me for forgetting. I didn't think it mattered because I honestly haven't coded much of anything yet.

Code: Select all

# You can place the script of your game in this file.

# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
image bg interior = "interior.jpg" 

# Declare characters used by this game.
        define e = Character('Eileen', color="#c8ffc8")


# The game starts here.
label start:

    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
    
    scene interior
    
    e "Just testing out things."

    return
Error text

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


On line 5 of C:\Users\Lil Bit\Desktop\Renpy\Bunni and Kitty/game/script.rpy: image statement does not expect a block. Please check the indentation of the line after this one.
image bg interior = "interior.jpg" 
                                   ^

Ren'Py Version: Ren'Py 6.12.0e

EternalDream
Veteran
Posts: 208
Joined: Sat Nov 27, 2010 6:04 pm
Completed: Secret Santa
Projects: Memory Lane
Contact:

Re: Ren'Py 6.12.0 Released

#18 Post by EternalDream »

I think it's supposed to be:

Code: Select all

# Declare characters used by this game.
    $ e = Character('Eileen', color="#c8ffc8")


# The game starts here.
label start:

    e "You've created a new Ren'Py game."
    ...

Kittylove
Regular
Posts: 28
Joined: Thu Jul 02, 2009 1:35 pm
Contact:

Re: Ren'Py 6.12.0 Released

#19 Post by Kittylove »

Eternal Dream, your using the old way of defining characters. The new characters can be defined like

Code: Select all

# Declare characters used by this game.
define e = Character('Eileen', color="#c8ffc8")
But it's not defining characters that I have a problem with, it's defining my images.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py 6.12.0 Released

#20 Post by PyTom »

Kittylove, the problem is actually with the line after the one it shows. Since the next line is indented, Ren'Py sees it as a block, and errors out. (This is probably something I should look into.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

EternalDream
Veteran
Posts: 208
Joined: Sat Nov 27, 2010 6:04 pm
Completed: Secret Santa
Projects: Memory Lane
Contact:

Re: Ren'Py 6.12.0 Released

#21 Post by EternalDream »

Oh, really? My bad then. I'm not too used to the new stuff (ex. screens, etc) ^^;;

Kittylove
Regular
Posts: 28
Joined: Thu Jul 02, 2009 1:35 pm
Contact:

Re: Ren'Py 6.12.0 Released

#22 Post by Kittylove »

Well, I'm glad it's not me. :) So what, me not indenting when I define my characters should fix it?

Edit: :D Okay. I can now start my game, but unfortunately renpy considers my background as undefined. :? I still don't get it. Am I doing something wrong?

Code: Select all

# You can place the script of your game in this file.

# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
image bg interior = "interior.jpg"

# Declare characters used by this game.
define e = Character('Eileen', color="#c8ffc8")


# The game starts here.
label start:

    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
    
    scene interior
    
    e "Just testing out things."

    return

User avatar
SleepKirby
Veteran
Posts: 255
Joined: Mon Aug 09, 2010 10:02 pm
Projects: Eastern Starlight Romance, Touhou Mecha
Organization: Dai-Sukima Dan
Location: California, USA
Contact:

Re: Ren'Py 6.12.0 Released

#23 Post by SleepKirby »

To use the bg, you need "scene bg interior" instead of "scene interior".

Ren'Py treats bg images in the same way as character images such as "eileen happy". So in the same way that you need to say "show eileen happy" instead of "show happy", you'd need to say "scene bg interior" instead of "scene interior".
(By the way, the only difference between show and scene is that scene removes all of the current images from the screen.)

Kittylove
Regular
Posts: 28
Joined: Thu Jul 02, 2009 1:35 pm
Contact:

Re: Ren'Py 6.12.0 Released

#24 Post by Kittylove »

:oops: Yeah, um. It was shortly after I posted my reply that I found that out. Still, thanks for replying.
(By the way, the only difference between show and scene is that scene removes all of the current images from the screen.)
Hmm...I didn't quite know that. :)

EightHeadedDragon
Newbie
Posts: 20
Joined: Fri Jul 02, 2010 4:44 am
Completed: Alternian Turnabout
Contact:

Re: Ren'Py 6.12.0 Released

#25 Post by EightHeadedDragon »

Hello,

Perhaps this is not an issue with 6.12.0 specifically since it has been a while since I updated. I have been using 6.10.2 up until today, and now I notice that the new Renpy is doing weird things to my master volume (of my computer) when it launches. Is there something to snip or edit to bring back the good old days?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py 6.12.0 Released

#26 Post by PyTom »

Ren'Py has always adjusted the volume on your computer at startup. (It restores it on shutdown.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

EightHeadedDragon
Newbie
Posts: 20
Joined: Fri Jul 02, 2010 4:44 am
Completed: Alternian Turnabout
Contact:

Re: Ren'Py 6.12.0 Released

#27 Post by EightHeadedDragon »

Huh, I wonder what might be different then. The new release is shooting my Wave volume way up both in and out of games, and yet the volume settings on whichever game I'm running are exactly as they were before.

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Ren'Py 6.12.0 Released

#28 Post by Aleema »

I also noticed this for the first time with the newer version. Are you sure this behavior has always been present? If it did, it seems more exaggerated.

User avatar
Midnighticequeen
Veteran
Posts: 292
Joined: Fri Apr 04, 2008 4:04 pm
Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
Projects: Wish
Organization: Ice Queen Games
itch: icequeenstudios
Contact:

Re: Ren'Py 6.12.0 Released

#29 Post by Midnighticequeen »

I noticed a strange error when I was making Bunni and Kitty. After I changed my options to play my main menu music , I realized that that song keep playing even after I pressed the start button! It played right through the prologue of my story, even through the sound effects and everything.

A simple stop music at the beginning of the story stopped it, but still... :?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py 6.12.0 Released

#30 Post by PyTom »

I wanted to allow people to have the music seamlessly continue from the main menu to the game, and I figured that the easy way to do so is to not stop the music automatically.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Baidu [Spider]