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

Pokemon Optimizer only running at bot start #8

Open
Koofy opened this issue Sep 14, 2016 · 4 comments
Open

Pokemon Optimizer only running at bot start #8

Koofy opened this issue Sep 14, 2016 · 4 comments

Comments

@Koofy
Copy link

Koofy commented Sep 14, 2016

Expected Behavior

the pokemon optimizer should be run periodically at least or better every time a pokemon is caught.

Actual Behavior

the pokemon optimizer is run only at bot start

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

  {
        "type": "PokemonOptimizer",
        "config": {
            "enabled": true,
            "min_slots_left": 999,
            "transfer": true,
            "transfer_wait_min": 3,
            "transfer_wait_max": 5,
            "evolve": true,
            "evolve_time": 25,
            "evolve_for_xp": true,
            "evolve_only_with_lucky_egg": false,
            "evolve_count_for_lucky_egg": 80,
            "may_use_lucky_egg": true,
            "upgrade": true,
            "upgrade_level": 60,
            "groups": {
                "gym": ["Dragonite", "Snorlax", "Lapras", "Arcanine"]
            },
            "rules": [
                {
                    "mode": "by_pokemon",
                    "top": 1,
                    "sort": ["cp", "iv"],
          "evolve": {"iv": 0.9}
                }
      ]
        }
    }

Output when issue occurred

none

Steps to Reproduce

Let a bot catch a pokemon.
the new pokemon should be evolved or transferred or replace another that should be transferred

Other Information

OS:
Mac OSX
Branch:
dev
Git Commit:
a630689
Python Version:
Python 2.7.12

Any other relevant files/configs (eg: path files)

@BrainDiable
Copy link

Try using this worker alone, and set to false the Evolve and TransferPokemon workers.
Also, check the value of "min_slots_left" in PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_optimizer.py

@julienlavergne
Copy link
Contributor

Can still post the first minute of your log when you start the bot ?

@Koofy
Copy link
Author

Koofy commented Sep 14, 2016

The evolve and transfer tasks are set to false.
the "min_slots_left" is set to 999.
Here is the beginning of the log when the optimizer start:
[2016-09-14 18:15:33] [PokemonOptimizer] [INFO] Pokemon Bag: 250/250
[2016-09-14 18:15:33] [PokemonOptimizer] [INFO] Transferring 67 Pokemon
[2016-09-14 18:15:33] [PokemonOptimizer] [INFO] Exchanged Caterpie [IV 0.4] [CP 191] [73 candies]
[2016-09-14 18:15:37] [PokemonOptimizer] [INFO] Exchanged Kakuna [IV 0.49] [CP 74] [27 candies]
[2016-09-14 18:15:42] [PokemonOptimizer] [INFO] Exchanged Kakuna [IV 0.47] [CP 28] [28 candies]
[2016-09-14 18:15:46] [PokemonOptimizer] [INFO] Exchanged Kakuna [IV 0.42] [CP 151] [29 candies]
...

The optimizer does not even start at each start of the bot :/ .

@julienlavergne
Copy link
Contributor

What's wrong with this log ?

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