PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

issue : -1 pokeball left

Open mehdi-S opened this issue 10 years ago • 6 comments

Expected Behavior

accurate number based on inventory

Actual Behavior

2016-08-08 05:51:20,755 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Rattata appeared! [CP 125] [Potential 0.53] [S/A/D 4/11/9]
2016-08-08 05:51:23,764 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 50.05 (-1 left)

Steps to Reproduce

pull, config, start the bot as normal

Other Information

OS: Debian x86_64 Git Commit: 563f898f61233ff86d38d83b68d8399c1f63051b Python Version: 2.7.9

mehdi-S avatar Aug 08 '16 09:08 mehdi-S

I have the same issue and I think it's not small. It appears that it doesn't catch the pokemon after -1 pokeball is thrown.

2016-08-08 14:22:52,976 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Zubat appeared! [CP 150] [Potential 0.67] [S/A/D 12/3/15]
2016-08-08 14:22:55,907 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 50.05 (-1 left)
2016-08-08 14:23:06,312 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Big Flower Base Sculpture - 0.05km (attraction of lure 0.05km)

compare this to:

2016-08-08 14:21:05,966 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Pidgey appeared! [CP 255] [Potential 0.2] [S/A/D 1/8/0]
2016-08-08 14:21:09,762 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Greatball, with chance 49.17 (1 left)
2016-08-08 14:21:10,396 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Pidgey! [CP 255] [Potential 0.2] [1/8/0] [+210 exp]

It seems like whenever the bot tries to throw normal pokeballs (which I don't have any of), it fails, because there are none. Then whenever it tries to throw Great or Ultraball (I have like 300 of those), then it works.

I simply can't fit any of the basic pokeballs, that's why I set it to keep 0 (zero) of them. Would be nice if bot could understand this, and only use Ultraballs, because I have a ton of them.

I'd recommend @mehdi-S to remove the "small" word from the title.

alextj avatar Aug 08 '16 11:08 alextj

Temporary workaround is to set amount of basic pokeballs to keep to something like 15, so there's something to throw when the bot necessarily wants to use basic pokeball (at the moment almost always).

alextj avatar Aug 08 '16 11:08 alextj

I got the same issue with this config :

{
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       { "keep" : 100 },
            "Potion":         { "keep" : 0 },
            "Super Potion":   { "keep" : 0 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 100 }
          }
        }
      }

jocelyndrean avatar Aug 08 '16 12:08 jocelyndrean

@alextj removed the word "small" from issue title, i now try your workaround

mehdi-S avatar Aug 08 '16 13:08 mehdi-S

to a look at this strange output i've catch

2016-08-08 10:32:21,375 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Rattata appeared! [CP 95] [Potential 0.51] [S/A/D 7/14/2]
2016-08-08 10:32:24,095 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 57.27 (-1 left)

here you can clearly see : i've no pokeball so catch fail

2016-08-08 10:32:29,938 [  SpinFort] [INFO] [spun_pokestop] Spun pokestop Le Hall . Experience awarded: 50. Items awarded: {u'Potion': 1, u'Pokeball': 2}
2016-08-08 10:32:32,288 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Fresque Sur Sol - 0.04km (attraction of lure 0.04km)
2016-08-08 10:32:43,477 [RecycleItems] [INFO] [item_discarded] Discarded 2x Pokeball (maximum 0).

i found 2 of them in a fort but discard it immediately as my rules says, so again, zero balls (like IRL)

2016-08-08 10:32:44,041 [RecycleItems] [INFO] [item_discarded] Discarded 1x Potion (maximum 0).
2016-08-08 10:32:44,303 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Machop appeared! [CP 13] [Potential 0.4] [S/A/D 0/10/8]
2016-08-08 10:32:46,434 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 100.00 (1 left)

and here you can see, it says 1 left but still act as when it say -1 left

mehdi-S avatar Aug 08 '16 14:08 mehdi-S

This should be fixed with the above linked PR

leadboots5 avatar Aug 11 '16 21:08 leadboots5