Ephenia / Pokeclicker-Scripts

Various scripts & enhancements for the game Pokéclicker.
https://github.com/Ephenia/Pokeclicker-Scripts
GNU General Public License v3.0
184 stars 263 forks source link

[BUG] Auto-hatcher getting stuck in a loop on "Times Hatched" filter #376

Closed hellonavi closed 5 months ago

hellonavi commented 5 months ago

I'm using the auto-hatcher with my filter set to times hatched (lowest first), and it keeps getting stuck in a loop. It will pull the same 3 or 4 eggs over and over despite the fact that, according to my filter settings, they should be moved down to the bottom. Changing the filter to something else and back does fix it for a minute, but then it just starts looping again. It will get itself un-stuck after a few minutes of this as well if I just let it run, but then loop again with a new set almost immediately. I am also sorting out shinies, and when a shiny hatches I have had to re-filter it out manually if it's part of the loop.

Figure it's probably related to the new v0.10.18 update, just wanted to bring it to attention since it's been kind of annoying and clearly not the intended behavior

ETA: just opening the hatchery resets things for a bit, you don't have to change the filter. it will also return to whatever loop it was on if you add Pokemon to the queue after it hatches all of them

umbralOptimatum commented 5 months ago

This is (sort of) a side effect of the update. Because of the way the hatchery menu changes work, getting the up-to-the-moment sorting order has high lag potential when the menu is closed. The current version of the script caches the order to compensate but I clearly left the refresh rate too long, fix incoming.