Page 7 of 10
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 4:38 pm
by Jake
CaseyLoufek wrote:
"Wow, everybody's running MaliciousSpyWormHD3JF4L92 that's gotta be a legit program."
My thoughts exactly!
I'd guess it probably kind of works in Avast's case, since they'll only be sampling Avast users, who by definition have some protection in place - perhaps they're just relying on the first few users to come across new software to make good decisions about whether to let it run outside of the sandbox or not?
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 7:44 pm
by PyTom
SundownKid wrote:Also, the transform glitch still remains in 6.15. I can't do a transition without all transforms locking up.
I've been unable to repeat this, using the code:
Code: Select all
transform movy:
xalign 0.0
linear 10.0 yalign 1.0
repeat
label start:
"..."
show logo blue at movy
"..."
show eileen happy
with dissolve
"..."
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 8:02 pm
by SundownKid
You did it backwards. It's the transform that doesn't work, not the transition
It also doesn't work from stuff like the main menu. If you make the transform on a screen on the main menu, then set the main menu transition to "dissolve", the transform will cease to work.
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 8:12 pm
by SundownKid
And here is a video I made of the glitch in action:
VIDEO
(First one is without any transition from splashscreen to menu (transform works normally). Second one is with a transition. (transform doesn't work))
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 8:35 pm
by PyTom
I can't figure out from that video what's going wrong. What I need is the code, and what you think it should be doing.
I need that from nyaatrap, too - although his problem might have to do with the way hide blocks aren't run when a context exits.
I found another bug in my release testing, so no release tonight.
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 8:53 pm
by nyaatrap
It's easy to create the situation I have
Code: Select all
init python:
config.exit_transition = dissolve
transform gui:
yoffset 128
ease .3 yoffset 0
screen file_picker:
frame at gui:
When I right-click first, ATL works. but hide it then right-click again, it doesn't work.
Re: Ren'Py 6.15 Pre-Releases
Posted: Thu Feb 28, 2013 9:02 pm
by SundownKid
The code is simply:
Code: Select all
config.end_splash_transition = dissolve
and then for the screen:
Code: Select all
transform popup:
xalign 0.5 yalign 3.0
easein 0.5 yalign 0.5
on hide:
easeout 0.5 yalign 3.0
Code: Select all
screen save:
modal True
tag smallscreen
window id "save" at popup:
style "smallwindow"
text "Save" style "smallwindowtitle_text"
imagebutton auto "image/ui/close_%s.png" action [Hide("save"), Play("sound", "se/close.ogg")] hovered Play("sound", "se/select.ogg") style "smallwindowclose"
use file_picker
Of course, it doesn't work pretty much any time you do a transition outside of the game itself, not just on that transition.
Re: Ren'Py 6.15 Pre-Releases
Posted: Fri Mar 01, 2013 9:06 pm
by SundownKid
Bump. Would this info help?
Re: Ren'Py 6.15 Pre-Releases
Posted: Sat Mar 02, 2013 9:10 pm
by PyTom
nyaatrap wrote:It's easy to create the situation I have
Code: Select all
init python:
config.exit_transition = dissolve
transform gui:
yoffset 128
ease .3 yoffset 0
screen file_picker:
frame at gui:
When I right-click first, ATL works. but hide it then right-click again, it doesn't work.
For me, on 6.15, it's working all the time. I copied your code into the screens.py file in a copy of the tutorial game, and I can't get it to show a problem.
To look into this further, I need a standalone game that demonstrates the problem.
Re: Ren'Py 6.15 Pre-Releases
Posted: Sat Mar 02, 2013 10:00 pm
by PyTom
Sundownkid,
After spending about an hour on this, I'm unable to repeat your problem. I had to make a couple of educated guesses as to how you're calling your code, but in none of the versions I tried did I see Ren'Py behaving incorrectly. I do see one issue that might be coming up. An "on hide" block will not run when exiting a new context, like the right-click menu context. When the context ends, the displayable is destroyed - and so the hide block won't operate. So you might be seeing that happening. (This behavior might not be 100% optimal - but alternate semantics are just as hard to figure out, so it's what Ren'Py does.)
If you want me to look at this further, I need a stand-alone game I can download that exhibits the problem - I can't make due with code snippets.
Re: Ren'Py 6.15 Pre-Releases
Posted: Sat Mar 02, 2013 10:34 pm
by nyaatrap
test-1.0-win.zip
1) Click start
2) Right click to see the game menu animation
3) Right click again to hide the game menu
4) Right click again to see the same animation can occur or not
Re: Ren'Py 6.15 Pre-Releases
Posted: Sat Mar 02, 2013 10:45 pm
by nyaatrap
SundownKid, this code will fix your problem (only on show, not on hide though):
Code: Select all
label main_menu:
With Dissolve (.000001)
show screen main_menu
$ ui.interact()
Re: Ren'Py 6.15 Pre-Releases
Posted: Sun Mar 03, 2013 2:17 am
by PyTom
I just uploaded Ren'Py 6.15.0.274 to the prerelease channel.
This fixes nyaatrap's problem, and I think I might have also fixed Sundownkid's in the process... I don't yet quite understand what was wrong, but I think both bugs might be related to the same timing problem. It's worth trying out.
It also fixes a problem where rolling back in nvl mode when a non-default language was active would cause a line of dialogue to be repeated, and a compatibility problem with older games.
Re: Ren'Py 6.15 Pre-Releases
Posted: Sun Mar 03, 2013 2:59 am
by SundownKid
Indeed, it does seem like the problem is fixed now, finally. Thanks!

Re: Ren'Py 6.15 Pre-Releases
Posted: Sun Mar 03, 2013 3:35 am
by SundownKid
I'm also getting a crash bug when I reload for some reason.