PokemonGoF / PokemonGo-Bot

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

Too Much XP [+210] - excellent throw everytime #3863

Closed vamirineni87 closed 8 years ago

vamirineni87 commented 8 years ago
  1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check. Yes - Read the docs and searched the issue to figureout what is wrong.
  2. Have you searched to see if there are other issues for the same issue? If so, comment on that issue instead.
added the following
    "catch_throw_parameters": {
      "excellent_rate": 0.1,
      "great_rate": 0.5,
      "nice_rate": 0.3,
      "normal_rate": 0.1,
      "spin_success_rate" : 0.6
    },
  1. 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. Master

    Expected Behavior

Lower the xp everytime a pokemon is caught.

Actual Behavior

2016-08-13 13:44:46,578 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Horsea appeared! [CP 361] [Potential 0.73] [A/D/S 14/8/11]
2016-08-13 13:44:49,174 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 36.31 (9 left)
2016-08-13 13:44:49,401 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Horsea! [CP 361] [Potential 0.73] [14/8/11] **[+210 exp]**

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

{
    "auth_service": "google",
    "username": "xxx",
    "password": "xxx",
    "location": "38.883309,-77.042569",
    "gmapkey": "",
    "libencrypt_location": "",
    "tasks": [
      { "type": "HandleSoftBan" },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "nickname_template": "{name:.8s}_{iv_pct}"
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "Pidgey,Caterpie,Weedle,Zubat,Spearow,Krabby,Sandshrew,Poliwag,Kakuna,Rattata",
            "first_evolve_by": "cp",
            "evolve_above_cp": 200,
            "evolve_above_iv": 0.8,
            "logic": "or",
            "evolve_speed": 30,
            "use_lucky_egg": false
        }
      },
      {
        "type": "UpdateTitleStats",
        "config": {
            "min_interval": 180,
            "stats": ["login", "uptime", "km_walked", "level_stats", "xp_earned", "xp_per_hour", "stardust_earned", "pokemon_stats"]
        }
      },
      {
        "type": "SleepSchedule",
        "config": {
          "time": "22:00",
          "duration":"8:00",
          "time_random_offset": "00:30",
          "duration_random_offset": "00:30"
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       { "keep" : 10 },
            "Greatball":      { "keep" : 50 },
            "Ultraball":      { "keep" : 50 },
            "Potion":         { "keep" : 0 },
            "Super Potion":   { "keep" : 10 },
            "Hyper Potion":   { "keep" : 50 },
            "Max Potion":     { "keep" : 50 },
            "Revive":         { "keep" : 10 },
            "Max Revive":     { "keep" : 40 },
            "Razz Berry":     { "keep" : 20 }
          }
        }
      },
      {
        "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": 6.45,
    "action_wait_min": 1,
    "action_wait_max": 5,
    "debug": false,
    "test": false,
    "health_record": false,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "Pidgey,Rattata,Zubat,Weedle,Slowpoke",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or" },
      "// Pokemons with example": { "always_catch": true },
      "// Gets filtered with release parameters": {}
    },
    "catch_throw_parameters": {
      "excellent_rate": 0.1,
      "great_rate": 0.5,
      "nice_rate": 0.3,
      "normal_rate": 0.1,
      "spin_success_rate" : 0.6
    },
    "release": {
      "any": {"keep_best_cp": 1, "keep_best_iv": 1},

      "//1 Example of always releasing Rattata:": {},
      "//2 Rattata": {"always_release": true},
      "//3 Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "//4 Pidgey": {"keep_best_cp": 3},
      "//5 Example of keeping 2 stronger (based on IV) Zubat:": {},
      "//6 Zubat": {"keep_best_iv": 2},
      "//7 Also, it is working with any": {},
      "//8 any": {"keep_best_iv": 3},
      "//9 Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "//10 Zubat": {"keep_best_cp": 2, "keep_best_iv": 3},
      "//11 any": {"release_below_cp": 250, "release_below_iv": 0.6, "logic": "or" },

      "// Legendary pokemons (Goes under S-Tier)": {},
      "Lapras": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
      "Moltres": { "release_below_cp": 1132, "release_below_iv": 0.8, "logic": "and" },
      "Zapdos": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
      "Articuno": { "release_below_cp": 1039, "release_below_iv": 0.8, "logic": "and" },

      "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
      "Mewtwo": { "release_below_cp": 1447, "release_below_iv": 0.8, "logic": "and"},
      "Dragonite": { "release_below_cp": 1221, "release_below_iv": 0.8, "logic": "and" },
      "Snorlax": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
      "// Mew evolves to Mewtwo": {},
      "Mew": { "release_below_cp": 1152, "release_below_iv": 0.86, "logic": "and" },
      "Arcanine": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
      "Vaporeon": { "release_below_cp": 984, "release_below_iv": 0.8, "logic": "and" },
      "Gyarados": { "release_below_cp": 938, "release_below_iv": 0.8, "logic": "and" },
      "Exeggutor": { "release_below_cp": 1032, "release_below_iv": 0.8, "logic": "and" },
      "Muk": { "release_below_cp": 909, "release_below_iv": 0.8, "logic": "and" },
      "Weezing": { "release_below_cp": 784, "release_below_iv": 0.8, "logic": "and" },
      "Flareon": { "release_below_cp": 924, "release_below_iv": 0.8, "logic": "and" },

      "// Growlithe evolves to Arcanine": {},
      "Growlithe": { "release_below_cp": 700, "release_below_iv": 0.86, "logic": "and" },
      "// Dragonair evolves to Dragonite": {},
      "Dragonair": { "release_below_cp": 609, "release_below_iv": 0.86, "logic": "and" },
      "// Grimer evolves to Muk": {},
      "Grimer": { "release_below_cp": 448, "release_below_iv": 0.86, "logic": "and" },
      "// Magikarp evolves to Gyarados": {},
      "Magikarp": { "release_below_cp": 150, "release_below_iv": 0.86, "logic": "and" },
      "// Exeggcute evolves to Exeggutor": {},
      "Exeggcute": { "release_below_cp": 500, "release_below_iv": 0.86, "logic": "and" },
      "// Eevee evolves to many versions, like Vaporeon, Flareon": {},
      "Eevee": { "release_below_cp": 500, "release_below_iv": 0.90, "logic": "and" },

      "Raticate": {"always_release": true},
      "Fearow": {"always_release": true},

      "Staryu": { "release_below_cp": 600, "release_below_iv": 0.9, "logic": "and" },
      "Graveler": { "release_below_cp": 800, "release_below_iv": 0.8, "logic": "and" },
      "Spearow": {"always_release": true}

    },
    "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": {}

    }
}

Other Information

OS: Win 10 Branch: dev or master Master Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) 63f777bac0c8cdc75d07f9ef491ca8b900c0148a Python Version: (run 'python -V' and paste it here) Python 2.7.12

drricksanchez321 commented 8 years ago

I can't locate the code for "catch_throw_parameters" in the repo either. Was this config just a feature proposal?

EDIT: I confirm using

    "catch_randomize_reticle_factor" : 0.3,
    "catch_randomize_spin_factor" : 0.3,

is working (dev branch) to reduce the XP:

[PokemonCatchWorker] [INFO] [pokemon_caught] Captured Magnemite! [CP 173] [Potential 0.44] [7/4/9] [+150 exp] [...] [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Voltorb! [CP 562] [Potential 0.58] [10/6/10] [+210 exp] [...] [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Magnemite! [CP 191] [Potential 0.42] [6/8/5] [+160 exp]

jaimerson commented 8 years ago

@drricksanchez321 at least as of this morning, those config options were available only on dev branch.

ghost commented 8 years ago

I am always on dev branch. These work! Should close. See log: 2016-08-13 12:08:40,250 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Oddish appeared! [CP 577] [Potential 0.67] [A/D/S 9/9/12] 2016-08-13 12:08:43,986 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 41.22 (14 left) 2016-08-13 12:08:44,260 [PokemonCatchWorker] [INFO] [pokemon_capture_failed] Oddish capture failed.. trying again! 2016-08-13 12:08:46,035 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 41.22 (13 left) 2016-08-13 12:08:46,270 [PokemonCatchWorker] [INFO] [pokemon_capture_failed] Oddish capture failed.. trying again! 2016-08-13 12:08:48,849 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 41.22 (12 left) 2016-08-13 12:08:49,076 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Oddish! [CP 577] [Potential 0.67] [9/9/12] [+110 exp] 2016-08-13 12:08:49,525 [PokemonCatchWorker] [INFO] [gained_candy] You now have 288 Oddish candy!

vamirineni87 commented 8 years ago

Thanks, continuing with

   "catch_randomize_reticle_factor" : 0.3,
    "catch_randomize_spin_factor" : 0.3,