- May 5, 2021
- 226
- 492
I need a way to filter out animated .webp images from .webp images...
Of course, animated webp files are not compatible with renpy, so I figured the best way to do that is to return whether or not the file itself is compatible.
My assumption was that I could use
I need to make this work:
I need to replace
Thanks again.
Of course, animated webp files are not compatible with renpy, so I figured the best way to do that is to return whether or not the file itself is compatible.
My assumption was that I could use
renpy.loadable()
but, as it turns out, animated webp files are very loadable... up until the point that the game crashes.I need to make this work:
Python:
the_list = []
for f in renpy.list_files():
n, e = os.path.splitext ( os.path.basename( f ) )
if not e.lower() in [ ".jpg", ".jpeg", ".png", ".webp" ]: continue
if willNotCrashYourGame( f ) # need help here
the_list.append( f )
willNotCrashYourGame( f )
with something that will not crash my game.Thanks again.