Page 1 of 1

Ran into a problem using custom warpers in Ren'Py 8.0.3

Posted: Mon Oct 31, 2022 3:25 pm
by Thaw87
I tried to make a custom warper for my ATL code and gave them a clever name.

Code: Select all

    @renpy.atl_warper
    def mywarper(t):
        # tweaning goes brrr
This resulted in a runtime error. After I choose an existing name like linear or easein_cubic the problem was solved.

Code: Select all

    @renpy.atl_warper
    def easein_cubic(t):
        # tweaning goes brrr
Is there a limitation on warper names? My warper is a really specific one so I don't feel like overriding the original ones.
The documentation didn't warn about such a limitation:
New warpers can be defined using the renpy.atl_warper decorator, in a python early block. It should be placed in a file that is parsed before any file that uses the warper.
Any ideas?

Re: Ran into a problem using custom warpers in Ren'Py 8.0.3

Posted: Mon Oct 31, 2022 3:51 pm
by Ocelot
If you are adding hide clause to your python block where you initialize it, don't. Hide hides any identifier you defined here.