PokemonGoF / PokemonGo-Bot

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

[help!] Bot sticks in moving towards a same pokestop after about 15 minutes of running #6065

Open fatalerrortan opened 7 years ago

fatalerrortan commented 7 years ago

The problem is after the recent update!In the forward but never to the destination!

[2017-06-29 13:34:20] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.13km [2017-06-29 13:34:25] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.13km [2017-06-29 13:34:31] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.12km [2017-06-29 13:34:36] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.13km [2017-06-29 13:34:49] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.12km [2017-06-29 13:34:58] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.13km [2017-06-29 13:35:06] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.12km [2017-06-29 13:35:14] [MoveToFort] [INFO] Moving towards pokestop Eingangswächter Schillstraße - 0.12km

config.json

{
    "websocket_server": false,
    "heartbeat_threshold": 10,
    "enable_social": false,
    "check_niantic_api": false,
    "solve_captcha": true,
    "live_config_update": {
        "enabled": false,
        "tasks_only": false
    },
    "tasks": [
        {
            "type": "TelegramTask",
            "config": {
                "enabled": false,
                "master": null,
                "password": 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
                    }
                }
            }
        },
        {
            "type": "DiscordTask",
            "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": true,
                "min_duration": "00:00:10",
                "max_duration": "00:03:00",
                "min_interval": "00:15:00",
                "max_interval": "01:00:00"
            }
        },
        {
            "type": "HandleSoftBan"
        },
        {
            "type": "RandomPause",
            "config": {
                "enabled": true,
                "min_duration": "00:00:10",
                "max_duration": "00:03:00",
                "min_interval": "00:15:00",
                "max_interval": "01: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": "BuddyPokemon",
            "config": {
                "enabled": false,
                "buddy_list": "dratini, magikarp",
                "best_in_family": true,
                "// candy_limit = 0 means no limit, so it will never change current buddy": {},
                "candy_limit": 0,
                "candy_limit_absolute": 0,
                "// force_first_change = true will always change buddy at start removing current one": {},
                "force_first_change": false,
                "buddy_change_wait_min": 3,
                "buddy_change_wait_max": 5,
                "min_interval": 120
            }
        },
        {
            "type": "IncubateEggs",
            "config": {
                "enabled": true,
                "infinite_longer_eggs_first": false,
                "infinite_random_eggs": false,
                "breakable_longer_eggs_first": true,
                "min_interval": 120,
                "infinite": [
                    2,
                    5,
                    10
                ],
                "breakable": [
                    2,
                    5,
                    10
                ]
            }
        },
        {
            "type": "UpdateLiveStats",
            "config": {
                "enabled": true,
                "min_interval": 60,
                "stats": [
                    "username",
                    "uptime",
                    "stardust_earned",
                    "xp_earned",
                    "xp_per_hour",
                    "stops_visited",
                    "total_stardust"
                ],
                "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": "UpdateHashStats",
            "config": {
                "enabled": true,
                "min_interval": 60,
                "stats" : ["period", "remaining", "maximum", "expiration"]
            }
        },
        {
            "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": true,
                "nickname_above_iv": 0.9,
                "nickname_template": "Xulin_{iv_pct}",
                "nickname_wait_min": 3,
                "nickname_wait_max": 5
            }
        },
        {
            "type": "EvolvePokemon",
            "config": {
                "enabled": false,
                "log_interval": 120,
                "// evolve only pidgey and drowzee": "",
                "// evolve_list": [
                    "pidgey, drowzee",
                    "all"
                ],
                "// donot_evolve_list": [
                    "none",
                    "pidgey, drowzee"
                ],
                "// evolve all but pidgey and 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,
                "min_pokemon_to_be_evolved": 1,
                "use_lucky_egg": false
            }
        },
        {
            "type": "UseIncense",
            "config": {
                "use_incense": false,
                "use_order": [
                    "ordinary",
                    "spicy",
                    "cool",
                    "floral"
                ]
            }
        },
        {
            "type": "RecycleItems",
            "config": {
                "enabled": true,
                "min_empty_space": 30,
                "max_balls_keep": 220,
                "max_potions_keep": 20,
                "max_berries_keep": 40,
                "max_revives_keep": 20,
                "item_filter": {
                    "Pokeball": {
                        "keep": 100
                    },
                    "Potion": {
                        "keep": 0
                    },
                    "Super Potion": {
                        "keep": 0
                    },
                    "Hyper Potion": {
                        "keep": 20
                    },
                    "Revive": {
                        "keep": 5
                    },
                    "Razz Berry": {
                        "keep": 10
                    }
                },
                "recycle_wait_min": 3,
                "recycle_wait_max": 5,
                "recycle_force": true,
                "recycle_force_min": "00:03:00",
                "recycle_force_max": "00:10:00"
            }
        },
        {
            "type": "CatchLimiter",
            "config": {
                "enabled": false,
                "min_balls": 20,
                "duration": 15
            }
        },
        {
            "type": "Sniper",
            "config": {
                "enabled": false,
                "mode": "social",
                "bullets": 1,
                "homing_shots": true,
                "cooldown_enabled": false,
                "loiter_after_snipe": false,
                "special_iv": 100,
                "order": [
                    "missing",
                    "vip",
                    "priority"
                ],
                "sources": [
                    {
                        "enabled": false,
                        "url": "http://localhost:5000/raw_data",
                        "timeout": 3,
                        "key": "pokemons",
                        "mappings": {
                            "id": {
                                "param": "pokemon_id"
                            },
                            "name": {
                                "param": "pokemon_name"
                            },
                            "latitude": {
                                "param": "latitude"
                            },
                            "longitude": {
                                "param": "longitude"
                            },
                            "expiration": {
                                "param": "disappear_time",
                                "format": "milliseconds"
                            }
                        }
                    },
                    {
                        "enabled": false,
                        "url": "https://pokewatchers.com/grab/",
                        "timeout": 10,
                        "mappings": {
                            "iv": {
                                "param": "iv"
                            },
                            "id": {
                                "param": "pid"
                            },
                            "name": {
                                "param": "pokemon"
                            },
                            "latitude": {
                                "param": "cords"
                            },
                            "longitude": {
                                "param": "cords"
                            },
                            "expiration": {
                                "param": "timeend",
                                "format": "seconds"
                            }
                        }
                    },
                    {
                        "enabled": false,
                        "url": "http://pokesnipers.com/api/v1/pokemon.json",
                        "timeout": 10,
                        "key": "results",
                        "mappings": {
                            "iv": {
                                "param": "iv"
                            },
                            "name": {
                                "param": "name"
                            },
                            "latitude": {
                                "param": "coords"
                            },
                            "longitude": {
                                "param": "coords"
                            },
                            "expiration": {
                                "param": "until",
                                "format": "utc"
                            }
                        }
                    }
                ],
                "catch": {
                    "Snorlax": 1000,
                    "Dragonite": 1000,
                    "Growlithe": 600,
                    "Clefairy": 500,
                    "Kabuto": 500,
                    "Dratini": 500,
                    "Dragonair": 500,
                    "Mr. Mime": 500,
                    "Magmar": 500,
                    "Electabuzz": 500,
                    "Tangela": 500,
                    "Tauros": 500,
                    "Primeape": 500,
                    "Chansey": 500,
                    "Pidgey": 100,
                    "Caterpie": 100,
                    "Weedle": 100
                }
            }
        },
        {
            "type": "CatchPokemon",
            "config": {
                "enabled": true,
                "catch_visible_pokemon": true,
                "catch_lured_pokemon": true,
                "catch_incensed_pokemon": true,
                "min_ultraball_to_keep": 5,
                "berry_threshold": 0.35,
        "use_pinap_on_vip": false,
        "pinap_on_level_below": 0,
        "pinap_operator": "or",
        "pinap_ignore_threshold": false,
                "vip_berry_threshold": 0.9,
                "treat_unseen_as_vip": true,
                "daily_catch_limit": 2000,
                "vanish_settings": {
                    "consecutive_vanish_limit": 10,
                    "rest_duration_min": "02:00:00",
                    "rest_duration_max": "04:00:00"
                },
                "catch_throw_parameters": {
                    "excellent_rate": 0.3,
                    "great_rate": 0.5,
                    "nice_rate": 0.1,
                    "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": 13.16,
    "walk_min": 3.16,
    "alt_min": 500,
    "alt_max": 1000,
    "sleep_schedule": {
        "enabled": false,
        "enable_reminder": false,
        "reminder_interval": 600,
        "entries": [
            {
                "enabled": true,
                "time": "12:00",
                "duration": "5:30",
                "time_random_offset": "00:30",
                "duration_random_offset": "00:30",
                "wake_up_at_location": ""
            },
            {
                "enabled": true,
                "time": "17:45",
                "duration": "3:00",
                "time_random_offset": "01:00",
                "duration_random_offset": "00:30",
                "wake_up_at_location": ""
            }
        ]
    },
    "gps_default_altitude": 115,
    "replicate_gps_xy_noise": true,
    "replicate_gps_z_noise": true,
    "gps_xy_noise_range": 1.25E-4,
    "gps_z_noise_range": 2.15,
    "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": 9000,
            "catch_above_cp": 0,
            "catch_above_iv": 0,
            "logic": "or"
        },
        "// Example of always catching Rattata:": {},
        "// Rattata": {
            "always_catch": true
        },
        "// Example of catching Vaporeon only with Water Gun and Hydro Pump": {},
        "Vaporeon": {
            "catch_above_iv": 0.99,
            "charged_attack": [
                "Hydro Pump"
            ],
            "fast_attack": [
                "Water Gun"
            ]
        }
    },
    "release": {
        "any": {
            "keep_best_iv": 2,
            "keep_best_ivcp": 1
        },
        "// Example of always releasing Rattata:": {},
        "Rattata": {
            "always_release": true
        },
        "Shellder": {
            "always_release": true
        },
        "Tentacool": {
            "always_release": true
        },
        "Caterpie": {
            "always_release": true
        },
        "Bellsprout": {
            "always_release": true
        },
        "Psyduck": {
            "always_release": true
        },
        "Paras": {
            "always_release": true
        },
        "Oddish": {
            "always_release": true
        },
        "Zubat": {
            "always_release": true
        },
        "Weedle": {
            "always_release": true
        },
        "Pidgey": {
            "always_release": true
        },
        "Koffing": {
            "always_release": true
        },
        "Horsea": {
            "always_release": true
        },
        "Goldeen": {
            "always_release": true
        },
        "Staryu": {
            "always_release": true
        },
        "Jynx": {
            "always_release": true
        },
        "Pinsir": {
            "always_release": true
        },
        "Electabuzz": {
            "always_release": true
        },
        "Drowzee": {
            "always_release": true
        },
        "Spearow": {
            "always_release": true
        },
        "Ekans": {
            "always_release": true
        },
        "Murkrow": {
          "always_release": true
        },
       "Marill": {
          "always_release": true
        },
        "Aipom": {
          "always_release": true
        },
        "Dewgong": {
          "always_release": true
        },
        "Hoothoot": {
          "always_release": true
        },
        "// Example of keeping 2 best (based on IV) Zubat:": {},
        "// Zubat": [
            {
                "keep_best_iv": 2
            },
            {
                "keep_best_cp": 2,
                "keep_best_iv": 3
            },
            {
                "keep_best_custom": "iv, cp, hp_max",
                "amount": 2
            }
        ],
        "// Keep no more than 3 best IV pokemon for every pokemon type": {},
        "// any": [
            {
                "keep_best_iv": 2
            },
            {
                "keep_best_ivcp": 1
            }
        ],
        "// Keep no more than 3 best IVCP pokemon for every pokemon type": {},
        "// 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:": {},
        "// Example of custom order of static criterion": {}
    },
    "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"
    }
}
Ubuntu 16.04            
Jcolomar commented 7 years ago

"walk_max": 13.16, "walk_min": 3.16,

test change values on min

fatalerrortan commented 7 years ago

@Jcolomar thanks for your advice . I have adjusted the walk_limit to 2.16. So far there is no problem, but the strange thing is that the robot seems to move faster than usual

Jcolomar commented 7 years ago

closed

fatalerrortan commented 7 years ago

@Jcolomar sorry, it happens again. is something wrong with the moveToFort config?

Jcolomar commented 7 years ago

Ok, look how many pokestops are around ur default location. { "type": "MoveToFort", "config": { "enabled": true, "lure_attraction": true, "lure_max_distance": 2000, "walker": "StepWalker", "log_interval": 5 } },

Movetofort force bot to move to closest fort in distance from ur position. Ill try this:

"walk_max": 10 "walk_min": 4, "lure_max_distance": 1000,

And choose a good location with a lot of pokestops (like green gardens, beachs, etc..)

fatalerrortan commented 7 years ago

@Jcolomar I really appreciate your help. : )

by "lure_max_distance": 1000 the problem happens still.
by changing to 3000 it happens relatively less but I got often "Possibly searching too often, take a rest."

Jcolomar commented 7 years ago

Try follow spiral to FALSE and test

crvfts commented 7 years ago

"walk_max" really shouldn't be too much higher than 2. using 2.15 is fine, 2.25 or higher causes mine to miss spins and get "Possibly searching too often". I set mine to just 2 and rarely have spinning issues now.

fatalerrortan commented 7 years ago

@Jcolomar @crvfts thanks for your help. Sorry, I'can give a quick test reply because I got 2 whole days of "Server busy or offline, reconnecting in 723 seconds". But I can still login using my phone and the hash key is not expired. I would like to know, did it happen also to you? Or I'm the lucky man : )

Jcolomar commented 7 years ago

server hashing has a lot of issues, it happens to all.

crvfts commented 7 years ago

the "server busy" message you're getting is due to hashing server instability. tons of people getting it, you're not alone on that one. it should be fixed fairly soon. worth the wait, your hash key expiration date will be extended to compensate for the lost time.

kranzrm commented 7 years ago

I'm getting this same problem (never making progress towards the next Pokestop) for the last couple days, with the default config.

fatalerrortan commented 7 years ago

@kranzrm I set walk_max: 9 walk_min: 2 and disable the location_cache although still happening but obviously better than before. One or two times a day

crvfts commented 7 years ago

I'm seeing this issue as well with a clean install of python and the repo. Runs for about 5-10 minutes then hangs while walking to a fort.

crvfts commented 7 years ago

my "frankenbot" of pokemongof running just fine, though. doesn't seem to be related to hashing.

fatalerrortan commented 7 years ago

@crvfts I suggest you to use path config instead of MoveToFort. It happens no more after using custom geolocation

camnomis commented 7 years ago

Have we gotten to the bottom of whats causing this? Is it config?

My config is:

"location_cache": false,

 "type": "MoveToFort",
        "config": {
          "enabled": true,
          "lure_attraction": true,
          "lure_max_distance": 2000,
          "walker": "StepWalker",
          "log_interval": 5

    "walk_max": 4.16,
    "walk_min": 2.16,

Has anyone got a set of working config that reliably works? Clearing out the account files created in ../data/ seems to fix it for a short period, but not a long term solution