micah5 / ace-attorney-reddit-bot

👨🏼‍⚖️ reddit bot that turns comment chains into ace attorney scenes
Do What The F*ck You Want To Public License
772 stars 54 forks source link

AssertionError: assets/Sprites-gumshoe/gumshoe-shy.gif does not exist #15

Closed LuisMayo closed 3 years ago

LuisMayo commented 3 years ago

Or at least is not provided in the pack described in README.md Thanks.

l1n commented 3 years ago

Line 320 or so of anim.py, add these lines to fallback the asset (gumshoe-shy doesn't exist)

                    if not os.path.isfile(
                        default_path
                        ):
                        default_path = (
                        f"{_dir}/{current_character_name.lower()}-normal(a).gif"
LuisMayo commented 3 years ago

Thanks @l1n that's a good fix You may want to open a PR to fix it, I'll do it myself if you don't feel like it. Thanks!