Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot keeps walking between 2 locations every few seconds. #3652

Closed
MajorasJack opened this issue Aug 11, 2016 · 1 comment
Closed

Bot keeps walking between 2 locations every few seconds. #3652

MajorasJack opened this issue Aug 11, 2016 · 1 comment

Comments

@MajorasJack
Copy link

MajorasJack commented Aug 11, 2016

  1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check. - Yes
  2. Have you searched to see if there are other issues for the same issue? If so, comment on that issue instead. - 1 similar with no responses
  3. Are you running master? We work on the dev branch and then add that functionality to master. 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. - Dev

Expected Behavior

Run like normal

Actual Behavior

Repeatedly walks between 2 different points every few seconds, as if it's walking in circles.

Your config.json (remove your credentials and any other private info)

    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "none",
            "first_evolve_by": "cp",
            "evolve_above_cp": 400,
            "evolve_above_iv": 0.8,
            "logic": "or",
            "evolve_speed": 20,
            "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "min_empty_space": 15,
          "item_filter": {
            "Pokeball":       { "keep" : 50 },
            "Greatball":      { "keep" : 50 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 30 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.16,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": false,
    "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": {"release_below_cp": 200, "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": 2},
      "// 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:": {},
      " any": {"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": {}

    }
}

Steps to Reproduce

[root@localhost PokemonGo-Bot]#python pokecli.py

[22:15:15] Starting bot...
[22:15:15] Received level up reward: []
[22:15:15] Next egg incubates in 4.45 km
[22:15:17] Skipping Recycling of Items. 70 space left in bag.
[22:15:17] Moving towards pokestop Glass Igloo - 0.13km
[22:15:17] {'distance_unit': '', 'distance': '', 'current_position': (53.47590560065676, -2.2954956788419594), 'last_position': (53.47588760680183, -2.295470521055912)}
[22:15:19] Skipping Recycling of Items. 70 space left in bag.
[22:15:19] Moving towards pokestop Broadway Station - 0.13km
[22:15:19] {'distance_unit': '', 'distance': '', 'current_position': (53.47587036888272, -2.2954805206434363), 'last_position': (53.47590560065676, -2.2954956788419594)}
[22:15:21] Skipping Recycling of Items. 70 space left in bag.
[22:15:21] Moving towards pokestop Glass Igloo - 0.14km
[22:15:21] {'distance_unit': '', 'distance': '', 'current_position': (53.47588517872405, -2.295501434705432), 'last_position': (53.47587036888272, -2.2954805206434363)}
[22:15:23] Skipping Recycling of Items. 70 space left in bag.
[22:15:23] Moving towards pokestop Glass Igloo - 0.13km
[22:15:23] {'distance_unit': '', 'distance': '', 'current_position': (53.47592870550987, -2.2954994951893), 'last_position': (53.47588517872405, -2.295501434705432)}
[22:15:25] Skipping Recycling of Items. 70 space left in bag.
[22:15:25] Moving towards pokestop Broadway Station - 0.14km
[22:15:25] {'distance_unit': '', 'distance': '', 'current_position': (53.475894091985026, -2.2954896777552456), 'last_position': (53.47592870550987, -2.2954994951893)}
[22:15:27] Skipping Recycling of Items. 70 space left in bag.
[22:15:27] Moving towards pokestop Glass Igloo - 0.13km
[22:15:27] {'distance_unit': '', 'distance': '', 'current_position': (53.47593513611388, -2.295500436074667), 'last_position': (53.475894091985026, -2.2954896777552456)}
[22:15:28] Skipping Recycling of Items. 70 space left in bag.
[22:15:28] Moving towards pokestop Broadway Station - 0.14km
[22:15:28] {'distance_unit': '', 'distance': '', 'current_position': (53.47587977177501, -2.2954549215504563), 'last_position': (53.47593513611388, -2.295500436074667)}
[22:15:30] Skipping Recycling of Items. 70 space left in bag.
[22:15:30] Moving towards pokestop Glass Igloo - 0.14km
[22:15:30] {'distance_unit': '', 'distance': '', 'current_position': (53.47592244188027, -2.2954814461272663), 'last_position': (53.47587977177501, -2.2954549215504563)}

This has already ran repeatedly with the above issue for a few hrs, only stopped and restarted recently.

Other Information

OS: CentOS Linux release 7.2.1511 (Core)
Git Commit: f7838b8
Python Version: 2.7.5

@MajorasJack
Copy link
Author

Resolved;

Manually changed my location, which overwrote cached location, possible alternative fix could be clearing the bot's cache (Not confirmed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant