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.
-
Thaw87
- Newbie
- Posts: 3
- Joined: Thu Oct 27, 2022 5:46 am
- Deviantart: Thaw87
- itch: thaw87
- Discord: Thaw87
-
Contact:
#1
Post
by Thaw87 » Mon Oct 31, 2022 3:25 pm
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?
-
Ocelot
- Eileen-Class Veteran
- Posts: 1882
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#2
Post
by Ocelot » Mon Oct 31, 2022 3:51 pm
If you are adding hide clause to your python block where you initialize it, don't. Hide hides any identifier you defined here.
< < insert Rick Cook quote here > >