PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Crash spinning stops

Open bgrimm opened this issue 10 years ago • 13 comments

Expected Behavior

Not crashing

Actual Behavior

crashes File "C:\Temp\dev\pokemongo_bot\cell_workers\seen_fort _worker.py", line 76, in work id_filter = self.config.item_filter.get(str(item_id), 0) AttributeError: 'list' object has no attribute 'get'

Steps to Reproduce

start bot, captures pokes ok, then crashes after spinning while processing loot

Other Information

OS: windows 7 0ebdfc0fe6d23898f47db0674cf892b060a0e06b

bgrimm avatar Jul 26 '16 17:07 bgrimm

Same here (on dev branch)

asaf050 avatar Jul 26 '16 17:07 asaf050

Did you update the config to include the new item filter changes?

"item_filter": {
  "1": { "keep" : 100 },
  "101": { "keep" : 10 },
  "102": { "keep" : 30 },
  "103": { "keep" : 30 },
  "201": { "keep" : 30 },
  "701": { "keep" : 100 }

},

jonathanbalagot avatar Jul 26 '16 17:07 jonathanbalagot

I am not using any filtering, so using old blank or new change makes no difference. (tried with updated item filter line and my blank: "item_filter": "",

bgrimm avatar Jul 26 '16 18:07 bgrimm

Experiencing the same symptom. Also on the dev branch.

Dekryptid avatar Jul 26 '16 18:07 Dekryptid

Does the filter need the two { } then when not using it? The previous configs did not have that.

Nevermind, I'm still receiving an error after the loot process as well. https://github.com/PokemonGoF/PokemonGo-Bot/issues/1022

jonathanbalagot avatar Jul 26 '16 18:07 jonathanbalagot

I copied over the new item_filter into my config.bot1.json and set values that I wanted to each item and it works. There needs to be code that determines if there are no items to filter that it ignores the recycling feature (i.e. "item_filter": {})

Dekryptid avatar Jul 26 '16 18:07 Dekryptid

Did you include all the other items (Other balls, potions) in your filter? I copied over the example and it eventually still crashed

jonathanbalagot avatar Jul 26 '16 18:07 jonathanbalagot

@ayiire I opened up the config.json.example and pasted what was in there for "item_filter" into my own config and left the items as is, didn't remove or add any extra. I only changed the default "keep" values.

Dekryptid avatar Jul 26 '16 18:07 Dekryptid

I still crash, tried the example config.json just plugging in my login info only and it still goes to first stop and crashes.

bgrimm avatar Jul 26 '16 19:07 bgrimm

@bgrimm The bot is still running for me with no crashes since my last post. I have not pulled anything in the last hour. When you crash, are you receiving the same output log as OP?

Dekryptid avatar Jul 26 '16 19:07 Dekryptid

@Nurvx : I tried again, (example json file with my creds and example item_filter) and now it did work, so has to be something in (my) config. It has successfully spun 2 stops and recycled items to filter value without crash.

So likely my issue, not code, if it now stable for everyone else stating they had similar problem.

bgrimm avatar Jul 26 '16 19:07 bgrimm

@bgrimm I'm glad it is working for you now. Once the recycle items feature is optional and not mandatory, then I would deem it as stable. I wish I knew git well enough to help out. I know that sounds terrible, but I've never made a commit/push or however it's done properly.

Dekryptid avatar Jul 26 '16 19:07 Dekryptid

added missing load code in 07e028292881677c06e1ded51e021d1a8cc9e68f

fredrik-hellmangroup avatar Jul 26 '16 23:07 fredrik-hellmangroup