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

No pokeballs found, bot stuck #3658

Closed
firzzen opened this issue Aug 11, 2016 · 5 comments
Closed

No pokeballs found, bot stuck #3658

firzzen opened this issue Aug 11, 2016 · 5 comments

Comments

@firzzen
Copy link

firzzen commented Aug 11, 2016

Expected Behavior

Bot should move on and spin a pokestop.

Actual Behavior

Bot is stuck at this:

[01:23:57] A wild Staryu appeared! [CP 12] [Potential 0.69] [A/D/S 14/12/5]
[01:24:01] No usable pokeballs found!
[01:24:07] Something rustles nearby!
[01:24:07] A wild Staryu appeared! [CP 12] [Potential 0.69] [A/D/S 14/12/5]
[01:24:10] No usable pokeballs found!
[01:24:16] Something rustles nearby!
[01:24:17] A wild Staryu appeared! [CP 12] [Potential 0.69] [A/D/S 14/12/5]
[01:24:20] No usable pokeballs found!
[01:24:26] Something rustles nearby!
[01:24:26] A wild Staryu appeared! [CP 12] [Potential 0.69] [A/D/S 14/12/5]
[01:24:29] No usable pokeballs found!
[01:24:35] Something rustles nearby!

And will not move on.

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

  {
"auth_service": "ptc",
"username": "xxx",
"password": "xxx",
"location": "22.285493, 114.150489",
"gmapkey": "xxxx",
"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": 500,
        "evolve_above_iv": 0.8,
        "logic": "or",
        "evolve_speed": 20,
        "use_lucky_egg": false
    }
  },
  {
    "type": "SleepSchedule",
    "config": {
      "time": "18:01",
      "duration":"9:31",
      "time_random_offset": "00:25",
      "duration_random_offset": "00:24"
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "item_filter": {
        "Pokeball":       { "keep" : 100 },
        "Greatball":       { "keep" : 80 },
        "Ultraball":       { "keep" : 80 },
        "Potion":         { "keep" : 0 },
        "Super Potion":   { "keep" : 0 },
        "Hyper Potion":   { "keep" : 0 },
        "Max Potion":   { "keep" : 0 },
        "Revive":         { "keep" : 0 },
        "Razz Berry":     { "keep" : 50 }
      }
    }
  },
  {
    "type": "CatchVisiblePokemon"
  },
  {
    "type": "CatchLuredPokemon"
  },
  {
    "type": "SpinFort"
  },
 {
"type": "FollowPath",
"config": {
  "path_mode": "loop",
  "path_file": "configs/hongkong.gpx"
    }
  }
 ],
"map_object_cache_time": 5,
"forts": {
  "avoid_circles": true,
  "max_circle_size": 50
 },
"websocket_server": false,
"walk": 150,
"action_wait_min": 1,
"action_wait_max": 4,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"evolve_captured": "all",
"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": {},

  "// Legendary pokemons (Goes under S-Tier)": {},
  "Lapras": { "always_catch": true },
  "Moltres": { "always_catch": true },
  "Zapdos": { "always_catch": true },
  "Articuno": { "always_catch": true },

  "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
  "Mewtwo": { "always_catch": true },
  "Dragonite": { "always_catch": true },
  "Snorlax": { "always_catch": true },
  "// Mew evolves to Mewtwo": {},
  "Mew": { "always_catch": true },
  "Arcanine": { "always_catch": true },
  "Vaporeon": { "always_catch": true },
  "Gyarados": { "always_catch": true },
  "Exeggutor": { "always_catch": true },
  "Muk": { "always_catch": true },
  "Weezing": { "always_catch": true },
  "Flareon": { "always_catch": true },

  "// Growlithe evolves to Arcanine": {},
  "Growlithe": { "always_catch": true },
  "// Dragonair evolves to Dragonite": {},
  "Dragonair": { "always_catch": true },
  "// Grimer evolves to Muk": {},
  "Grimer": { "always_catch": true },

  "// Magikarp evolves to Gyarados": {},
  "Magikarp": { "always_catch": true },
  "// Exeggcute evolves to Exeggutor": {},
  "Exeggcute": { "always_catch": true },
  "// Eevee evolves to many versions, like Vaporeon, Flareon": {},
  "Eevee": { "always_catch": true },

  "// A-Tier pokemons": {},
  "Slowbro": { "always_catch": true },
  "Victreebel": { "always_catch": true },
  "Machamp": { "always_catch": true },
  "Poliwrath": { "always_catch": true },
  "Clefable": { "always_catch": true },
  "Nidoking": { "always_catch": true },
  "Venusaur": { "always_catch": true },
  "Charizard": { "always_catch": true },
  "Golduck": { "always_catch": true },
  "Nidoqueen": { "always_catch": true },
  "Vileplume": { "always_catch": true },
  "Blastoise": { "always_catch": true },
  "Omastar":  { "always_catch": true },
  "Aerodactyl": { "always_catch": true },
  "Golem": { "always_catch": true },
  "Wigglytuff": { "always_catch": true },
  "Dewgong": { "always_catch": true },
  "Ninetales": { "always_catch": true },
  "Magmar": { "always_catch": true },
  "Kabutops": { "always_catch": true },
  "Electabuzz": { "always_catch": true },
  "Starmie": { "always_catch": true },
  "Jolteon": { "always_catch": true },
  "Rapidash": { "always_catch": true },
  "Pinsir": { "always_catch": true },
  "Scyther": { "always_catch": true },
  "Tentacruel": { "always_catch": true },
  "Gengar": { "always_catch": true },
  "Hypno": { "always_catch": true },
  "Pidgeot": { "always_catch": true },
  "Rhydon": { "always_catch": true },
  "Seaking": { "always_catch": true },
  "Kangaskhan": { "always_catch": true }
    },
  "release": {
  "any": {"release_below_cp": 0, "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": 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_cp": 2, "keep_best_iv": 3},

  "Abra": {"keep_best_cp": 1},
  "Aerodactyl": {"keep_best_cp": 2},
  "Alakazam": {"keep_best_cp": 2},
  "Arbok": {"keep_best_cp": 2},
  "Arcanine": {"keep_best_cp": 2},
  "Articuno": {"keep_best_cp": 3},
  "Beedrill": {"keep_best_cp": 1},
  "Bellsprout": {"keep_best_cp": 1},
  "Blastoise": {"keep_best_cp": 3},
  "Bulbasaur": {"keep_best_cp": 1},
  "Butterfree": {"keep_best_cp": 1},
  "Caterpie": {"keep_best_cp": 1},
  "Chansey": {"keep_best_cp": 1},
  "Charizard": {"keep_best_cp": 3},
  "Charmander": {"keep_best_cp": 1},
  "Charmeleon": {"keep_best_cp": 1},
  "Clefable": {"keep_best_cp": 2},
  "Clefairy": {"keep_best_cp": 1},
  "Cloyster": {"keep_best_cp": 2},
  "Cubone": {"keep_best_cp": 1},
  "Dewgong": {"keep_best_cp": 1},
  "Diglett": {"keep_best_cp": 1},
  "Ditto": {"keep_best_cp": 2},
  "Dodrio": {"keep_best_cp": 1},
  "Doduo": {"keep_best_cp": 1},
  "Dragonair": {"keep_best_cp": 1},
  "Dragonite": {"keep_best_cp": 2},
  "Dratini": {"keep_best_cp": 1},
  "Drowzee": {"keep_best_cp": 1},
  "Dugtrio": {"keep_best_cp": 1},
  "Eevee": {"keep_best_cp": 2},
  "Ekans": {"keep_best_cp": 1},
  "Electabuzz": {"keep_best_cp": 1},
  "Electrode": {"keep_best_cp": 1},
  "Exeggcute": {"keep_best_cp": 1},
  "Exeggutor": {"keep_best_cp": 3},
  "Farfetch'd": {"keep_best_cp": 1},
  "Fearow": {"keep_best_cp": 1},
  "Flareon": {"keep_best_cp": 3},
  "Gastly": {"keep_best_cp": 1},
  "Gengar": {"keep_best_cp": 2},
  "Geodude": {"keep_best_cp": 1},
  "Gloom": {"keep_best_cp": 1},
  "Golbat": {"keep_best_cp": 1},
  "Goldeen": {"keep_best_cp": 1},
  "Golduck": {"keep_best_cp": 2},
  "Golem": {"keep_best_cp": 3},
  "Graveler": {"keep_best_cp": 1},
  "Grimer": {"keep_best_cp": 1},
  "Growlithe": {"keep_best_cp": 1},
  "Gyarados": {"keep_best_cp": 3},
  "Haunter": {"keep_best_cp": 1},
  "Hitmonchan": {"keep_best_cp": 2},
  "Hitmonlee": {"keep_best_cp": 1},
  "Horsea": {"keep_best_cp": 1},
  "Hypno": {"keep_best_cp": 1},
  "Ivysaur": {"keep_best_cp": 2},
  "Jigglypuff": {"keep_best_cp": 1},
  "Jolteon": {"keep_best_cp": 3},
  "Jynx": {"keep_best_cp": 1},
  "Kabuto": {"keep_best_cp": 1},
  "Kabutops": {"keep_best_cp": 2},
  "Kadabra": {"keep_best_cp": 2},
  "Kakuna": {"keep_best_cp": 1},
  "Kangaskhan": {"keep_best_cp": 2},
  "Kingler": {"keep_best_cp": 1},
  "Koffing": {"keep_best_cp": 1},
  "Krabby": {"keep_best_cp": 1},
  "Lapras": {"keep_best_cp": 3},
  "Lickitung": {"keep_best_cp": 1},
  "Machamp": {"keep_best_cp": 2},
  "Machoke": {"keep_best_cp": 1},
  "Machop": {"keep_best_cp": 1},
  "Magikarp": {"keep_best_cp": 1},
  "Magmar": {"keep_best_cp": 1},
  "Magnemite": {"keep_best_cp": 1},
  "Magneton": {"keep_best_cp": 2},
  "Mankey": {"keep_best_cp": 1},
  "Marowak": {"keep_best_cp": 2},
  "Meowth": {"keep_best_cp": 1},
  "Metapod": {"keep_best_cp": 1},
  "Mew": {"keep_best_cp": 2},
  "Mewtwo": {"keep_best_cp": 3},
  "Moltres": {"keep_best_cp": 2},
  "Mr. Mime": {"keep_best_cp": 1},
  "Muk": {"keep_best_cp": 2},
  "Nidoking": {"keep_best_cp": 3},
  "Nidoqueen": {"keep_best_cp": 3},
  "Nidoran F": {"keep_best_cp": 1},
  "Nidoran M": {"keep_best_cp": 1},
  "Nidorina": {"keep_best_cp": 1},
  "Nidorino": {"keep_best_cp": 1},
  "Ninetales": {"keep_best_cp": 3},
  "Oddish": {"keep_best_cp": 1},
  "Omanyte": {"keep_best_cp": 1},
  "Omastar":  {"keep_best_cp": 2},
  "Onix": {"keep_best_cp": 1},
  "Paras": {"keep_best_cp": 1},
  "Parasect": {"keep_best_cp": 1},
  "Persian": {"keep_best_cp": 1},
  "Pidgeot": {"keep_best_cp": 1},
  "Pidgeotto": {"keep_best_cp": 1},
  "Pidgey": {"keep_best_cp": 1},
  "Pikachu": {"keep_best_cp": 1},
  "Pinsir": {"keep_best_cp": 1},
  "Poliwag": {"keep_best_cp": 1},
  "Poliwhirl": {"keep_best_cp": 1},
  "Poliwrath": {"keep_best_cp": 2},
  "Ponyta": {"keep_best_cp": 1},
  "Porygon": {"keep_best_cp": 2},
  "Primeape": {"keep_best_cp": 1},
  "Psyduck": {"keep_best_cp": 1},
  "Raichu": {"keep_best_cp": 2},
  "Rapidash": {"keep_best_cp": 1},
  "Raticate": {"keep_best_cp": 1},
  "Rattata": {"keep_best_cp": 1},
  "Rhydon": {"keep_best_cp": 2},
  "Rhyhorn": {"keep_best_cp": 1},
  "Sandshrew": {"keep_best_cp": 1},
  "Sandslash": {"keep_best_cp": 2},
  "Scyther": {"keep_best_cp": 2},
  "Seadra": {"keep_best_cp": 1},
  "Seaking": {"keep_best_cp": 2},
  "Seel": {"keep_best_cp": 1},
  "Shellder": {"keep_best_cp": 1},
  "Slowbro": {"keep_best_cp": 3},
  "Slowpoke": {"keep_best_cp": 1},
  "Snorlax": {"keep_best_cp": 3},
  "Spearow": {"keep_best_cp": 1},
  "Squirtle": {"keep_best_cp": 1},
  "Starmie": {"keep_best_cp": 2},
  "Staryu": {"keep_best_cp": 1},
  "Tangela": {"keep_best_cp": 1},
  "Tauros": {"keep_best_cp": 1},
  "Tentacool": {"keep_best_cp": 1},
  "Tentacruel": {"keep_best_cp": 1},
  "Vaporeon": {"keep_best_cp": 3},
  "Venomoth": {"keep_best_cp": 2},
  "Venonat": {"keep_best_cp": 1},
  "Venusaur": {"keep_best_cp": 3},
  "Victreebel": {"keep_best_cp": 1},
  "Vileplume": {"keep_best_cp": 1},
  "Voltorb": {"keep_best_cp": 1},
  "Vulpix": {"keep_best_cp": 1},
  "Wartortle": {"keep_best_cp": 1},
  "Weedle": {"keep_best_cp": 1},
  "Weepinbell": {"keep_best_cp": 1},
  "Weezing": {"keep_best_cp": 1},
  "Wigglytuff": {"keep_best_cp": 1},
  "Zapdos": {"keep_best_cp": 3},
  "Zubat": {"keep_best_cp": 1}
  },
  "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" },
"Arcanine": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Articuno": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Blastoise": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Charizard": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Charmeleon": {"catch_above_cp": 500, "catch_above_iv": 0.5, "logic": "or" },
    "Dragonite": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Exeggutor": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Flareon": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Gyarados": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Ivysaur": {"catch_above_cp": 500, "catch_above_iv": 0.5, "logic": "or" },
    "Lapras": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Mew": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Mewtwo": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Moltres": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Muk": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Snorlax": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Vaporeon": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Venusaur": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Wartortle": {"catch_above_cp": 500, "catch_above_iv": 0.5, "logic": "or" },
    "Weezing": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" },
    "Zapdos": {"catch_above_cp": 1000, "catch_above_iv": 0.5, "logic": "or" }
  }
  }

Steps to Reproduce

Run a config with no pokeballs.

*FYI: I am using a .gpx file for the path. *

Also, i am running on the latest master branch.

Other Information

OS: Ubuntu 15.04
Git Commit:
Python Version: Python 2.7.9

@umbreon222
Copy link
Contributor

umbreon222 commented Aug 11, 2016

Duplicate of issue #3630, problem is addressed in PR #3421.

@jrjhealey
Copy link

Consider switching to the dev branch. I haven't checked how far master is behind dev at the moment, but I suspect that might have something to do with it.

Closing as this is addressed in the PR and threads mentioned above. Any further issues, continue in #3630

@firzzen
Copy link
Author

firzzen commented Aug 11, 2016

@jrjhealey look at #3637 comment, dev broken for me. Master works fine, not that far behind. Except if you run out of pokeballs. Saw that a fix is coming for this in #3421

@jrjhealey jrjhealey reopened this Aug 11, 2016
@umbreon222
Copy link
Contributor

The PR @firzzen referenced only modified colored_logging_handler.py, and CONTRIBUTORS.md which have nothing to do with issue #3630. As it stands your issue is still a duplicate of #3630.

@firzzen firzzen closed this as completed Aug 11, 2016
@jrjhealey
Copy link

Ah good I'm glad you noticed that too, I thought I was missing something...

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

3 participants