Icehawk78 / FrozenCookies

An automated Cookie Clicker tool.
120 stars 169 forks source link

Clicking "percentage of Golden Cookies should be assumed as 'clicked'" breaks the game #25

Closed waynn closed 10 years ago

waynn commented 10 years ago

I have everything on (autobuy, autoclick, autopop wrinklers, etc.), and I hit the "what percentage" button out of curiosity (currently set to 100%). It then toggled to 0%, and then everything froze. Refreshing fixed it, but just thought I'd file a ticket. :)

cincodenada commented 10 years ago

I've been investigating this a bit, and it seems that this breaks the bestBank() function, which I believe is in turn broken by the cookieEfficiency() function - that's where simulatedGCPercent comes into play (via gcPs()).

I suspect that something in that situation causes all the items to be filtered out of the array, resulting in nothing being returned from bestBank(). The specifics of why that happens eluded my brief efforts - perhaps cookieEfficiency() fails to return 0 when bankAmount is 0?

One note: if a simple refresh doesn't fix it, and you can't access settings becuase things are frozen, you can delete the Local Data setting. In Chrome, that's Developer Tools->Resources->Local Storage->orteil.net, the ndelete simulatedGCPercent.

Koveras commented 10 years ago

This is fixed in the latest version released today (1.03931)

waynn commented 10 years ago

I'll close then!