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

No moving towards pokestops, only lured pokestops. Works fine on iPhone.

Open dogeatdog opened this issue 10 years ago • 6 comments

  1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check. Yes, it's valid.
  2. Have you to see if the issue already exists? If so, comment on that issue instead rather than creating a new issue.

Nothing, apart from some issue which involves softban, but I don't believe I am softbanned.

  1. Are you running on the master branch? We work on the dev branch and then add that functionality to master when it is stable. Your issue may be fixed on dev and there is no need for this issue, just wait and it will eventually be merged to master.

I think so, when I run git branch, it returns "* master".

  1. All Issue sections MUST be completed to help us determine the actual problem and find its cause -->

    Expected Behavior

    I expect my bot to keep moving to the next pokestop.

Actual Behavior

Doesn't move to the next pokestop (or at least, I don't see any 'Moving towards..' lines). However, it keeps walking since I see my Egg incubating lines with an increasing km message. Also, when there are pokestops with a lure enabled, I DO get the Moving towards.. lines. This works until it has spun the lured pokestop, then the Moving towards.. lines won't appear anymore.

I had a temporary fix, which involved in removing the data folder, running a ./setup.sh -i and then starting it again. This worked for about half an hour.

Funny thing, when I start pokemon go on my iPhone I see all the pokestops, and can spin them without any problem.

Your FULL config.json (remove your username, password, gmapkey and any other private info)

{
    "auth_service": "ptc",
    "username": "",
    "password": "",
    "location": "fort lillo",
    "favorite_locations":[
        {"name": "fort lillo", "coords": "51.304444, 4.29"}
    ],
    "gmapkey": "",
    "encrypt_location": "",
    "telegram_token": ""
}

{
    "websocket_server": false,
    "heartbeat_threshold": 10,
    "enable_social": true,
    "live_config_update": {
      "enabled": false,
      "tasks_only": false
    },
    "tasks": [
      {
        "type": "TelegramTask",
        "config": {
          "enabled": false,
          "master": null,
          "// old syntax, still supported: alert_catch": ["all"],
          "// new syntax:": {},
          "alert_catch": {
            "all": {"operator": "and", "cp": 1300, "iv": 0.95},
            "Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
          }
        }
      },
      {
        "//NOTE: This task MUST be placed on the top of task list": {},
        "type": "RandomAlivePause",
        "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:05:00",
          "max_interval": "01:30:00"
        }
      },
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "RandomPause",
        "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:10:00",
          "max_interval": "02:00:00"
        }
      },
      {
        "type": "CompleteTutorial",
        "config": {
          "enabled": false,
          "// set a name": "",
          "nickname": "",
          "// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "",
          "team": 0
        }
      },
      {
        "type": "CollectLevelUpReward",
        "config": {
          "collect_reward": true,
          "level_limit": -1
        }
      },
      {
        "type": "IncubateEggs",
        "config": {
          "enabled": true,
          "infinite_longer_eggs_first": true,
          "breakable_longer_eggs_first": true,
          "min_interval": 120,
         "infinite": [2,5,10],
         "breakable": [10]
        }
      },
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": false,
          "min_interval": 10,
          "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
          "terminal_log": true,
          "terminal_title": true
        }
      },
      {
        "type": "UpdateLiveInventory",
        "config": {
          "enabled": false,
          "min_interval": 120,
          "show_all_multiple_lines": false,
          "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
        }
      },
      {
        "type": "ShowBestPokemon",
        "config": {
          "enabled": true,
          "min_interval": 60,
          "amount": 5,
          "order_by": "cp",
          "info_to_show": ["cp", "ivcp", "dps", "hp"]
        }
      },
      {
        "type": "TransferPokemon",
        "config": {
          "enabled": true,
          "min_free_slot": 5,
          "transfer_wait_min": 3,
          "transfer_wait_max": 5
        }
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "enabled": false,
          "nickname_above_iv": 0.9,
          "nickname_template": "{iv_pct}_{iv_ads}",
          "nickname_wait_min": 3,
          "nickname_wait_max": 5
        }
      },
      {
        "type": "EvolvePokemon",
        "config": {
          "enabled": false,

            "// evolve only pidgey and drowzee": "",
            "// evolve_list": "pidgey, drowzee",
            "// donot_evolve_list": "none",

            "// evolve all but pidgey and drowzee": "",
            "// evolve_list": "all",
            "// donot_evolve_list": "pidgey, drowzee",

            "evolve_list": "all",
            "donot_evolve_list": "none",

          "first_evolve_by": "cp",
          "evolve_above_cp": 500,
          "evolve_above_iv": 0.8,
          "logic": "or",
          "min_evolve_speed": 25,
          "max_evolve_speed": 30,
          "use_lucky_egg": false
        }
      },
      {
        "type": "UseIncense",
        "config": {
          "use_incense": false,
          "use_order": [
            "ordinary",
            "spicy",
            "cool",
            "floral" 
          ]
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "enabled": true,
          "min_empty_space": 15,
          "max_balls_keep": 150,
          "max_potions_keep": 50,
          "max_berries_keep": 70,
          "max_revives_keep": 70,
          "item_filter": {
            "Pokeball":       { "keep" : 100 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 100 }
          },
          "recycle_wait_min": 3,
          "recycle_wait_max": 5,
          "recycle_force": true,
          "recycle_force_min": "00:01:00",
          "recycle_force_max": "00:05:00"
        }
      },
      {
        "type": "CatchPokemon",
        "config": {
          "enabled": true,
          "catch_visible_pokemon": true,
          "catch_lured_pokemon": true,
          "min_ultraball_to_keep": 5,
          "berry_threshold": 0.35,
          "vip_berry_threshold": 0.9,
          "treat_unseen_as_vip": true,
          "daily_catch_limit": 800,
          "vanish_settings": {
            "consecutive_vanish_limit": 10,
            "rest_duration_min": "02:00:00",
            "rest_duration_max": "04:00:00"
          },
          "catch_throw_parameters": {
            "excellent_rate": 0.1,
            "great_rate": 0.5,
            "nice_rate": 0.3,
            "normal_rate": 0.1,
            "spin_success_rate" : 0.6,
            "hit_rate": 0.75
          },
          "catch_simulation": {
            "flee_count": 3,
            "flee_duration": 2,
            "catch_wait_min": 3,
            "catch_wait_max": 6,
            "berry_wait_min": 3,
            "berry_wait_max": 5,
            "changeball_wait_min": 3,
            "changeball_wait_max": 5,
            "newtodex_wait_min": 20, 
            "newtodex_wait_max": 30
          }
        }
      },
      {
        "type": "SpinFort",
        "config": {
          "enabled": true,
          "spin_wait_min": 3,
          "spin_wait_max": 5,
          "daily_spin_limit": 1900
        }
      },
      { "type": "UpdateWebInventory",
        "config": {
          "enabled": true
        }
      },
      {
        "type": "MoveToFort",
        "config": {
          "enabled": true,
          "lure_attraction": true,
          "lure_max_distance": 2000,
          "walker": "StepWalker",
          "log_interval": 5
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "enabled": true,
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50,
      "cache_recent_forts": true
    },
    "pokemon_bag": {
      "// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
      "show_at_start": true,
      "// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
      "show_count": false,
      "// if 'show_candies' is true, it will show the amount of candies for each pokemon": {},
      "show_candies": false,
      "// 'pokemon_info' parameter define which info to show for each pokemon": {},
      "// the available options are": {},
      "// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
      "pokemon_info": ["cp", "iv_pct"]
    },
    "walk_max": 4.16,
    "walk_min": 2.16,
    "alt_min": 500,
    "alt_max": 1000,
    "sleep_schedule": [
      {
        "time": "12:00",
        "duration": "5:30",
        "time_random_offset": "00:30",
        "duration_random_offset": "00:30",
        "wake_up_at_location": ""
      },
      {
        "time": "17:45",
        "duration": "3:00",
        "time_random_offset": "01:00",
        "duration_random_offset": "00:30",
        "wake_up_at_location": ""
      }
    ],
    "gps_default_altitude": 8.0,
    "replicate_gps_xy_noise": false,
    "replicate_gps_z_noise": false,
    "gps_xy_noise_range": 0.000125,
    "gps_z_noise_range": 12.5,
    "debug": false,
    "test": false,
    "walker_limit_output": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "logging": {
      "color": true,
      "show_datetime": true,
      "show_process_name": true,
      "show_log_level": true,
      "show_thread_name": false
    },
    "catch": {
      "any": {"candy_threshold" : 400 ,"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "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 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Keep no more than 3 best IV pokemon for every pokemon type": {},
      "// any": {"keep_best_iv": 3},
      "// Discard all pokemon in bag except 100 pokemon with best CP": {},
      "// all": {"keep_best_cp": 100},
      "// 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},
      "// Example of custom order of static criterion": {},
      "// Zubat": {"keep_best_custom": "iv, cp, hp_max", "amount":2}
    },
    "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": {}
    },
    "websocket": {
        "start_embedded_server": true,
        "server_url": "127.0.0.1:4000"
    }
}

Output when issue occurred

[2016-09-12 08:56:38] [IncubateEggs] [INFO] Eggs incubating: [2.86/5.0 km] (Eggs left: 7, Incubating: 1)
[2016-09-12 08:56:38] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 08:57:39] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 08:58:24] [PokemonCatchWorker] [INFO] A wild Tentacool appeared! [CP 309] [NCP 0.34] [Potential 0.49] [A/D/S 4/13/5]
[2016-09-12 08:58:27] [PokemonCatchWorker] [INFO] No regular balls left! Trying ultraball.
[2016-09-12 08:58:32] [PokemonCatchWorker] [INFO] Great Curveball throw! Used Ultraball, with chance 64.01 (135 left)
[2016-09-12 08:58:32] [PokemonCatchWorker] [INFO] Captured Tentacool! [CP 309] [NCP 0.34] [Potential 0.49] [4/13/5] (21/800) [+160 exp] [+100 stardust]
[2016-09-12 08:58:32] [PokemonCatchWorker] [INFO] You now have 18 Tentacool candy!
[2016-09-12 08:58:39] [IncubateEggs] [INFO] Eggs incubating: [2.95/5.0 km] (Eggs left: 7, Incubating: 1)
[2016-09-12 08:58:39] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 08:59:06] [MoveToFort] [INFO] Moving towards pokestop Anker - 0.05km (attraction of lure 0.05km)
[2016-09-12 08:59:11] [MoveToFort] [INFO] Moving towards pokestop Anker - 0.04km (attraction of lure 0.04km)
[2016-09-12 08:59:13] [CatchPokemon] [INFO] Lured pokemon at fort Anker (cacc10def557491ba335baed5b302b54.16)
[2016-09-12 08:59:13] [PokemonCatchWorker] [INFO] A wild Horsea appeared! [CP 94] [NCP 0.12] [Potential 0.6] [A/D/S 13/12/2]
[2016-09-12 08:59:16] [PokemonCatchWorker] [INFO] No regular balls left! Trying ultraball.
[2016-09-12 08:59:19] [PokemonCatchWorker] [INFO] OK throw! Used Ultraball, with chance 90.33 (134 left)
[2016-09-12 08:59:20] [PokemonCatchWorker] [INFO] Captured Horsea! [CP 94] [NCP 0.12] [Potential 0.6] [13/12/2] (22/800) [+100 exp] [+100 stardust]
[2016-09-12 08:59:20] [PokemonCatchWorker] [INFO] You now have 54 Horsea candy!
[2016-09-12 08:59:25] [  SpinFort] [INFO] Spun pokestop Anker. Experience awarded: 50. Items awarded: 1x Potion, 2x Pokeball
[2016-09-12 08:59:28] [MoveToFort] [INFO] Moving towards pokestop Sint Benediktuskerk - 0.05km (attraction of lure 0.05km)
[2016-09-12 08:59:33] [CatchPokemon] [INFO] Lured pokemon at fort Sint Benediktuskerk (b2075a482d1b4eca906b286ff2e47737.16)
[2016-09-12 08:59:33] [PokemonCatchWorker] [INFO] A wild Magnemite appeared! [CP 36] [NCP 0.04] [Potential 0.62] [A/D/S 11/2/15]
[2016-09-12 08:59:41] [PokemonCatchWorker] [INFO] Great Curveball throw! Used Pokeball, with chance 100.00 (1 left)

Steps to Reproduce

Other Information

OS: Mac OS Yosemite

Branch: master

Git Commit: 11123a82cb18c172a262dc9e46e7b2c175666828

Python Version: Python 2.7.10

Any other relevant files/configs (eg: path files)

Ok, weirdest thing. Just stopped it a few moments ago for the version of Python and commit and such, restarted. And now it is moving to pokestops (without a lure). Temporary glitches ?

New update : aaaaand.. it stopped again..

[2016-09-12 09:38:43] [MoveToFort] [INFO] Moving towards pokestop Kanonnen Van Fort Liefkenshoek - 0.07km
[2016-09-12 09:38:48] [MoveToFort] [INFO] Moving towards pokestop Kanonnen Van Fort Liefkenshoek - 0.05km
[2016-09-12 09:38:54] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 09:38:54] [  SpinFort] [INFO] Spun pokestop Kanonnen Van Fort Liefkenshoek. Experience awarded: 50. Items awarded: 3x Pokeball
[2016-09-12 09:39:09] [RecycleItems] [INFO] Forcing item recycle based on schedule
[2016-09-12 09:39:09] [RecycleItems] [INFO] Next forced item recycle at 09:41:26
[2016-09-12 09:39:52] [IncubateEggs] [INFO] Eggs incubating: [4.85/5.0 km] (Eggs left: 8, Incubating: 1)
[2016-09-12 09:39:55] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 09:40:55] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 09:41:21] [IncubateEggs] [INFO] Egg hatched with a Bellsprout (CP 610 - NCP 0.55 - IV 15/10/11 0.8), 500 exp, 1092 stardust and 14 candies.
[2016-09-12 09:41:22] [IncubateEggs] [INFO] Incubating a 10.0 egg.
[2016-09-12 09:41:27] [RecycleItems] [INFO] Forcing item recycle based on schedule
[2016-09-12 09:41:27] [RecycleItems] [INFO] Next forced item recycle at 09:42:47
[2016-09-12 09:41:52] [IncubateEggs] [INFO] Eggs incubating: [0.00/10.0 km] (Eggs left: 7, Incubating: 1)
[2016-09-12 09:41:56] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 09:42:47] [RecycleItems] [INFO] Forcing item recycle based on schedule
[2016-09-12 09:42:47] [RecycleItems] [INFO] Next forced item recycle at 09:45:48
[2016-09-12 09:42:56] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]
[2016-09-12 09:43:53] [IncubateEggs] [INFO] Eggs incubating: [0.00/10.0 km] (Eggs left: 7, Incubating: 1)
[2016-09-12 09:43:57] [ShowBestPokemon] [INFO] [Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231] | [Arcanine, CP 1894, IVCP 0.75, DPS 13.94, HP 121/121] | [Gyarados, CP 1865, IVCP 0.79, DPS 15.04, HP 134/134] | [Slowbro, CP 1831, IVCP 0.28, DPS 11.1, HP 136/136] | [Lapras, CP 1746, IVCP 0.83, DPS 13.7, HP 167/167]

dogeatdog avatar Sep 12 '16 07:09 dogeatdog

The reason why I think it's not a softban : no pokemons run away (can still catch them), the lured pokestops work and if I stop the bot and try on my actual iPhone, I can just see, move towards and spin all pokestops.

Another thing that might help in diagnosing, if I use another account, it will work for some time (half an hour, sometimes longer). I'll experiment in deleting various files from the folders data and web because I think it's related. Specifically : /../data/recent-forts-.json and /../web/inventory-.json.

Update: Did a reinstall again. Pokestops work for the time being (both lured and non-lured). Next time it happens I'll delete the aforementioned files.

And another update : it stopped again. I stopped the bot, removed the recent-forts file and restarted the bot. And.. it found pokestops and started moving again. Not sure if this is a bug or some weird coincidence, but if this is the solution, then I will just add an 'rm ../data/recent-forts-.json in the run script for now.

dogeatdog avatar Sep 12 '16 09:09 dogeatdog

Is it possible that you have very few Pokestop in your area and that all of them are spun ?

julienlavergne avatar Sep 12 '16 13:09 julienlavergne

You might be onto something there, only 4 or 5 pokestops. And LOTS of spawn all the time, I just noticed I'm almost out of pokeballs (or great balls or ultraballs for that matter).

I'm going to leave it running until all the balls are gone and then wait a couple of hours before I will let it run again in a region with a lot of stops. Thanks !

dogeatdog avatar Sep 12 '16 15:09 dogeatdog

Your move to fort task is probably running out of forts if there is only 4 or 5. Then your follow spiral take the relay. You might want to be an area with much more forts than that.

julienlavergne avatar Sep 12 '16 17:09 julienlavergne

Completely correct. I just ran it in Lillo, since that was supposed to be an awesome spawn site. Back in my own city now and not a single hitch. Thanks for the explanation and the help !

dogeatdog avatar Sep 13 '16 06:09 dogeatdog

You can use #5426 before your MoveToFort, with hunt_all at true. It will walk around to find nearby Pokemon. So it is good if you do not have much forts in your area.

julienlavergne avatar Sep 13 '16 16:09 julienlavergne