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

Task Order not honored

Open Dracon23 opened this issue 10 years ago • 8 comments

Expected Behavior

Bot honors the task order, for example spin pokestops BEFORE catching pokemon

Actual Behavior

Bot catches pokemon first, no matter what I tell it, resulting in it running out of pokeballs and thus stuck in "wild xyz appeared - no usable pokeballs" loop, till I remove catch tasks from config.

Your config.json (remove your credentials and any other private info)

https://gist.github.com/Dracon23/4b296cefd5ed4f09b282fd68d2b2a50e

Steps to Reproduce

  1. Find a spot rich with pokemon and not in spin range of any pokemon.
  2. Let it sit there, catch pokemon, it WILL run out at some point.
  3. Next pokemon appears, loop.

Other Information

OS: Ubuntu Linux 16.04.1 - headless server Git Commit: a8242f7bda8cfb1b726173018a903fd4c58f87cc Python Version: Python 2.7.12 (default, Jul 1 2016, 15:12:24)

Dracon23 avatar Aug 11 '16 09:08 Dracon23

@Dracon23 Please post your logs

BriceSD avatar Aug 11 '16 10:08 BriceSD

Fresh right now

Dracon23 avatar Aug 11 '16 10:08 Dracon23

Interesting. Your log says you have 99 Ultra Balls available. Should the bot not use these if you have no Pokeballs or Great Balls in your inventory? Seems odd to me. The pokemon catch worker should use whatever the lowest available ball is by default:

            current_ball = ITEM_POKEBALL
            while items_stock[current_ball] == 0 and current_ball < maximum_ball:
                current_ball += 1
            if items_stock[current_ball] == 0:
                self.emit_event('no_pokeballs', formatted='No usable pokeballs found!')
                break

I realise this doesn't answer your question, but there appears to be an issue somewhere related to ball selection.

Maybe if no usable balls, then bot should "run away" to avoid getting stuck in a loop?

Gobberwart avatar Aug 11 '16 22:08 Gobberwart

@Gobberwart if you’re right and he doesn’t use his ultraball, it’s a known issue and a fix is coming for this. #3421

BriceSD avatar Aug 11 '16 22:08 BriceSD

Potentially related #3563

smfbrooks avatar Aug 12 '16 00:08 smfbrooks

Yes, I have ultras.... And i,'ve seen the other issue and was pointed to a fix on slack.

Dracon23 avatar Aug 12 '16 05:08 Dracon23

What's bugging me (heh)... Is that he won't continue to a poke stop... He just keeps looping the encounter, and doesn.'t do jack till the mon disappears...

Dracon23 avatar Aug 12 '16 05:08 Dracon23

OP Issue resolved

k4n30 avatar Aug 16 '16 12:08 k4n30