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

Release config - Keep best IV and release below params

Open antoineneff opened this issue 10 years ago • 3 comments

Expected Behavior

I would like to keep one best pokemon based on their IV unless they have more than 1200CP and 0.9 IV, in that case I want to keep them all.

Actual Behavior

It does work actually but I have some logging errors :

2016-08-07 14:02:26,712 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:02:27,316 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.18km
2016-08-07 14:02:34,899 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:02:35,433 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.17km
2016-08-07 14:02:43,713 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:02:44,255 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.16km
2016-08-07 14:02:52,431 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:02:53,020 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.15km
2016-08-07 14:03:00,815 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:03:01,340 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.14km
2016-08-07 14:03:09,565 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv
2016-08-07 14:03:10,138 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Carol P. Johnson Memorial - 0.13km
2016-08-07 14:03:17,495 [TransferPokemon] [INFO] [keep_best_release] Keeping best 1 Vaporeon, based on iv

Steps to Reproduce

This is my config, I guess it's not what is expected, but I don't know how to write it then :

"release": {
      "any": {"keep_best_iv": 1, "release_below_iv": 0.9, "release_below_cp": 1200, "logic": "or"}
}

Other Information

OS: Mac OS X Git Commit: d5bb09fd758e779b8eee859d8374f0d198e58abb Python Version: 2.7

antoineneff avatar Aug 07 '16 12:08 antoineneff

"release": {
  "any": {"release_below_cp": 1600, "release_below_iv": 0.9, "logic": "and", "keep_best_cp": 1 },
}

dezayner avatar Aug 07 '16 13:08 dezayner

I think we can't use more than 2 parameters in the release params, or we're not doing it as expected.

antoineneff avatar Aug 07 '16 13:08 antoineneff

Fixed in https://github.com/PokemonGoF/PokemonGo-Bot/pull/3223

elicwhite avatar Aug 09 '16 09:08 elicwhite