PokemonGoF / PokemonGo-Bot

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

MoveToMapPokemon causing dailycatchlimit error #4904

Closed trevorjudice closed 8 years ago

trevorjudice commented 8 years ago

Expected Behavior

For the bot to be able to snipe

Actual Behavior

When the bot goes to snipe, i get a "dailycatchlimit" error when it has clearly not reached the limit

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

"tasks": [
  {
    "type": "HandleSoftBan"
  },
  {
    "type": "SleepSchedule",
    "config": {
      "enabled": false,
      "time": "22:54",
      "duration":"7:46",
      "time_random_offset": "00:24",
      "duration_random_offset": "00:43"
    }
  },
  {
    "type": "CollectLevelUpReward"
  },
  {
    "type": "IncubateEggs",
    "config": {
      "longer_eggs_first": true
    }
  },
  {
    "type": "UpdateLiveStats",
    "config": {
      "enabled": true,
      "min_interval": 10,
      "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
      "terminal_log": true,
      "terminal_title": true
    }
  },
  {
    "type": "TransferPokemon"
  },
  {
    "type": "NicknamePokemon",
    "config": {
      "enabled": true,
      "nickname_template": "{iv_pct}_{iv_ads}"
    }
  },
  {
    "type": "EvolvePokemon",
    "config": {
        "evolve_all": "Pidgey,Weedle,NidoranM,NidoranF,Caterpie,Rhyhorn,Growlithe,Poliwag,Geodude,Ekans,Zubat,Rattata,Spearow,Mankey,Sandshrew",
        "first_evolve_by": "iv",
        "evolve_above_cp": 0,
        "evolve_above_iv": 0,
        "logic": "or",
        "min_evolve_speed": 5,
        "max_evolve_speed": 10,
        "use_lucky_egg":false
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "min_empty_space": 15,
      "item_filter": {
        "Pokeball":       { "keep" : 25 },
        "Potion":         { "keep" : 0 },
        "Super Potion":   { "keep" : 0 },
        "Hyper Potion":   { "keep" : 0 },
        "Revive":         { "keep" : 5 },
        "Max Potion":         { "keep" : 5 },
        "Razz Berry":     { "keep" : 25 },
        "Greatball":     { "keep" : 25 },
        "Ultraball":     { "keep" : 200 }
      }
    }
  },
  {
    "type": "CatchPokemon",
    "config": {
    "daily_catch_limit": 2000,
    "catch_throw_parameters": {
  "excellent_rate": 0.96,
  "great_rate": 0.01,
  "nice_rate": 0.01,
  "normal_rate": 0.02,
  "spin_success_rate" : 0.6,
  "hit_rate": 0.75
},
    "catch_simulation": {
  "flee_count": 0,
  "flee_duration": 0,
 "catch_wait_min": 0,
 "catch_wait_max": 0,
 "berry_wait_min": 0,
 "berry_wait_max": 0,
 "changeball_wait_min": 0,
 "changeball_wait_max": 0

} } }, { "type": "SpinFort" }, { "type": "MoveToMapPokemon", "config": { "enabled": true, "address": "http://localhost:5000", "max_distance": 1000000000, "min_ball": 1, "prioritize_vips": false, "snipe": true, "snipe_high_prio_only": true, "snipe_high_prio_threshold": 200, "update_map": true, "mode": "priority", "min_time": 0, "map_path": "raw_data", "walker": "StepWalker", "max_extra_dist_fort": 10, "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": 1,

        "==========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",
    "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,
  "cache_recent_forts": true
},
"websocket_server": false,
"enable_social": false,
"social_enable": false,
"walk_max":30,
"walk_min":30,
"action_wait_min": 0,
"action_wait_max": 0,
"debug": false,
"test": false,
"health_record": false,
"location_cache": false,
"distance_unit": "km",
"reconnecting_timeout": 15,
"catch_randomize_reticle_factor": 1.0,
"catch_randomize_spin_factor": 1.0,
"min_ultraball_to_keep": 10,
"logging": {
  "color": true,
  "show_datetime": true,
  "show_process_name": true,
  "show_log_level": true
},
"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": 600, "release_below_iv": 0.85, "logic": "and"},
  "// Example of always releasing Rattata:": {},
  "Fearow": {"keep_best_iv": 1},
  "Pidgeotto": {"keep_best_iv": 1},
  "Raticate": {"keep_best_iv": 1},
  "Kakuna": {"keep_best_iv": 1},
  "Metapod": {"keep_best_iv": 1},
  "Ponyta": {"keep_best_iv": 1},
  "Growlithe": {"keep_best_iv": 1},
  "Graveler": {"keep_best_iv": 1},
  "Machop": {"keep_best_iv": 1},
  "Tauros": {"keep_best_iv": 1},
  "Rhyhorn": {"keep_best_iv": 1},
  "Sandslash": {"keep_best_iv": 1},
  "Primeape": {"keep_best_iv": 1},
  "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
  "// Pidgey": {"keep_best_iv": 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_iv": 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": {}

}

}

Output when issue occurred

[2016-08-29 14:32:59] [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Magikarp appeared! [CP 138] [NCP 0.53] [Potential 0.51] [A/D/S 12/9/2] [2016-08-29 14:33:02] [PokemonCatchWorker] [INFO] [enough_ultraballs] No regular balls left! Trying ultraball. [2016-08-29 14:33:02] [PokemonCatchWorker] [INFO] [threw_pokeball] Excellent Curveball throw! Used Ultraball, with chance 68.31 (189 left) [2016-08-29 14:33:02] [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Magikarp! [CP 138] [NCP 0.53] [Potential 0.51] 12/9/2 (843/2000) [+210 exp] [2016-08-29 14:33:02] [PokemonCatchWorker] [INFO] [gained_candy] You now have 437 Magikarp candy! [2016-08-29 14:33:09] [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Magikarp renamed to 051_12/9/2 [2016-08-29 14:33:09] [MoveToMapPokemon] [INFO] [move_to_map_pokemon_teleport_to] Teleporting to Meowth. (2.84km) [2016-08-29 14:33:09] [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encountered Pokemon: Meowth [2016-08-29 14:33:11] [MoveToMapPokemon] [INFO] [move_to_map_pokemon_teleport_back] Teleporting back to previous location (34.0091295, -118.4992379) [2016-08-29 14:33:13] [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Meowth appeared! [CP 467] [NCP 0.62] [Potential 0.49] [A/D/S 8/8/6] [2016-08-29 14:33:16] [PokemonCatchWorker] [INFO] [catch_limit] WARNING! You have reached your daily catch limit

Steps to Reproduce

turn bot on

Other Information

OS: mac Branch: dev

ghost commented 8 years ago

Just one question. You use proxy in your map generator? Do you don't accounts banned? I have various ptc banned, I think it's motive is same IP multiple locations. Thanks for your time. =)

mjmadsen commented 8 years ago

@trevorjudice You're sure you haven't hit that in the last 24 hours (not just curr day)?

trevorjudice commented 8 years ago

@mjmadsen No, because it works completely fine with pokemon I do not teleport to. However, when teleporting to pokemon I always receive this error. Is there a way i can "Disable" catch limit to see if it still happens?

mjmadsen commented 8 years ago

Possibly total not being calculated correctly in sniping functions (another reason why we need to decouple).

mjmadsen commented 8 years ago

@trevorjudice I suppose you could bump up the limit. Is it still causing you problems?