News for hackers. Stuff that matters.
Re:Pokemon Go API by airplane on Sunday July 24, 2016 @04:10AM (#12152683)
I saw in the examples you can catch Pokemon with this API, does that method give you an automatic excellent throw every time then?

Also, does this API depend on running on Android?

Re:Pokemon Go API by 2bitencryption on Sunday July 24, 2016 @04:45AM (#12152745)
Interesting point.

Most of the important stuff is certainly done server-side, like determining whether a Pokemon appears at coordinates x,y or not (though my guess is the client is tasked with this, and then says "Hey server, I'm showing there should be a Pidgey at x,y, I'm gonna try to catch it." The server confirms by running the exact same deterministic check on x,y, then says "Yep, I see it too," or "No, you're a filthy liar, Joey.")

But for the actual "I caught it" or "I missed it," unless the exact user input is sent to the server, and then the server simulates the projected path of the throw, the client seems like it gets to say that. So perhaps the client could actually say "I hit it perfectly," and the server just says "Well if you say so."

Re:Pokemon Go API by uryga on Sunday July 24, 2016 @06:48AM (#12152975)
I've seen the app load something (and hang up while doing that) between pokeball throws. That seems like evidence that it's asking the server about something after each throw / once every n throws.

Checking if a throw resulted in a capture server-side would be weird, I don't see why it couldn't be done on the client. It could be querying for the players inventory, to see if they have enough pokeballs? It'd still be better to just sync that once before the fight...

My best guess is, the conditions for a Pokemon running away involve something only the server knows. A weak example: maybe it considers other players in the area - pokemon might be more likely to run away if the area is too crowded? So every once in a while the client asks the server how many players are there nearby, or something.

Re:Pokemon Go API by _asummers on Sunday July 24, 2016 @09:23AM (#12153226)
I've noticed higher CP pokemon tend to run away more quickly. You also have to remember that there's now great balls and razz berries to influence throw chances, so the client probably publishes the events it's doing (gave a razz berry, threw a pokeball, threw a greatball) and the server creates some randomness that says yes/no.
Re:Pokemon Go API by uryga on Sunday July 24, 2016 @01:37PM (#12153981)
That "randomness generating" still seems like it would be easily done locally, and it'd reduce server load. But maybe there's some more advanced mechanisms we don't know of.
Re:Pokemon Go API by corobo on Monday July 25, 2016 @10:22AM (#12158851)
if it's done locally then people will bodge the client so the random is no longer random. The server's always going to have to do the math, even if to just ensure the client's not lying.
Re:Pokemon Go API by pbhjpbhj on Sunday July 24, 2016 @03:08PM (#12154362)
>Checking if a throw resulted in a capture server-side would be weird, I don't see why it couldn't be done on the client. //

It locks up [server access icon spins] a lot on the point at which the ball closes and the game is deciding whether to capture or release the pokemon (what's the heuristic there?), often crashes at that point to.

I wouldn't be surprised if this is because it's sending the whole of the swipe data to the server. Surely it doesn't need to check if there are pokeballs available, when your client says "gotcha" then the server will have record of if there were balls available or not.

Re:Pokemon Go API by curiousgal on Sunday July 24, 2016 @04:32AM (#12152717)
To answer your first question, yes you can configure everything; type of ball used, whether the throw is curved or not and the "excellence" of the throw. No one gets excellents throws all the time so I think it's easily detectable and hence bannable.

I don't know about the second question.

Re:Pokemon Go API by 2bitencryption on Sunday July 24, 2016 @04:46AM (#12152747)
Type of ball huh? So the server doesn't even check to make sure you actually have that type of ball in stock? Interesting.
Re:Pokemon Go API by curiousgal on Sunday July 24, 2016 @05:06AM (#12152785)
I am not sure about the check. I haven't tried a ball type that isn't in my inventory so I'll have to get back to you on that.
Re:Pokemon Go API by sleepychu on Sunday July 24, 2016 @07:04AM (#12153003)
-1 Master Balls