Skip to content

Comments

Fixing evolve worker being skipped problem#1469

Closed
vicch wants to merge 1 commit intoPokemonGoF:devfrom
vicch:dev
Closed

Fixing evolve worker being skipped problem#1469
vicch wants to merge 1 commit intoPokemonGoF:devfrom
vicch:dev

Conversation

@vicch
Copy link

@vicch vicch commented Jul 28, 2016

Short Description:
EvolveAllWorker._should_run() logic was wrong, causing evolve worker not running at startup.

Fixes:

  • Fixed EvolveAllWorker._should_run()

@vicch
Copy link
Author

vicch commented Jul 28, 2016

Should be able to solve #1335 , #1339 , #1456

@vicch
Copy link
Author

vicch commented Jul 28, 2016

There is a sleep(), but the last time I tried, it didn't seem to be working. No idea. This could be a whole other issue.
https://github.com/vicch/PokemonGo-Bot/blob/b13da71f428cf64904f0a6ee4d250387ee5b9063/pokemongo_bot/cell_workers/evolve_all_worker.py#L165

@douglascamata
Copy link
Member

tests, please.

@stefansaraev
Copy link

stefansaraev commented Jul 28, 2016

works fine for me (EDIT: just testing evolve, not using lucky eggs here).

@thomaswelton
Copy link

Doesn't work. When set to use a luck egg the lucky egg is applied but the evloves are skipped.
I had to update the config so lucky egg was false then restart so it evolved.
Also there is no code that checks to see if a luck egg is already applied. If the bot is restarted and a luck egg is active then the evolves should run.

@thomaswelton
Copy link

That being said thanks for the pull request, it allowed me to evolve all the the 200 pidgeys I had collected previously for and allowed me to level up

@vicch
Copy link
Author

vicch commented Jul 28, 2016

@thomaswelton 200! That's pretty aggressive. You are welcome. Batch evolving is indeed vital for quick leveling. Hope this could get completely fixed soon.

if not use_lucky_egg: # If not using lucky eggs, skipping checks below
return True

if lucky_egg_count > 0:
Copy link
Contributor

@codybaldwin codybaldwin Jul 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will attempt to use a lucky egg every tick when the use_lucky_egg config is True

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose yes, if you set "use_lucky_egg": true and you actually have lucky eggs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so every 30 mins it will use a lucky egg. This doesn't seem ideal. Not only that, currently it will send the API request every second (technically tick) which is not good at all.

@vicch
Copy link
Author

vicch commented Jul 29, 2016

Already fixed and merged in #1541

@vicch vicch closed this Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants