Pokeclicker-Scripts icon indicating copy to clipboard operation
Pokeclicker-Scripts copied to clipboard

Can't deselect/select quests

Open Sothethingis opened this issue 3 years ago • 1 comments

It seems that the new update broke the auto quest. I can no longer switch which quests are active. When I click on a quest to either select or deselect it, it functions as if I clicked another random quest. (Ex: trying to deactivate the shiny quest instead activates a gem quest). I do not code, but it seems like the newest update has changed the buttons' size, which might be causing/contributing to the issue. If it matters at all, I'm on the latest desktop version.

image This is the size when auto quest is on.

image Size after turning 'auto' off and paying money to refresh the quest list.

Sothethingis avatar Jul 22 '22 20:07 Sothethingis

Gives me a reason to update this and make this visibly work better.

Ephenia avatar Jul 23 '22 01:07 Ephenia

FYI you can fix this by opening the console and clearing the filter on quest types:

  1. Press F12, then go into the Console tab.
  2. Type localStorage.removeItem('autoQuestTypes') into the console and press Enter to clear the filter.
  3. Refresh the game.

My guess is that the base game changed the types but the script cached them at the time it was first run, as seen in the script:

//Define quest types
let questTypes = [];
if (localStorage.getItem('autoQuestTypes') == null){
  for (const type in QuestHelper.quests) {
    questTypes.push(type);
  }
  localStorage.setItem('autoQuestTypes', JSON.stringify(questTypes))
} else {
  questTypes = JSON.parse(localStorage.getItem('autoQuestTypes'));
}

So if the base game adds / changes quest types, the localStorage is out of sync and it creates this issue.

gautier-lefebvre avatar Oct 13 '22 15:10 gautier-lefebvre

Is the clearing filter solution working on the desktop client and if so, how? I think the F12 + console tab is just on browser or am I wrong?

Ignorance001 avatar May 22 '23 06:05 Ignorance001