Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

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

Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#1 Post by PyTom » Fri Jan 31, 2014 12:00 am

This is a pre-release. Please download and test this release - both positive and negative reports are helpful. But don't release a game until this version of Ren'Py is official.

As we reach the tenth anniversary of the start of Ren'Py development, I'm pleased to announce Ren'Py 6.17 "In This Decade...". Major improvements in this release include:
  • A rewrite of the Style system that should improve Ren'Py's performance.
  • A new style statement that makes it easier to define styles.
  • A new "show layer" statement that makes it convenient to apply transforms and ATL transforms to entire layers at once.
  • Several other syntax improvements.
  • French and Russian translations.
  • The integration of RAPT (the Ren'Py Android Packaging Tool) with the Ren'Py SDK. Ren'Py now downloads RAPT using the Ren'Py updater - it's no longer necessary to download RAPT separately.
This release also includes several other new functions and actions, and a pair of major bugfixes that affect the Android platform.

This release has been brought to you by:
  • Koichi "vbkaisetsu" Akabe
  • CensoredUsername (C)
  • kyouryuukunn
  • Daniel Luque
  • Tom "PyTom" Rothamel
  • tlm-2501
Downloads of 6.17 can be found at:

http://www.renpy.org/release/6.17

A full list of changes to Ren'Py can be found at:

http://www.renpy.org/dev-doc/html/changelog.html

A list of changes that may require you to update your game can be found at:

http://www.renpy.org/dev-doc/html/incompatible.html
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#2 Post by nyaatrap » Fri Jan 31, 2014 12:19 am

Thanks for your effort.
It looks there's an incompatible change in screens.
in 6.16,

Code: Select all

frame area(0,0,100,100) align (.5,.5)
shows the frame at the center of the screen.
But in 6.17, it's shown on the top-left of the screen ignoring align property.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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.17.0 Prerelease (RAPT is now part of Ren'Py)

#3 Post by PyTom » Fri Jan 31, 2014 12:23 am

Isn't that undefined behavior?

Area and align are both ways of specifying the position of a displayable. You're giving them both at the same time, with conflicting information. I'm pretty sure that even in older Ren'Pys, the order in which they'd be applied was undefined.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#4 Post by nyaatrap » Fri Jan 31, 2014 12:34 am

Yeah, though area + align is useful. for example,

Code: Select all

  frame:
                style_group "pref"
                has vbox
                label _("Sound Volume")
                fixed  area (0,0,195,20) xalign 1.0:
                    add Frame("gui/bar_disabled.png", 12,6)
                    bar value Preference("sound volume"):
(0,0,195,20) is a size of "gui/bar_disabled.png", and bar background is set to None.
This allow to use transparent thumb over the bar background. If slider bars are defined by the default way, transparent thumbs couldn't be shown neatly.
I'm using this syntax from 6.14

edit: area (0,0,195,20) can be written as minimum (195,20) maximum (195,20), But it's redundant so I used area instead.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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.17.0 Prerelease (RAPT is now part of Ren'Py)

#5 Post by PyTom » Fri Jan 31, 2014 1:30 am

How about I add xsize, ysize, and xysize properties? (size is a name I use already, so I can't use it again.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#6 Post by nyaatrap » Fri Jan 31, 2014 1:44 am

Yes, they are what I want. Thanks again.
I also find a minor bug. When I press about on the launcher, it shows an error; couldn't find a file "logo.png"

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#7 Post by jack_norton » Fri Jan 31, 2014 5:30 am

The new style syntax is awesome :) will use this version in the new games testing!
follow me on Image Image Image
computer games

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#8 Post by nyaatrap » Fri Jan 31, 2014 6:58 am

Performance is improved noticeably, though the hover function is still unusually slow. I suspect there is something wrong on this function.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#9 Post by Donmai » Fri Jan 31, 2014 9:07 am

OMG! "Happy Alley" is gone, at last! Hahaha! Finally I won't need to mute the sound when playing the tutorial game anymore! :lol:
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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.17.0 Prerelease (RAPT is now part of Ren'Py)

#10 Post by PyTom » Fri Jan 31, 2014 9:46 am

nyaatrap wrote:Performance is improved noticeably, though the hover function is still unusually slow. I suspect there is something wrong on this function.
Can you give me some code that shows the slowdown? I need examples to help me debug it.
Donmai wrote:OMG! "Happy Alley" is gone, at last! Hahaha! Finally I won't need to mute the sound when playing the tutorial game anymore! :lol:
Sunflower Slow Drag was actually the song that played in the background of the original demo - back when Ren'Py supported midi files. I brought it back for the tenth anniversary as much as anything. If it's less exposed than Happy Alley, all the better.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#11 Post by Alex » Fri Jan 31, 2014 10:16 am

Some issues:
1. While creating new project, if language set to russian in preferences, an error appears when it comes to choose a theme (seems that with other languages all works fine)

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/new_project.rpy", line 123, in script call
  File "game/new_project.rpy", line 123, in script call
  File "game/choose_theme.rpy", line 474, in script
  File "game/choose_theme.rpy", line 476, in python
  File "game/choose_theme.rpy", line 93, in python
NameError: name 'style_backup' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\renpy-6.6.0\renpy-6.17.0-sdk\renpy\execution.py", line 294, in run
    node.execute()
  File "C:\renpy-6.6.0\renpy-6.17.0-sdk\renpy\ast.py", line 720, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\renpy-6.6.0\renpy-6.17.0-sdk\renpy\python.py", line 1358, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/choose_theme.rpy", line 476, in <module>
  File "game/choose_theme.rpy", line 93, in implement_theme
NameError: name 'style_backup' is not defined

Windows-XP-5.1.2600-SP2
Ren'Py 6.17.0.239
Ren'Py Launcher 6.17.0.239
2. While creating new project, if no template chosen an error appears (similar issue was fixed with choosing distros to build).

3. And not a bug, but just a thought - it is possible to run a project or a launcher (of the same version) multiple times at once, could it be changed, so just one copy of a project / launcher would be opened?

Kinsman
Regular
Posts: 130
Joined: Sun Jul 26, 2009 7:07 pm
Location: Fredericton, NB, Canada
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#12 Post by Kinsman » Fri Jan 31, 2014 10:27 am

In skin.rpy, the constant PATTERN is set to "pattern.png" when it should be "images/pattern.png".

Also, in about.rpy, the about screen needs to refer to "images/logo.png" instead of "logo.png".
Flash To Ren'Py Exporter
See the Cookbook thread

Kinsman
Regular
Posts: 130
Joined: Sun Jul 26, 2009 7:07 pm
Location: Fredericton, NB, Canada
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#13 Post by Kinsman » Fri Jan 31, 2014 12:29 pm

Definitely like the new style coding. It really is a lot easier to work with.

Could you make sure that the new style code is used in the options.rpy file of new projects?
Flash To Ren'Py Exporter
See the Cookbook thread

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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.17.0 Prerelease (RAPT is now part of Ren'Py)

#14 Post by PyTom » Fri Jan 31, 2014 7:58 pm

Alex:

1 & 2 will be fixed in the next pre-release. 3 is an interesting idea, but it's enough of a change that it won't land in 6.17.

Kinsman:

We don't ship skin.rpy with Ren'Py. You'll have to update it.

about.rpy has been fixed.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Ren'Py 6.17.0 Prerelease (RAPT is now part of Ren'Py)

#15 Post by nyaatrap » Fri Jan 31, 2014 8:30 pm

PyTom wrote:Can you give me some code that shows the slowdown? I need examples to help me debug it.
Sure.

Code: Select all

# The game starts here.
label start:    
    call screen hover_test
    return
    
screen hover_test:
    default tt=Tooltip("")
    grid 16 16 align (.5,.5):
        for i in range(256):
            textbutton "[i]" action NullAction() hovered tt.Action(str(i))
    text tt.value align (.5,1.0)
I exaggerated the issue using 256 buttons. Though even 20 hover buttons have noticeable slow down.

Post Reply

Who is online

Users browsing this forum: Google [Bot]