Unlucky-Life / ankimon

Ankimon is a Anki Addon to Gamify your learning experience
Other
35 stars 4 forks source link

Error on catching Pokemon (update life bar not defined #131

Closed coogy12 closed 1 month ago

coogy12 commented 1 month ago

Encountered this error on catching my first Pokemon

File "/Users/. /Library/Application Support/Anki2/addons21/1908235722/init.py", line 1824, in catch_pokemon new_pokemon() # Show a new random Pokémon File "/Users/. /Library/Application Support/Anki2/addons21/1908235722/init.py", line 1881, in new_pokemon update_life_bar(reviewer, 0, 0) NameError: name 'update_life_bar' is not defined

Unlucky-Life commented 1 month ago

@coogy12 Did you restart your anki yet after choosing your mainpokemon.json ? If not try that first. Else If that issue persists let me know !

Unlucky-Life commented 1 month ago

@coogy12 I also recommend to download the latest pre release :) https://github.com/Unlucky-Life/ankimon/releases/tag/1.287 -> download the .ankiaddon file and double click to install the update !

coogy12 commented 1 month ago

@Unlucky-Life I had not done that yet and it seems to have fixed everything. I actually started on the pre release as the original release was not working for me due to the divide by zero error mentioned on another thread. I just went ahead and downloaded the entire pre-release to fix that issue.

Unlucky-Life commented 1 month ago

ok perfect! Have fun using Ankimon ! :) (The divide by zero issue is basically due to missing sprites in the "back_default" folder -> these u need to download extra under: https://github.com/Unlucky-Life/ankimon/tree/main/missing_back_sprites and place them into your "back_default" folder inside of the sprites folder.

coogy12 commented 1 month ago

@Unlucky-Life yeah I read that on the other error post, but those sprites were not sufficient to fix my problem. My sprites folder that you say the missing files should be installed to only had sprites 1 and 2 and the missing files only contained sprites numbered in the 600s. So I just downloaded the entire pre released version to get all the other sprites.