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

Infinite loop with lured_pokemon_found and catch_above_iv #4008

Closed
jrgutier opened this issue Aug 15, 2016 · 8 comments
Closed

Infinite loop with lured_pokemon_found and catch_above_iv #4008

jrgutier opened this issue Aug 15, 2016 · 8 comments

Comments

@jrgutier
Copy link

jrgutier commented Aug 15, 2016

If I have any capture filter set (i.e. catch_above_iv), and it will keep trying to catch the lured pokemon that doesn't match the filter without moving away from said forts. Might need some way to signify that the pokemon have already been blacklisted, stop trying to catch them, and to move on to the next fort.

I was able to work around it by placing the MoveToFort and FollowSpiral tasks before the CatchLuredPokemon task.

2016-08-15 11:40:41,720 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:43,454 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:43,454 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:45,238 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:45,238 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:49,135 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:49,135 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:50,671 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:50,671 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:52,133 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:52,133 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:54,252 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:54,252 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:55,938 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:55,938 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:40:57,409 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:40:57,409 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:00,796 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:00,796 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:02,411 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:02,411 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:04,131 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:04,132 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:06,049 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:06,050 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:08,046 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:08,046 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:09,678 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:09,678 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:11,435 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:11,435 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:13,873 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:13,873 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:15,547 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:15,547 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:16,991 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:16,991 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:18,651 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:18,651 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:20,374 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:20,374 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:23,195 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:23,195 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:24,822 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:24,822 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)
2016-08-15 11:41:26,715 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Castagnola's (680dc1c30b8746e7820ed1f655cbadb7.16)
2016-08-15 11:41:26,715 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Joe's Crab Shack (6aefdc1391664e7f825315c5ddbc08f3.16)

@jrgutier
Copy link
Author

This might be actually in interaction with "lure_attraction": true and the filter. I disabled lure_attraction and everything seems to be working now.

@z4ppy
Copy link
Contributor

z4ppy commented Aug 15, 2016

Setting lure_attration to false only reduce the bug occurence.

The bug is the interaction beetween pokemon_catch_worker and catch_*_pokemon. Because catcher will try to catch the nearest no wanted pokemon meanwhile all tick.

Quick (and ugly) fix in catch_* : call catch_pokemon in the loop.

@accident12123
Copy link

i've also seen this happen using followpath or movetomappokemon as well.

it always looked like a multiple lured in range bug to me but interesting that it will work with no filter.

@jrgutier
Copy link
Author

jrgutier commented Aug 15, 2016

In move_to_map_pokemon.py, there is a caught table so you don't teleport to the same pokemon more than once. Maybe set something similar up in catch_*_pokemon.py

@k4n30 k4n30 closed this as completed Aug 16, 2016
@mjsaber
Copy link

mjsaber commented Aug 16, 2016

so what is the fix for this problem?

@k4n30
Copy link
Contributor

k4n30 commented Aug 16, 2016

Who knows with the limited information provided we are unable to assist, there is a template for a reason :(

@prusswan
Copy link

ran into this problem..it was alternating between two lured_pokemon_found

@chinkong83
Copy link

ran into this problem, too... I use followpath

@PokemonGoF PokemonGoF locked and limited conversation to collaborators Aug 19, 2016
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

7 participants