Azelphur / PokemonGo-CalcyIV-Renamer

Uses adb to send fake tap events to your phone, alongside Calcy IV to automatically rename all your pokemon.
GNU General Public License v3.0
77 stars 32 forks source link

Stuck logcats solutions #49

Closed esauvisky closed 5 years ago

esauvisky commented 5 years ago

This PR fixes all the "stuck on logcat" issues I've found so far.

It rewrites the "Received values:" regex (RE_CALCY_IV) to actually work with all of outputs Calcy sends, except for one, in which it doesn't outputs any MainService/Received values on the logcat, which is why I had to add yet another regex (RE_SCAN_TOO_SOON) to catch it.

This will bring some benefits for badly configured waits as well or poor internet connections, as there are fallbacks taps for when rename_ok button on PoGo's modal doesn't work or delays a lot.

Also, a small test with 368 random pokemons returned no errors whatsoever and no halt of the whole renaming process (it actually halted on a random internet but RE_SCAN_TOO_SOON dealt with it like it's supposed to).

Some other low-priority stuff got fixed as well, like SpecialMove2.