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

Make catching Pokemon faster

Open Agusum opened this issue 10 years ago • 12 comments

Expected Behavior

Catching Pokemon should be faster.

Actual Behavior

The time it takes to catch a Pokemon is very high. As a comparison, the bot from https://github.com/TomTheBotter/Pokemon-Go-Bot-Working-Hack-API catches around 14 Pokemon per minute whilst this bot only does around 3-4.

Steps to Reproduce

Changing the walk speed only speeds up the time it takes to get from one Pokestop to another but the actual Pokemon catching in between is very slow.

Other Information

OS: Ubuntu 16.04.1 LTS Git Commit: 32cefeed4760d6b5d2b3eb76d783d0f13d068e83

Agusum avatar Jul 25 '16 22:07 Agusum

I think its intentionally slower to appear more human.

leadboots5 avatar Jul 25 '16 22:07 leadboots5

probably cause of #485

skydrome avatar Jul 25 '16 22:07 skydrome

would rather it not catch all pokemon instantly as we try to improve humanization of the bot and not make it more robotic.

RiberoD07 avatar Jul 26 '16 00:07 RiberoD07

There are 2 reasons why that bot catches more :

  • It walks in way bigger steps (actually does more of a teleport than walking, pretty risky)
  • It checks for pokemons from lures - we should implement that, too

glenncampioni avatar Jul 26 '16 00:07 glenncampioni

+1 on checking pokemons from lures!

TCB13 avatar Jul 26 '16 03:07 TCB13

+1 on checking pokemons from lures!

bimahp avatar Jul 26 '16 06:07 bimahp

some hints: api.fort_search() pokemon at lures -> name='active_pokemon_id', full_name='POGOProtos.Map.Fort.FortLureInfo.active_pokemon_id' pokemon in the wild -> name='pokemon_id', full_name='POGOProtos.Data.PokemonData.pokemon_id'

just another data field to check, shouldnt be hard

if 'lure_info' in fort: send to worker

same way you use for pokemon in cell['catchable_pokemons']:

skydrome avatar Jul 26 '16 08:07 skydrome

Working on it now.

glenncampioni avatar Jul 26 '16 09:07 glenncampioni

Implemented catching pokemon from lures : https://github.com/PokemonGoF/PokemonGo-Bot/pull/1009

glenncampioni avatar Jul 26 '16 15:07 glenncampioni

Great to hear that the lure bug is being fixed!

However, my initial request was around speeding up certain actions from catching the Pokemon itself. Things like: throwing the Pokeball right away and not waiting any time between one Pokemon and the next.

I agree that this behaviour might get banned eventually by Niantic but it is not the case right now so at least an option to use this "fast capture mode" could be implemented.

Agusum avatar Jul 26 '16 18:07 Agusum

Well, if someone would want to implement it, it would be very simple. All pauses use the sleep method from HumanBehaviour.

A simple check could be added there to skip the wait.

If you want to add it in your code right away, just change : def sleep(seconds, delta=0.3): return <-- add this jitter = ceil(delta * seconds) in pokemongo_bot/human_behaviour.py

glenncampioni avatar Jul 26 '16 19:07 glenncampioni

This issue has been resolved.

/closed

AdaptCharm avatar Jul 28 '16 22:07 AdaptCharm