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 fossil hatch is broken in Enhanced Auto Hatchery #373

Closed jtylr closed 5 months ago

jtylr commented 5 months ago

Seems to be bug with the new update so apologies if it's already been handled.

Getting the following error on game load if the hatchery script is active:

userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:244 Uncaught (in promise) TypeError: player.mineInventory is not a function
    at userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:244:45
    at Array.map (<anonymous>)
    at autoHatchFossil (userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:244:29)
    at autoHatcher (userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:151:36)
    at initAutoHatch (userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:73:9)
    at Preload.hideSplashScreen (userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Hatchery.user.js&id=e436ef71-85bb-4300-8f33-05a09a57b5d9:309:13)
    at Preload.hideSplashScreen (userscript.html?name=%255BPokeclicker%255D-Enhanced-Auto-Clicker.user.js&id=0fcade20-f09f-4bfc-b104-f6aead702774:1122:30)
    at Preload.hideSplashScreen (userscript.html?name=%255BPokeclicker%255D-Oak-Items-Unlimited.user.js&id=e9b9a24d-f599-4ce7-8bf4-0303a143bbd5:39:30)
    at Preload.hideSplashScreen (userscript.html?name=%255BPokeclicker%255D-Simple-Auto-Farmer.user.js&id=17ea9cca-1f5d-4a09-8cb8-8966872f6b3d:248:30)
    at Preload.hideSplashScreen (userscript.html?name=%255BPokeclicker%255D-Auto-Quest-Completer.user.js&id=4d343383-475c-47f4-92d6-f740213ebfb7:327:30)

https://github.com/Ephenia/Pokeclicker-Scripts/blob/753d8b6f0187637e5fa7af7eb50659dc62d8e842/enhancedautohatchery.user.js#L243

Potentially related to https://github.com/pokeclicker/pokeclicker/issues/5043 but I'm not familiar with the code.


Issue seems to go away if you turn off fossil hatch and reload.