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

MoveToPokemonMap continues moving to a pokemon it has already caught

Open jordahlk opened this issue 10 years ago • 4 comments

Expected Behavior

Should re-route after catching the pokemon it was moving toward

Actual Behavior

Continues to move toward pokemon spawn location

Steps to Reproduce

Config is as follows:

"type": "MoveToMapPokemon",
        "config": {
          "address": "http://localhost:5000",
          "max_distance": 500,
          "min_time": 60,
          "prioritize_vips": true,
          "snipe": false,
          "update_map": true,
          "mode": "priority",
          "catch": {
            "==========Legendaries==========": 0,
            "Aerodactyl": 1000,
            "Snorlax": 1000,
            "Articuno": 1000,
...

Other Information

OS: Windows 10 Git Commit: 6960f356a8d841cefbfd1018b23877b73a6a0d12 Python Version: Python 2.7.10

jordahlk avatar Aug 07 '16 16:08 jordahlk

Doesn't seem to behave that way on my machine.

BobbyWibowo avatar Aug 07 '16 16:08 BobbyWibowo

I see similar behaviour. After catching the pokemon the bot keeps walking to the exact location of the pokemon. I assume this is because the pokemon is already within range ~0.06km from it's exact location. Not sure if this can be fixed.

2016-08-08 18:28:24,310 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.09km, left (10 minutes, 53 seconds)
2016-08-08 18:28:32,698 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.07km, left (10 minutes, 45 seconds)
2016-08-08 18:28:40,935 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Staryu appeared! [CP 58] [Potential 0.36] [S/A/D 9/4/3]
2016-08-08 18:28:44,045 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 92.71 (1 left)
2016-08-08 18:28:44,674 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Staryu! [CP 58] [Potential 0.36] [9/4/3] [+210 exp]
2016-08-08 18:28:49,735 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.06km, left (10 minutes, 28 seconds)
2016-08-08 18:28:59,340 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.04km, left (10 minutes, 18 seconds)
2016-08-08 18:29:07,147 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.03km, left (10 minutes, 10 seconds)
2016-08-08 18:29:14,750 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Staryu, 0.01km, left (10 minutes, 3 seconds)
2016-08-08 18:29:14,751 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encountered Pokemon: Staryu

Other Information

OS: Linux Git Commit: ff380cd Python Version: Python 2.7.12

leanderjanssen avatar Aug 08 '16 18:08 leanderjanssen

Same behaviour here.

Other Information

OS: Linux Git Commit: 3c9806b Python Version: Python Python 2.7.9

dmunozfer avatar Aug 09 '16 00:08 dmunozfer

fixed

k4n30 avatar Aug 16 '16 09:08 k4n30