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

Status code 4 #4180

Closed
trippyhat opened this issue Aug 17, 2016 · 4 comments
Closed

Status code 4 #4180

trippyhat opened this issue Aug 17, 2016 · 4 comments

Comments

@trippyhat
Copy link

trippyhat commented Aug 17, 2016

Sometimes when the bot throws a pokeball I see this:

{'status_code': 1, 'unknown6': [{'unknown2': {'unknown1': 1L}, 'response_type': 6}], 'responses': {'CATCH_POKEMON': {'status': 4}}, 'request_id': xxxxxxxx }

What does this mean?

I changed the hit_pokemon=0.60 in the catch_pokemon request.

@Gregwar
Copy link

Gregwar commented Aug 17, 2016

I think 4 means you missed the pokemon
IMO hit pokemon is just a binary flag that tell the server if your pokeball touched the pokemon

@trippyhat
Copy link
Author

@Gregwar What is the difference between status 2 and status 4?

@DeXtroTip
Copy link
Contributor

@trippyhat Status 2 means pokemon escaped from pokeball and status 4 means the pokeball didn't hit the pokemon.
There's a PR about this (#4107), that gives a probability of missing the pokemon purpose.

@Gregwar
Copy link

Gregwar commented Aug 17, 2016

Status 2 means that the pokemon escaped the pokeball, this is decided server side
Status 4 means that your pokeball missed the pokeball, which is actually a choice made on the client side (your app do the odd collision test and tell the server 0 or 1)
This is how I understand it

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