6.12's troubles with Frames

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
iichan_lolbot
Veteran
Posts: 206
Joined: Tue Dec 30, 2008 9:18 am
Projects: iichan erogame
Contact:

6.12's troubles with Frames

#1 Post by iichan_lolbot »

Holy shift! After updating to 6.12 all my styles become a complete mess T_T
Just take a look and test it on 6.11 and 6.12...
Attachments
comparison
comparison
menu_612_fail.zip
demo game
(1008.51 KiB) Downloaded 35 times
Last edited by iichan_lolbot on Tue Feb 08, 2011 5:35 pm, edited 1 time in total.

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: 6.12's troubles with styles

#2 Post by PyTom »

That's not a problem with styles, it's a problem with Frames. What are your frames, and what do the textures look like?
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

iichan_lolbot
Veteran
Posts: 206
Joined: Tue Dec 30, 2008 9:18 am
Projects: iichan erogame
Contact:

Re: 6.12's troubles with styles

#3 Post by iichan_lolbot »

All attached to the post:

File comment: demo game
menu_612_fail.zip [1008.51 KiB]
Not downloaded yet

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: 6.12's troubles with styles

#4 Post by PyTom »

Sorry, I'm a bit under the weather right now. I'll look at this when I'm feeling better.
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

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: 6.12's troubles with Frames

#5 Post by PyTom »

Okay. The antibiotics kicked in, so I have an explanation as to what's going on. In your code, you have:

Code: Select all

    style.button.background = Frame("long_butt_01.png", 126, 15,)
So what you have there is a Frame you created where each corner is 126 pixels wide, and 15 tall. Your button is only 168 pixels wide, so you have an 84-pixel overlap - which is why you're seeing the artifacts you're seeing. You should drop the width of the Frame so it only covers the corner.

Older versions of Ren'Py handled the scaling differently, but for performance reasons, 6.12 does it in the GPU (giving a huge boost on Android). This means that the overlap is handled differently.

For backwards compatibility, I've changed Ren'Py so in the next version (6.12.1), it will prevent the overlap from showing up. It won't be pixel-per-pixel identical with 6.11, but it looks good enough. You should drop the width of the border, so that you get control over it, and it is never a problem.
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: No registered users