MoveToMapPokemon stuck nearby already encountered pokemon.
Expected Behavior
MoveToMapPokemon should go on when the targeted pokemon isn't there.
Actual Behavior
If the bot encounters a pokemon previously untargeted and then tries to move to it, it gets stucks within 0.01km.
Your FULL config.json (remove your username, password, gmapkey and any other private info)
Same as in example.map.
Output when issue occurred
2016-08-22 10:22:29,487 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Pidgey, 0.02km, left (6 minutes, 6 seconds) 2016-08-22 10:22:29,660 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop The White House - 1909 - 0.07km 2016-08-22 10:22:33,187 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Pidgey, 0.02km, left (6 minutes, 2 seconds) 2016-08-22 10:22:33,203 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop The White House - 1909 - 0.07km 2016-08-22 10:22:36,892 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Pidgey, 0.02km, left (5 minutes, 59 seconds) 2016-08-22 10:22:36,907 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop The White House - 1909 - 0.07km
Please advice.
What commit are you on?
I see this is happening because the speed isn't enough to get us to either location (the pokemon or the stop). So we move closer to the pokemon, but then move the other direction when movetofort is called. Then back and forth.
I am on the latest dev commit.
Just had exactly the same problem with latest dev.
Bot stuck between a snorlax and a portal but never reach any of it.
I added "max_extra_dist_fort": 1, to my config and hope that solved it.
edit: That did not fix it. Try to remove movetofort now.
Even without movetofort there is a problem with movetomap:
2016-08-22 17:48:34,052 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (4 minutes, 5 seconds) 2016-08-22 17:48:37,903 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (4 minutes, 2 seconds) 2016-08-22 17:48:42,489 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 57 seconds) 2016-08-22 17:48:44,101 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.03km, left (3 minutes, 55 seconds) 2016-08-22 17:48:49,083 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 50 seconds) 2016-08-22 17:48:53,906 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 46 seconds) 2016-08-22 17:48:56,105 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 43 seconds) 2016-08-22 17:48:58,150 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.03km, left (3 minutes, 41 seconds) 2016-08-22 17:49:02,731 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 37 seconds) 2016-08-22 17:49:04,871 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 35 seconds) 2016-08-22 17:49:07,151 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 32 seconds) 2016-08-22 17:49:12,774 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 27 seconds) 2016-08-22 17:49:14,928 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.03km, left (3 minutes, 25 seconds) 2016-08-22 17:49:17,058 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.03km, left (3 minutes, 22 seconds) 2016-08-22 17:49:21,058 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 18 seconds) 2016-08-22 17:49:23,061 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 16 seconds) 2016-08-22 17:49:24,663 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 15 seconds) 2016-08-22 17:49:28,361 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.03km, left (3 minutes, 11 seconds) 2016-08-22 17:49:30,240 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 9 seconds) 2016-08-22 17:49:37,511 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.05km, left (3 minutes, 2 seconds) 2016-08-22 17:49:39,805 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Magikarp, 0.04km, left (3 minutes, 0 seconds)
Disable move_to_map_pokemon for now. Sorry this is broke!
@jane0815 Still having the same issue? I don't think we've resolved very close edge cases (very close to fort/pokemon and darting back and forth).
Did not happen for me again. But i also changed my bot config to low speed and let them run only 1-2h hours a day.
@Jasperrr91 Your thoughts?
It seems it tried to move to a Magikarp that wasn't there. Possibly fake data? We could add a check that removes the pokemon from the list if it hasn't been encountered after xx seconds so it doesn't stay there for the entire despawn time.
As for the darting back and forth, I'll read through the current code to see if there's anything that can be done against that.