"ATL Transform not known" (SOLVED!)

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
Shedonkadonk
Newbie
Posts: 18
Joined: Mon May 18, 2015 10:10 pm
Projects: Reaper's Rebellion: ToD
Tumblr: shedonkadonk
Deviantart: shedonkadonk
Location: West Coast, U.S.A.
Contact:

"ATL Transform not known" (SOLVED!)

#1 Post by Shedonkadonk »

Hey Lemmasoft Forums, long time since I've posted here last.

I am trying to insert some transformations I grabbed from the Cute Demon Crashers so that the characters bounce forward when talking to you, and bouncing back when theyre done talking.

This is what I get when trying to run the code with the transformations just placed next in the block of my define transformation chunk.

Code: Select all

While running game code:
  File "game/script.rpy", line 22, in script
    show celestina at center with speak
Exception: Parameter 'new_widget' is not known by ATL Transform.
The original code

Code: Select all

init -1:
    # -- Transitions to use with set_state() ---------------------------
    python:
        with_dissolve = Dissolve(0.5, alpha=True)


        # -- Music ---------------------------------------------------------
        music_claire = "assets/music/Orangebeat - Claire Suite.mp3"
        music_akki = "assets/music/Orangebeat - Akki.mp3"
        music_mirari = "assets/music/Orangebeat - Mirari.mp3"
        music_kael = "assets/music/Orangebeat - Kael.mp3"
        music_orias = "assets/music/Orangebeat - Orias.mp3"
        music_daily = "assets/music/Orangebeat - Daily Life Suite.mp3"
        music_lullaby = "assets/music/Orangebeat - Daily Life Suite_Loop_2_lullaby.mp3"
        music_romance = "assets/music/Orangebeat - Daily Life Suite_Loop_3_romancing.mp3"
        music_tension = "assets/music/Orangebeat - Romantic Tension.mp3"
        music_love = "assets/music/Orangebeat - Love.mp3"
        music_silly = "assets/music/Orangebeat - Silliness.mp3"

    # -- Simple transforms ---------------------------------------------
    transform resize_sprite:
        zoom 0.6

    transform speak:
        linear .2 yanchor .9
        linear .2 zoom 1.15

    transform endspeak:
        parallel:
            linear .2 zoom 1
            linear .2 yanchor .99
        parallel:
            yoffset 100

What I had put in my code

Code: Select all

init:
    
    
    transform reset:
        alpha 1 rotate None zoom 1 xzoom 1 yzoom 1 align (0, 0) alignaround (0, 0) subpixel False size None crop None

    # These are positions that can be used inside at clauses. We set
    # them up here so that they can be used throughout the program.
    transform left:
        xpos 0.0 xanchor 0.0 ypos 1.0 yanchor 1.0

    transform right:
        xpos 1.0 xanchor 1.0 ypos 1.0 yanchor 1.0

    transform center:
        xpos 0.5 xanchor 0.5 ypos 1.0 yanchor 1.0

    transform truecenter:
        xpos 0.5 xanchor 0.5 ypos 0.5 yanchor 0.5

    transform topleft:
        xpos 0.0 xanchor 0.0 ypos 0.0 yanchor 0.0

    transform topright:
        xpos 1.0 xanchor 1.0 ypos 0.0 yanchor 0.0

    transform top:
        xpos 0.5 xanchor 0.5 ypos 0.0 yanchor 0.0
        
    transform sideleft:
        xpos 0.003 xanchor 1.8 ypos 1.0 yanchor 1.0
        
    transform sideright:
        xpos 0.003 xanchor 0.8 ypos 1.0 yanchor 1.0

    # Offscreen positions for use with the move transition. Images at
    # these positions are still shown (and consume
    # resources)... remember to hide the image after the transition.
    transform offscreenleft:
        xpos 0.0 xanchor 1.0 ypos 1.0 yanchor 1.0

    transform offscreenright:
        xpos 1.0 xanchor 0.0 ypos 1.0 yanchor 1.0

    transform default:
        alpha 1 rotate None zoom 1 xzoom 1 yzoom 1 align (0, 0) alignaround (0, 0) subpixel False size None crop None
        xpos 0.5 xanchor 0.5 ypos 1.0 yanchor 1.0
 
 
    # ATL transitions
    
    $ slowdissolve = Dissolve(1.0)
    
    transform locationchange(new_widget, old_widget):
        delay 1.0
        
        contains: 
            new_widget
            truecenter
            zoom 2.0 alpha 0.0
            ease 1.0 alpha 1.0 zoom 1.0
            
        contains: 
            old_widget
            truecenter
            zoom 1.0 alpha 1.0
            ease 1.0 alpha 0.0 zoom 2.0
    
    transform speak:
        linear .2 yanchor .9
        linear .2 zoom 1.15

    transform endspeak:
        parallel:
            linear .2 zoom 1
            linear .2 yanchor .99
        parallel:
            yoffset 100
Last edited by Shedonkadonk on Sat Feb 24, 2018 3:18 am, edited 1 time in total.

irredeemable
Regular
Posts: 78
Joined: Thu Feb 08, 2018 7:57 am
Contact:

Re: "ATL Transform not known"

#2 Post by irredeemable »

Transforms worked fine for me. Post your script from the start label to the point of the crash.

User avatar
Shedonkadonk
Newbie
Posts: 18
Joined: Mon May 18, 2015 10:10 pm
Projects: Reaper's Rebellion: ToD
Tumblr: shedonkadonk
Deviantart: shedonkadonk
Location: West Coast, U.S.A.
Contact:

Re: "ATL Transform not known"

#3 Post by Shedonkadonk »

It's an almost immediate crash, the minute it reads the 'speak' line it crashes.

Code: Select all

label start:
 
 stop music fadeout 1    
 scene bg black with fade
 
 show celestina at center with locationchange
 show celestina at center with speak
 c "bepis room"
 show celestina at center with endspeak
 hide celestina
 

User avatar
Draziya
Regular
Posts: 70
Joined: Sun Nov 26, 2017 8:50 am
Completed: this was for you. [NaNoRenO 19], Acetylene [AceJam19], Ah!! My Roommate is a Succubus Hellbent on World [MonJam 18], I Don't Have A Clue [QRMJam 18], Cautionary Tale [NaNoRenO 18], OP Dodge Cross [GGJ 18], Acetone [AceJam 18]
Projects: I'm a love interest in my childhood friend's reverse harem!!
Organization: Watercress
itch: Drazillion
Contact:

Re: "ATL Transform not known"

#4 Post by Draziya »

After a lot of mucking around with the code, I've come to the conclusion that the problem is not with locationchange (which you'd think because the error mentions new_widget, but with speak.

Try:

Code: Select all

 show celestina at center, speak
Image

irredeemable
Regular
Posts: 78
Joined: Thu Feb 08, 2018 7:57 am
Contact:

Re: "ATL Transform not known"

#5 Post by irredeemable »

The problem is trying to use speak as a transition (i.e. using 'with'). If you try to use a transform as a transition it expects new_widget and old_widget.

User avatar
Shedonkadonk
Newbie
Posts: 18
Joined: Mon May 18, 2015 10:10 pm
Projects: Reaper's Rebellion: ToD
Tumblr: shedonkadonk
Deviantart: shedonkadonk
Location: West Coast, U.S.A.
Contact:

Re: "ATL Transform not known"

#6 Post by Shedonkadonk »

The comma worked! Thank you guys!

Post Reply

Who is online

Users browsing this forum: AWizardWithWords, Google [Bot]