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

[issue] [dev] Bot incubates shorter eggs first #5740

Closed
scarfield opened this issue Sep 30, 2016 · 4 comments
Closed

[issue] [dev] Bot incubates shorter eggs first #5740

scarfield opened this issue Sep 30, 2016 · 4 comments

Comments

@scarfield
Copy link

Expected Behavior

Bot Incubates longer eggs first, on both breakable and unbreakable

Actual Behavior

Bot Incubates shorter eggs first.

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

{
    "websocket_server": false,
    "heartbeat_threshold": 10,
    "enable_social": true,
    "live_config_update": {
      "enabled": false,
      "tasks_only": false
    },
    "tasks": [
      {
        "type": "TelegramTask",
        "config": {
          "enabled": false,
          "master": null,
          "password": null,
          "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": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:05:00",
          "max_interval": "01:30:00"
        }
      },
      {
        "type": "HandleSoftBan"
      },
        {
        "type": "RandomPause",
          "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:10:00",
          "max_interval": "02:00:00"
         }
        },
      {
        "type": "CompleteTutorial",
        "config": {
          "enabled": true,
          "// set a name": "",
          "nickname": "",
          "// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "",
          "team": 2
        }
      },
      {
        "type": "CollectLevelUpReward",
        "config": {
          "collect_reward": true,
          "level_limit": -1
        }
      },
      {
        "type": "BuddyPokemon",
        "config": {
          "enabled": true,
          "buddy_list": "dratini, magikarp",
          "best_in_family": true,
          "// candy_limit = 0 means no limit, so it will never change current buddy": {},
          "candy_limit": 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": {
          "longer_eggs_first": true,
          "breakable_longer_eggs_first": true,
          "min_interval": 120,
          "infinite": [2,5,10],
          "breakable": [2,5,10]
        }
      },
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": true,
          "min_interval": 25,
          "stats": ["uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited", "level_stats"],
          "terminal_log": true,
          "terminal_title": true
        }
      },
      {
        "type": "UpdateLiveInventory",
         "config": {
           "enabled": true,
           "min_interval": 240,
           "show_all_multiple_lines": true,
           "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
         }
       },
      {
        "type": "TransferPokemon",
         "config": {
          "enabled": true,
          "min_free_slot": 5,
          "transfer_wait_min": 3,
          "transfer_wait_max": 54
        }
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "enabled": false,
          "nickname_above_iv": 0.9,
          "nickname_template": "{iv_pct}-{iv_ads}",
          "nickname_wait_min": 3,
          "nickname_wait_max": 5
        }
      },
      {
        "type": "EvolvePokemon",
        "config": {
          "enabled": true,
          "log_interval": 120,

             "// evolve only pidgey and drowzee": "",
             "// evolve_list": "pidgey, drowzee",
             "// donot_evolve_list": "none",

             "// evolve all but pidgey and drowzee": "",
             "// evolve_list": "all",
             "// donot_evolve_list": "pidgey, drowzee",

             "evolve_list": "all",
             "donot_evolve_list": "Bulbasaur, Charmander, Squirtle, Caterpie, Pidgey, Weedle, Oddish, Polywag, Abra, Machop, Bellsprout, Geodude, Gastly, Dratini, Nidoran F, Nidoran M",

          "first_evolve_by": "cp",
          "evolve_above_cp": 200,
          "evolve_above_iv": 0.7,
          "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": 15,
          "max_balls_keep": 200,
          "max_potions_keep": 120,
          "max_berries_keep": 90,
          "max_revives_keep": 80,
          "item_filter": {
            "Pokeball":       { "keep" : 75 },
            "Greatball":      { "keep" : 80 },
            "Ultraball":      { "keep" : 80 },
            "Potion":         { "keep" : 30 },
            "Super Potion":   { "keep" : 40 },
            "Hyper Potion":   { "keep" : 50 },
            "Max Potion":     { "keep" : 50 },
            "Revive":         { "keep" : 40 },
            "Max Revive":     { "keep" : 50 },
            "Razz Berry":     { "keep" : 50 }
          },
           "recycle_wait_min": 3,
           "recycle_wait_max": 5,
           "recycle_wait_max": 5,
           "recycle_force": true,
           "recycle_force_min": "00:06:00",
           "recycle_force_max": "00:12:00"
           }
         },
      {
        "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,
          "vip_berry_threshold": 0.9,
          "treat_unseen_as_vip": true,
          "daily_catch_limit": 800,
          "vanish_settings": {
              "consecutive_vanish_limit": 10,
              "rest_duration_min": "02:00:00",
              "rest_duration_max": "04:00:00"
           },
          "catch_throw_parameters": {
            "excellent_rate": 0.1,
            "great_rate": 0.5,
            "nice_rate": 0.3,
            "normal_rate": 0.1,
            "spin_success_rate" : 0.6,
            "hit_rate": 0.75
          },
          "catch_simulation": {
            "flee_count": 3,
            "flee_duration": 2,
            "catch_wait_min": 2,
            "catch_wait_max": 6,
            "berry_wait_min": 2,
            "berry_wait_max": 3,
            "changeball_wait_min": 2,
            "changeball_wait_max": 3,
            "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
    },
    "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": false,
       "// 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"]
     },
    "websocket_server": false,
    "walk_max": 6.16,
    "walk_min": 3.16,
    "alt_min": 500,
    "alt_max": 1000,
    "sleep_schedule": {
      "enabled": true,
      "enable_reminder": false,
      "reminder_interval": 600,
      "entries": [
        {
          "enabled": true,
          "time": "23: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": 8.0,
    "replicate_gps_xy_noise": true,
    "replicate_gps_z_noise": false,
    "gps_xy_noise_range": 0.00125,
    "gps_z_noise_range": 12.5,
    "debug": false,
    "test": false,
    "walker_limit_output": false,
    "health_record": false,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "logging": {
      "color": true,
      "show_datetime": true,
      "show_process_name": false,
      "show_log_level": true,
      "show_thread_name": false
    },
    "catch": {
      "any": {"candy_threshold" : 1900, "catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true },
      "// Example of catching only Diglett and Horsea needed for Bubblestrat; you might want to also configure sniping": {},
      "// (MoveToMap - helps you get hold of neede pokemons faster) and disable SpinFort": {},
      "// (or you will advance past level 2 which will make it impossible to catch level-1 pokemons)": {},
      "// 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_cp": 2},
      "//any": {"release_below_cp": 500, "release_below_iv": 0.6, "release_below_ivcp": 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": 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},
      "// Keep no more than 3 best IVCP pokemon for every pokemon type": {},
      "// any": {"keep_best_ivcp": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"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": {}

    }
}

Output when issue occurred

[2016-09-30 11:36:11] [INFO] Eggs incubating: 1.71/5.0 km (Eggs left: (10.0, 8), Incubating: 1)

@avexus
Copy link

avexus commented Sep 30, 2016

Take a look at some samples, and set as [2, 5, 10] somewhere and you'll be fine

@crvfts
Copy link
Contributor

crvfts commented Sep 30, 2016

"infinite_longer_eggs_first": true,

i think "longer_eggs_first" is deprecated, not totally sure though

{ "type": "IncubateEggs", "config": { "enabled": true, "infinite_longer_eggs_first": false, "breakable_longer_eggs_first": true, "min_interval": 600, "infinite": [2,5,10], "breakable": [10] } },

@mmixx
Copy link

mmixx commented Oct 1, 2016

Yep... It's infinite_longer_eggs_first...

@scarfield
Copy link
Author

It was these two I had missing/inncorrect :(

"config": {
          "enabled": true,
          "infinite_longer_eggs_first": false,

Thanks :)

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

4 participants