ALT is misbehaving while roll back

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.
Post Reply
Message
Author
User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

ALT is misbehaving while roll back

#1 Post by M0ti » Wed Oct 14, 2015 6:02 pm

Hi, I have some preset animations as transforms but I must using it wrong, because when i roll back (or when I use skip) i gets really really messy.
For example I have animation of hologram. I was trying to imitate effect from old star wars so it always shivers and sometimes randomly waver a little more to looks like there is noise in transmission.

Code: Select all

transform op1:
        xanchor .5 yanchor 1.0 ypos .82 xpos .5 xzoom .0 yzoom .0
        block: # starting
            linear .2 xzoom .2 yzoom 1.0
            linear .2 xzoom 1.0
        parallel: # constant shiver
            linear .05 xoffset 2 yoffset 2
            linear .05 xoffset -2 yoffset -2
            repeat
        parallel: # small change in transparency
                choice:
                    linear 1.5 alpha .6
                    linear 1.5 alpha .8
                choice:
                    linear 5.0 alpha .8
                repeat
So when I want to start a hologram I do it like this:

Code: Select all

show nicehologram at op1
show nicehologram as h2 at op2
There are always two of them. The second one (op2) is most of the time transparent and shows up only sometimes in quick animation for the noise in transmission look.
Like this it shows up in center of screen, so when I want it somewhere else I wrote it this way:

Code: Select all

show nicehologram at op1:
    xpos .8
show nicehologram as h2 at op2:
    xpos .8
It also has simple closing sequence:

Code: Select all

transform opv:
            linear .2 alpha .6 xzoom .2
            linear .2 alpha .0 xzoom .0 yzoom .0
...
...
show nicehologram at opv
show nicehologram as h2 at opv
And here begins the problem.
When I, after opv animation, rollback just few lines up. Sometimes it shows opv animation again but then nothing. The nicehologram at op1 and op2 are not shown.
In say window is text of someone talking to me through hologram but there is no hologram at all.
Sometimes after rollback, the pictures of nicehologram are shown, but they travel slowly from odd and random positions somewhere off the screen to the right place. When they get there they start behaving properly.
In any case it always looks broken and I naturally dont like it. Any idea what to try differently?

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: ALT is misbehaving while roll back

#2 Post by PyTom » Sat Oct 17, 2015 7:54 pm

Sorry, but can you put together a replication of this - a short demo game that illustrates the problem? It's hard to understand what's going on with just a text description. By giving me code, I can figure it out.
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
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: ALT is misbehaving while roll back

#4 Post by PyTom » Wed Oct 21, 2015 9:54 pm

I just landed a fix for this problem. (Which means it will be in tomorrow's nightly, and 6.99.7.)
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
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: ALT is misbehaving while roll back

#5 Post by M0ti » Thu Oct 22, 2015 2:06 am

Wow, thanks a lot. Thanks for your hard work.
I was afraid of answer like: sorry, but that's just not the way things work. Don't use it that way. :D

User avatar
M0ti
Regular
Posts: 66
Joined: Mon Aug 15, 2011 1:06 pm
Contact:

Re: ALT is misbehaving while roll back

#6 Post by M0ti » Wed Oct 28, 2015 4:12 pm

Hi, I wanted to ask, when will be the 6.99.7 update released. We want to plan release date for our visual novel according to it.

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: ALT is misbehaving while roll back

#7 Post by PyTom » Wed Oct 28, 2015 6:36 pm

It's hard to know for sure, but very soon. The prerelease is already available.
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

Post Reply

Who is online

Users browsing this forum: No registered users