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

Optimizer exchange the only pokemon of a family #5275

Closed
liejuntao001 opened this issue Sep 8, 2016 · 6 comments
Closed

Optimizer exchange the only pokemon of a family #5275

liejuntao001 opened this issue Sep 8, 2016 · 6 comments
Assignees
Labels

Comments

@liejuntao001
Copy link

Expected Behavior

Using PokemonOptimizer and it should keep the at least one pokemon of a family

Actual Behavior

It exchange the only one of a family, for a upgraded family.
example: there are many Magnetites and only one Magneton, it exchange the Magneton

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

            {
                    "type": "PokemonOptimizer",
                    "config": {
                            "enabled": true,
                            "transfer": true,
                            "transfer_wait_min": 4,
                            "transfer_wait_max": 6,
                            "evolve": true,
                            "evolve_time": 25,
                            "evolve_for_xp": true,
                            "evolve_only_with_lucky_egg": false,
                            "evolve_count_for_lucky_egg": 72,
                            "may_use_lucky_egg": true,
                            "upgrade": true,
                            "upgrade_level": 60,
                            "min_slots_left": 5,
                            "groups": {
                                    "gym": ["Dragonite", "Snorlax", "Lapras", "Arcanine"],
                                    "my_love": ["Pikachu"],
                                    "vip": ["Exeggutor", "Blastoise", "Vaporeon", "Gyarados", "Flareon", "Venusaur", "Dragonite", "Snorlax", "Lapras", "Arcanine"]
                            },
                            "keep": [
                                    {
                                            "mode": "by_family",
                                            "top": 1,
                                            "sort": [{"iv": 0.9}],
                                            "evolve": true,
                                            "upgrade": false
                                    },
                                    {
                                            "mode": "by_family",
                                            "top": 1,
                                            "sort": [{"ncp": 0.9}],
                                            "evolve": true,
                                            "upgrade": false
                                    },
                                    {
                                            "mode": "by_family",
                                            "top": 1,
                                            "sort": ["cp"],
                                            "evolve": false,
                                            "upgrade": false
                                    },
                                    {
                                            "mode": "by_family",
                                            "names": ["vip"],
                                            "top": 3,
                                            "sort": [{"iv": 0.9}, {"ncp": 0.9}],
                                            "evolve": true,
                                            "upgrade": false
                                    },
                                    {
                                            "mode": "by_family",
                                            "names": ["my_love"]
                                    }
                            ]
                    }
            },

Output when issue occurred

[2016-09-07 18:47:44] [PokemonOptimizer] [INFO] Exchanged Magnemite [IV 0.67] [CP 179] [57 candies]
[2016-09-07 18:47:48] [PokemonOptimizer] [INFO] Exchanged Magneton [IV 0.64] [CP 551] [58 candies]
[2016-09-07 18:47:54] [PokemonOptimizer] [INFO] Exchanged Magnemite [IV 0.58] [CP 520] [59 candies]
[2016-09-07 18:48:00] [PokemonOptimizer] [INFO] Exchanged Magnemite [IV 0.56] [CP 361] [60 candies]
[2016-09-07 18:48:05] [PokemonOptimizer] [INFO] Exchanged Magnemite [IV 0.53] [CP 197] [61 candies]
[2016-09-07 18:48:10] [PokemonOptimizer] [INFO] Exchanged Magnemite [IV 0.38] [CP 451] [62 candies]

Steps to Reproduce

NA

Other Information

OS:
Linux
Branch:
master
Git Commit:
d4addb0
Python Version:
Python 2.7.6
Any other relevant files/configs (eg: path files)

@julienlavergne
Copy link
Contributor

Expected behavior according to your config.
Read https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/docs/pokemon_optimizer.md#keep-mode

@DaxChen
Copy link

DaxChen commented Sep 8, 2016

If you want to keep 1 for every pokemon, you should change the "by_family" to "by_pokemon"

@liejuntao001
Copy link
Author

Thanks, so I didn't understand the meaning of "family". It would be nice to have a glossary to help new guys.

@deception83
Copy link

For example the family includes all 3 evolution for charmander. So when you config optimizer to evaluate the "by_family" of charmander, the optimizer will evaluate all 3 evolutions.

If you use "by_pokemon" for charmander, the optimizer will only evaluate the pokemon with the name of charmander only.

@julienlavergne
Copy link
Contributor

I will add what it means in the doc.

@julienlavergne
Copy link
Contributor

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants