Farigh / pokeclicker-automation

An automation script suite for pokeclicker.com
GNU General Public License v3.0
37 stars 19 forks source link

Functions broken with update #332

Closed Essoheli closed 5 months ago

Essoheli commented 5 months ago

PokeClicker updated to v0.10.18, with it the following are either broken entirely or non-functional:

Focus On - Switched to zone, but does not fire off automated interaction. Ex: Selected Bug Gems, moved to correct city, will not autoattack the gym. Hatchery - no eggs autoloading. Mining - Not firing off even at full energy Farming - No interaction AutoShop - Non-functional Trivia Menu - entirely blank.

Functional: Autoclicker

Browser: Firefox

Error from Console: Uncaught TypeError: player.mineInventory is not a function currentlyHeldFossils https://www.pokeclicker.com/# line 95 > injectedScript:801 internaladdFossilsToHatchery https://www.pokeclicker.com/# line 95 > injectedScript:800 internalhatcheryLoop https://www.pokeclicker.com/# line 95 > injectedScript:720 234 www.pokeclicker.com:801:25 currentlyHeldFossils https://www.pokeclicker.com/# line 95 > injectedScript:801 map self-hosted:221 internaladdFossilsToHatchery https://www.pokeclicker.com/# line 95 > injectedScript:800 internalhatcheryLoop https://www.pokeclicker.com/# line 95 > injectedScript:720

timewaster commented 5 months ago

Turning off Hatchery/Mining allows some functions to work including autobuy and gems where a gym is not identified as the best source of gems.

https://github.com/pokeclicker/pokeclicker/commit/25d0376f8ddb5cb828afaa6b1b18ca8bb16e789a

This is the direct commit causing the above error as it refactors underground items/fossils.

Farigh commented 5 months ago

I'll try to fix it as fast as I can

Farigh commented 5 months ago

The script-suite should now work properly. Don't hesitate to reopen this issue or create a new one if any other issues appear.