Page 3 of 5
Re: Ren'Py 6.12.0 Pre-Released
Posted: Mon Jan 31, 2011 5:21 am
by jack_norton
Sorry about all the posts. The UI is somehow broken too (GL, not SW).
Look at the screenshot in particular the vscrollbar and the ( X ) buttons on the left, you see they're wrongly displayed (before they were displayed correctly). Is like if somehow the frame width/height are broken ?
Re: Ren'Py 6.12.0 Pre-Released
Posted: Mon Jan 31, 2011 9:09 am
by PyTom
I need to know how to replicate the bugs. Just knowing that they exist isn't enough to help me fix them.
Re: Ren'Py 6.12.0 Pre-Released
Posted: Mon Jan 31, 2011 9:26 am
by jack_norton
Actually you can discard the first two, since the first was a bug in my code, and since I fixed it I cannot reproduce the memory leak one anymore as well.
The only one left is that UI bug above, though I changed the values in the Frame and now works fine - so maybe not a real bug, just behaves differently now?
Re: Ren'Py 6.12.0 Pre-Released
Posted: Mon Jan 31, 2011 2:47 pm
by jack_norton
This time I can reproduce this bug (albeit a very small/simple one). I have:
Code: Select all
image text_b = renpy.ParameterizedText(size=75,text_align=0.5,yalign=.5,outlines=[(7,"#0005"),(4,"#0007"),(2,"#000A"),(1,"#444")],style="bix2")
and then:
Code: Select all
scene black with dissolve
show text_b "{size=32}Special Thanks to{/size}{p}Tom Rothamel\n{size=32}For the great Ren'Py engine!{/size}" with dissolve
$renpy.pause(2.0)
before it was centered like this:

now it's all left-aligned (I didn't change anything).
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 12:32 pm
by kuroi
Has anyone else noticed the movies in their game being jumpy in 6.12.0? The video in mine are now very jumpy when they play. I encoded them using virtual dub using the Xvid codec.
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 1:32 pm
by PyTom
kuroi wrote:Has anyone else noticed the movies in their game being jumpy in 6.12.0? The video in mine are now very jumpy when they play. I encoded them using virtual dub using the Xvid codec.
The only thing I can think of is the new prediction code. I think I'll disable image prediction while a movie is running.
jack_norton wrote:This time I can reproduce this bug (albeit a very small/simple one). I have:
Code: Select all
image text_b = renpy.ParameterizedText(size=75,text_align=0.5,yalign=.5,outlines=[(7,"#0005"),(4,"#0007"),(2,"#000A"),(1,"#444")],style="bix2")
When I remove style="bix2", I get the following screen, which looks like it should. I don't know what bix2 is defined as.
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 1:47 pm
by kuroi
I did a few tests and as far as I can tell, the movies played okay in version 6.10.2 but didn't work in 6.11 Maybe no one used any movies of this type with 6.11?
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 2:00 pm
by jack_norton
PyTom wrote:
When I remove style="bix2", I get the following screen, which looks like it should. I don't know what bix2 is defined as.
It's this:
Code: Select all
style.create("bix2","default")
style.bix2.background= None
style.bix2.outlines =[(1,"#DFF5")]
style.bix2.color="#DFF"
style.bix2.font = "Share-TechMono.ttf"
I don't define any alignment, so I don't know why goes to the left ?
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 2:27 pm
by PyTom
I don't see it going to the left, in isolation. (Try it!) Are you showing text_b before this screen?
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 2:36 pm
by jack_norton
No I use it only for the ending credits. All the ending texts are left aligned, not just the screen I posted

I have a savegame at end of the game just before the credits start, if I run it with 6.11 = no problem, if I run it with 6.12 I see that !! really strange, I don't understand what it could be!?
I even tried putting it at beginning of the game and I still have the bug...
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 3:06 pm
by PyTom
This is the entire code that I'm using in my 6.12.0 development tree. Try creating a new project, and replacing script.rpy with this.
Code: Select all
# This file contains the script for the Ren'Py demo game. Execution starts at
# the start label.
init python:
style.create("bix2","default")
style.bix2.background= None
style.bix2.outlines =[(1,"#DFF5")]
style.bix2.color="#DFF"
image text_b = renpy.ParameterizedText(size=75,text_align=0.5,yalign=.5,outlines=[(7,"#0005"),(4,"#0007"),(2,"#000A"),(1,"#444")], style="bix2")
# The game starts here.
label start:
scene black with dissolve
show text_b "{size=32}Special Thanks to{/size}{p}Tom Rothamel\n{size=32}For the great Ren'Py engine!{/size}" with dissolve
$renpy.pause(2.0)
return
I'm almost certain that you did:
show text_b ... at left
beforehand, and Ren'Py is remembering this. It's not clear why this would be different between 6.11 and 6.12 - I don't think it should be.
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 3:36 pm
by jack_norton
The test works fine - but the code is identic, I absolutely DIDN'T do "at left"!!!

Really I don't know what is happening in my game, but considering how complex it is... still weird!
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 3:46 pm
by PyTom
Try doing "hide text_b" before you show it.
It's also possible you've redefined transform default, or something like that.
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 3:55 pm
by jack_norton
Ah yes I changed transform default!
Code: Select all
init python:
style.image_placement.xpos = 0.5;style.image_placement.ypos = 1.0
style.image_placement.xanchor = 0.5
style.image_placement.yanchor = 1.0
config.default_transform = None
config.transform_uses_child_position = True
Re: Ren'Py 6.12.0 Pre-Released
Posted: Thu Feb 03, 2011 4:24 pm
by PyTom
You want to set config.imagereference_respects_position to True, and I want to go and document that.