jekirl / poketrainer

The original Pokemon Go bot
Other
120 stars 58 forks source link

Walk back and forth or get stuck between two pokestops #559

Open IllidanU opened 8 years ago

IllidanU commented 8 years ago

I tried two accounts. They can play as normal from my phone's app. But when using the bot, they can not find any pokemon nearby though there is actually many pokemon around.

Quite like this. #536

I switched the option of "farming mode", both true and false do noot fix this.

My config here:

{
  "accounts": [
    {
      "auth_service": "google",
      "username": "-",
      "password": "-",
      "location": "37.791262, -122.399200",
      "GMAPS_API_KEY": "-",
      "BEHAVIOR": {
        "USE_GOOGLE": true,
        "STEP_SIZE": 5,
        "WANDER_STEPS": 100,
        "EXPERIMENTAL": true,
        "SKIP_VISITED_FORT_DURATION": 300,
        "SPIN_ALL_FORTS": true,
        "STAY_WITHIN_PROXIMITY": 9999,
        "AUTO_USE_LUCKY_EGG": false,
        "EXTRA_WAIT" : 0.8,
        "SLEEP_MULT" : 2.0,
        "ENABLE_CACHING" :true,
        "USE_CACHED_FORTS" : true,
        "CACHED_FORTS_SORTED" : true
      },
      "CAPTURE": {
        "CATCH_POKEMON": true,
        "MIN_FAILED_ATTEMPTS_BEFORE_USING_BERRY": 3,
        "MAX_CATCH_ATTEMPTS": 15,
        "USE_POKEBALL_IF_PERCENT": 70,
        "USE_GREATBALL_IF_PERCENT": 30,
        "USE_ULTRABALL_IF_PERCENT": 20,
        "USE_MASTERBALL": false
      },
      "EGG_INCUBATION": {
        "ENABLE": true,
        "USE_DISPOSABLE_INCUBATORS": false,
        "BIG_EGGS_FIRST": false
      },
      "POKEMON_EVOLUTION": {
        "PIDGEY":12,
        "WEEDLE":12,
        "CATERPIE":12,
        "RATTATA":25,
        "DROWZEE":50,
        "EKANS":50,
        "POLIWAG":25,
        "GASTLY":25,
        "SPEAROW":50,
        "ODDISH":25,
        "SHELLDER":50,
        "ZUBAT":50,
        "CLEFAIRY":50,
        "PARAS":50,
        "VENONAT":50,
        "DIGLETT":50,
        "MEOWTH":50,
        "PSYDUCK":50,
        "MANKEY":50,
        "GROWLITHE":50,
        "MACHOP":25,
        "BELLSPROUT":50,
        "TENTACOOL":50,
        "GEODUDE":25,
        "PONYTA":50,
        "KRABBY":50,
        "GOLDEEN": 50,
        "NIDORAN_FEMALE": 25,
        "NIDORAN_MALE":25
      },
      "POKEMON_CLEANUP": {
        "MIN_SIMILAR_POKEMON": 1,
        "MAX_SIMILAR_POKEMON": 999,
        "KEEP_POKEMON_NAMES": ["MEWTWO"],
        "THROW_POKEMON_NAMES": [],
        "RELEASE_METHOD": "ADVANCED",
        "RELEASE_METHOD_CLASSIC": {
          "KEEP_CP_OVER": 2000,
          "KEEP_IV_OVER": 85,
          "PREFER": "IV"
        },
        "RELEASE_METHOD_ADVANCED": {
          "ALWAYS_RELEASE_BELOW_LEVEL": 0,
          "KEEP_CP_OVER": 1500,
          "KEEP_IV_OVER": 90,
          "BEST_CP": {
            "MIN_AMOUNT": 0,
            "KEEP_ADDITIONAL_SCALAR": 0.8,
            "MAX_AMOUNT": 2
          },
          "BEST_IV": {
            "MIN_AMOUNT": 1,
            "KEEP_ADDITIONAL_SCALAR": 0.94,
            "MAX_AMOUNT": 2,
            "IGNORE_BELOW": 70
          }
        },
        "SCORE_METHOD": "IV",
        "SCORE_METHOD_FANCY": {
          "WEIGHT_IV": 0.5,
          "WEIGHT_LVL": 0.5
        }
      },
      "MIN_ITEMS": {
        "ITEM_POTION": 0,
        "ITEM_SUPER_POTION": 0,
        "ITEM_HYPER_POTION": 0,
        "ITEM_MAX_POTION": 30,
        "ITEM_POKE_BALL": 15,
        "ITEM_GREAT_BALL": 50,
        "ITEM_ULTRA_BALL": 180,
        "ITEM_RAZZ_BERRY": 20,
        "ITEM_REVIVE": 0,
        "ITEM_MAX_REVIVE": 20
      },
      "NEEDY_ITEM_FARMING": {
        "ENABLE": false,
        "POKEBALL_CONTINUE_THRESHOLD": 60,
        "POKEBALL_FARM_THRESHOLD": 20,
        "FARM_IGNORE_POKEBALL_COUNT": false,
        "FARM_IGNORE_GREATBALL_COUNT": false,
        "FARM_IGNORE_ULTRABALL_COUNT": false,
        "FARM_IGNORE_MASTERBALL_COUNT": true,
        "FARM_OVERRIDE_STEP_SIZE": 6
      },
      "CONSOLE_OUTPUT": {
        "EXPLAIN_EVOLUTION_BEFORE_CLEANUP": false,
        "LIST_POKEMON_BEFORE_CLEANUP": false,
        "LIST_INVENTORY_BEFORE_CLEANUP": false,
        "SHOW_STEPS": true,
        "SHOW_TRAVEL_LINK_WITH_STEPS": false,
        "SHOW_DISTANCE_TRAVELED": true,
        "SHOW_NEAREST_FORT_DISTANCE": true,
        "NOTIFY_NO_NEARBY_POKEMON": true,
        "COLORLOG": {
            "FORT_WALKER": "white",
            "POKE_CATCHER": "green",
            "RELEASE": "cyan",
            "EVOLVE": "cyan",
            "POKETRAINER": "yellow",
            "INVENTORY": "purple"
            }            
        }
    },
    {
      "auth_service": "ptc",
      "username": "someusername",
      "password": "password",
      "location": "University of Southern California, Los Angeles, CA",
      "BEHAVIOR": {
        "USE_GOOGLE": true
      }
           }
  ],
  "defaults": {
        }
}
IllidanU commented 8 years ago

OMG how to fix the format of config? It's so messy

infinitewarp commented 8 years ago

Wrap blocks of text with three backticks ``` on the line before and after to preserve formatting.

I'll edit your post to fix.

IllidanU commented 8 years ago

Thanks!

infinitewarp commented 8 years ago

Try setting USE_CACHED_FORTS to false. I've been having some problems with that lately where it might never move from its starting position.

IllidanU commented 8 years ago

Not stuck at one place now. But still do not meet any pokemon

``2016-08-14 19:42:35,007 [poke_catcher] [ INFO] No nearby pokemon 2016-08-14 19:42:37,010 [fort_walker] [ INFO] Traveled 1953.59 meters of 7189.00 of the trip 2016-08-14 19:42:37,016 [fort_walker] [ INFO] Walking 3.4m 2016-08-14 19:42:37,069 [fort_walker] [ INFO] Nearest fort distance is 103.88 meters 2016-08-14 19:42:37,072 [poke_catcher] [ INFO] No nearby pokemon 2016-08-14 19:42:39,075 [fort_walker] [ INFO] Traveled 1956.99 meters of 7189.00 of the trip 2016-08-14 19:42:39,081 [fort_walker] [ INFO] Walking 3.4m 2016-08-14 19:42:42,881 [fort_walker] [ INFO] Nearest fort distance is 104.84 meters 2016-08-14 19:42:42,884 [poke_catcher] [ INFO] No nearby pokemon 2016-08-14 19:42:44,963 [poketrainer] [ INFO] Player Info: sbdhdicisjejdjd, Currencies: POKECOIN: NA,STARDUST: 13850, Pokemon Caught in this run: 0 2016-08-14 19:42:44,967 [poketrainer] [ INFO] Player Stats: Level: 12, XP: 73515/75000, Runtime (h): 0.31, XP/h: 2421.0, Pokedex: 32, km walked: 13.45 2016-08-14 19:42:44,969 [ inventory] [ INFO] Recycling 1 RAZZ_BERRY(s) 2016-08-14 19:42:47,071 [ inventory] [ INFO] RAZZ_BERRY(s) recycled successfully. New count: 20 2016-08-14 19:42:47,075 [ inventory] [ INFO] Recycling 4 POKE_BALL(s) 2016-08-14 19:42:49,180 [ inventory] [ INFO] POKE_BALL(s) recycled successfully. New count: 15 2016-08-14 19:42:49,186 [ inventory] [ INFO] Recycling 1 REVIVE(s) 2016-08-14 19:42:51,289 [ inventory] [ INFO] REVIVE(s) recycled successfully. New count: 0 2016-08-14 19:42:51,292 [ inventory] [ INFO] Inventory has 63/350 items 2016-08-14 19:42:51,365 [poketrainer] [ INFO] Player Inventory after cleanup: PokeBalls: 15, GreatBalls: 24, UltraBalls: 0, MasterBalls: 0 Potion: 0, Super Potion: 0, Max Potion 0, Hyper Potion 0, Lucky Eggs 0, Razz Berries 20 2016-08-14 19:42:51,368 [ incubate] [ INFO] Incubating 2.0km egg, 1.84km done 2016-08-14 19:42:51,388 [fort_walker] [ INFO] Traveled 1960.39 meters of 7189.00 of the trip 2016-08-14 19:42:51,391 [fort_walker] [ INFO] Walking 10.2m 2016-08-14 19:42:55,164 [fort_walker] [ INFO] Nearest fort distance is 102.28 meters 2016-08-14 19:42:55,165 [poke_catcher] [ INFO] No nearby pokemon

IllidanU commented 8 years ago

image Updated to the dev brunch. I think the problem is that the bot is walking back and forth so it actually got stuck between two or three pokestops. The picture here is that: after increase the SKIP_VISITED_FORT_DURATION to 900 and set SPIN_ALL_FORTS to false. (don't figure out which is actually working) The bot is circling in a bigger circle.

Is there any method to form a bigger loop for the bot to walk?

IllidanU commented 8 years ago

Another thing to mention: though the red line seems to be a single line. But the bot is actually walking back and forth along each line several times. Then it may go to another path with a small chance.

It will be great to let the bot figure out which path is already walked and always wonder to some new place.