PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.87k stars 1.54k forks source link

Using MoveToMapPokemon bot is never moving to a Pokestop #3134

Closed leanderjanssen closed 8 years ago

leanderjanssen commented 8 years ago

Expected Behavior

After catching a pokemon using MoveToMapPokemon go to the nearest Pokestop.

Actual Behavior

Bot does start moving to the Pokestop, but changes its course to go the next pokemon.

2016-08-08 19:10:41,664 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.10km, left (8 minutes, 16 seconds)
2016-08-08 19:10:58,747 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.09km, left (7 minutes, 59 seconds)
2016-08-08 19:11:09,161 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.08km, left (7 minutes, 48 seconds)
2016-08-08 19:11:17,293 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Poliwag appeared! [CP 28] [Potential 0.24] [S/A/D 3/6/2]
2016-08-08 19:11:20,202 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Greatball, with chance 100.00 (15 left)
2016-08-08 19:11:20,753 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Poliwag! [CP 28] [Potential 0.24] [3/6/2] [+210 exp]
2016-08-08 19:11:25,816 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.06km, left (7 minutes, 32 seconds)
2016-08-08 19:11:36,059 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.05km, left (7 minutes, 21 seconds)
2016-08-08 19:11:44,128 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.03km, left (7 minutes, 13 seconds)
2016-08-08 19:11:52,068 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Poliwag, 0.02km, left (7 minutes, 5 seconds)
2016-08-08 19:11:52,069 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encountered Pokemon: Poliwag
2016-08-08 19:11:52,072 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Speeltuintje Lanen - 0.11km
2016-08-08 19:11:59,485 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Slowpoke, 0.77km, left (9 minutes, 55 seconds)
2016-08-08 19:12:07,654 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Slowpoke, 0.76km, left (9 minutes, 47 seconds)
2016-08-08 19:12:14,736 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Slowpoke, 0.74km, left (9 minutes, 40 seconds)

Steps to Reproduce

{
    "auth_service": "",
    "username": "",
    "password": "",
    "location": "",
    "gmapkey": "",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "UpdateTitleStats",
        "config": {
            "min_interval": 60,
            "stats": ["uptime", "km_walked", "level_stats", "xp_earned", "xp_per_hour", "pokemon_caught"]
        }
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
          "evolve_all": "none",
          "first_evolve_by": "cp",
          "evolve_above_cp": 500,
          "evolve_above_iv": 0.8,
          "logic": "or",
          "evolve_speed": 20,
          "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       { "keep" : 50 },
            "Greatball":      { "keep" : 50 },
            "Ultraball":      { "keep" : 50 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 20 },
            "Max Potion":     { "keep" : 20 },
            "Revive":         { "keep" : 20 },
            "Razz Berry":     { "keep" : 50 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToMapPokemon",
        "config": {
          "address": "http://localhost:8000",
          "max_distance": 1000,
          "min_time": 60,
          "prioritize_vips": true,
          "snipe": false,
          "update_map": true,
          "mode": "priority",
          "catch": {
            "==========Legendaries==========": 0,
            "Aerodactyl": 1000,
            "Snorlax": 1000,
            "Articuno": 1000,
            "Zapdos": 1000,
            "Moltres": 1000,
            "Dratini": 1000,
            "Dragonair": 1000,
            "Dragonite": 1000,
            "Mewtwo": 1000,
            "Mew": 1000,

            "==========Region Locked==========": 0,
            "Farfetch'd": 1000,
            "Kangaskhan": 1000,
            "Mr. Mime": 1000,
            "Tauros": 1000,

            "==========Very Rare==========": 0,
            "Lapras": 900,
            "Electabuzz": 900,
            "Magmar": 900,
            "Ditto": 900,

            "==========Starters==========": 0,
            "Bulbasaur": 400,
            "Ivysaur": 600,
            "Venusaur": 1000,

            "Charmander": 400,
            "Charmeleon": 600,
            "Charizard": 1000,

            "Squirtle": 400,
            "Wartortle": 600,
            "Blastoise": 1000,

            "Pikachu": 600,
            "Raichu": 1000,

            "==========Semi Rare==========": 0,
            "Porygon": 200,
            "Scyther": 200,
            "Jynx": 200,

            "==========Uncommon==========": 0,

            "Omanyte": 150,
            "Omastar": 500,

            "Seel": 300,
            "Dewgong": 500,

            "Grimer": 200,
            "Muk": 500,

            "Shellder": 200,
            "Cloyster": 500,

            "Gastly": 200,
            "Haunter": 500,
            "Gengar": 1000,

            "Onix": 600,

            "Drowzee": 600,

            "Hypno": 600,

            "Vulpix": 200,
            "Ninetales": 600,

            "Paras": 100,
            "Parasect": 500,

            "Growlithe": 200,
            "Arcanine": 700,

            "Tentacool": 200,
            "Tentacruel": 500,

            "Mankey": 150,
            "Primeape": 500,

            "Clefairy": 150,
            "Clefable": 500,

            "Jigglypuff": 150,
            "Wigglytuff": 500,

            "Venonat": 100,
            "Venomoth": 500,

            "Diglett": 200,
            "Dugtrio": 500,

            "Meowth": 250,
            "Persian": 500,

            "Psyduck": 150,
            "Golduck": 500,

            "Geodude": 100,
            "Graveler": 500,
            "Golem": 800,

            "Eevee": 200,
            "Vaporeon": 800,
            "Jolteon": 800,
            "Flareon": 800,

            "Kabuto": 150,
            "Kabutops": 500,

            "Magikarp": 150,
            "Gyarados": 800,

            "Pinsir": 150,

            "Ponyta": 200,
            "Rapidash": 500,

            "Slowpoke": 200,
            "Slowbro": 500,

            "Magnemite": 250,
            "Magneton": 500,

            "Krabby": 100,
            "Kingler": 500,

            "Voltorb": 200,
            "Electrode": 500,

            "Exeggcute": 250,
            "Exeggcutor": 500,

            "Cubone": 300,
            "Marowak": 800,

            "Hitmonlee": 400,

            "Hitmonchan": 400,

            "Lickitung": 500,

            "Koffing": 200,
            "Weezing": 500,

            "Rhyhorn": 200,
            "Rhydon": 500,

            "Chansey": 800,

            "Tangela": 300,

            "Horsea": 200,
            "Seadra": 600,

            "Goldeen": 150,
            "Seaking": 500,

            "Staryu": 200,
            "Starmie": 800,

            "==========T1 Evolvers==========": 0,
            "Caterpie": 10,
            "Metapod": 10,
            "Butterfree": 500,

            "Weedle": 10,
            "Kakuna": 10,
            "Beedrill": 500,

            "Pidgey": 10,
            "Pidgeotto": 10,
            "Pidgeot": 300,

            "==========T2 Evolvers==========": 0,
            "Nidoran F": 10,
            "Nidorina": 10,
            "Nidoqueen": 10,

            "Nidoran M": 10,
            "Nidorino": 10,
            "Nidoking": 10,

            "Oddish": 100,
            "Gloom": 200,
            "Vileplume": 600,

            "Poliwag": 200,
            "Poliwhirl": 400,
            "Poliwrath": 800,

            "Abra": 300,
            "Kadabra": 600,
            "Alakazam": 800,

            "Machop": 150,
            "Machoke": 400,
            "Machamp": 800,

            "Bellsprout": 100,
            "Weepinbell": 400,
            "Victreebel": 800,

            "==========Trash==========": 0,

            "Rattata": 10,
            "Raticate": 10,

            "Spearow": 10,
            "Fearow": 10,

            "Ekans": 10,
            "Arbok": 10,

            "Sandshrew": 10,
            "Sandslash": 10,

            "Zubat": 10,
            "Golbat": 10,

            "Doduo": 10,
            "Dodrio": 10
          }
        }
      },
      {
        "type": "MoveToFort"
      },
      {
        "type": "FollowSpiral"
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 100
    },
    "websocket_server": true,
    "walk": 14,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"keep_best_cp": 2, "keep_best_iv": 1},
      "// any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
         "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }
}

Other Information

OS: Linux Git Commit: ff380cd Python Version: 2.7.12

SpencerCarstens commented 8 years ago

I mentioned it over here #1992 as well, but I too am seeing odd behavior.

Tych0n commented 8 years ago

For we worked "MoveToFort" option with "lure_attraction": false from example config. If i set "lure_attraction" to "true" - bot loops around one fort, uses all balls and can't do anything.

RedViper9 commented 8 years ago

As there have been many updates since this issue was posted, I'm assuming this issue has been resolved. If I'm wrong, please reopen.