-
Notifications
You must be signed in to change notification settings - Fork 278
Conversation
Do you know the range of the value? I am thinking it is something like |
Good guess! I will compare it with the km walked right after work today. |
Maybe not
@voxx at NicklasWallgren/PokemonGoAPI-PHP#142 (comment) EDIT: It definetly appears to be the total kilometers walked with that buddy, look at this: http://i.imgur.com/1bNB41A.png Look at this from the Game Master |
You are right, this is what I get for a buddy-Pokémon that has earned a candy: object(POGOProtos\Data\PokemonData)#18 (34) {
// (...)
["pokemon_id":protected]=>
object(POGOProtos\Enums\PokemonId)#19 (2) {
["value":protected]=>
int(7)
["name":protected]=>
string(8) "SQUIRTLE"
}
// (...)
["buddy_candy_awarded":protected]=>
int(1)
["buddy_total_km_walked":protected]=>
float(3)
} What bothers me / is strange is that I have a buddy with about 1.5km walked (it shows that in the App on my phone), but no candy earned yet (I'd need to walk a total of 3km). The field is empty for this Pokémon: object(POGOProtos\Data\PokemonData)#22 (34) {
// (...)
["pokemon_id":protected]=>
object(POGOProtos\Enums\PokemonId)#23 (2) {
["value":protected]=>
int(4)
["name":protected]=>
string(10) "CHARMANDER"
}
// (...)
["buddy_candy_awarded":protected]=>
NULL
["buddy_total_km_walked":protected]=>
NULL
} So, how does the App know that I already walked 1.5km? The conclusion would be the data is also somewhere else. |
Or maybe it only stores the data when you change your buddy, try to change it |
It tells me all my progress would be lost if I switched the buddy.. I checked this field in the profile response: object(POGOProtos\Data\BuddyPokemon)#24 (5) {
["unknownFieldSet":protected]=>
NULL
["extensions":protected]=>
NULL
["id":protected]=>
int(-1048968017966580097)
["start_km_walked":protected]=>
NULL
["last_km_awarded":protected]=>
NULL
} My buddy is linked (by ID), but also here no km count. If it really only stores the km once 3 is reached instead of really counting up serverside there is tamper potential here (if we were evil people 😈). |
I mean, it only stores the km walked on the pokémon data once you change the buddy, although it does not read it back when you switch the buddy again. |
if it is stored client side then if you logged into your account on a different device it should show your buddy as 0km walked right? |
Yes, it males sense, but i dont know, just guessing... |
it would also make sense due to reports of eggs & buddy distance increasing at different rates |
@RedSparr0w did you get something? About info Stored clientside Also, @DrDelay in your last post where you provided the BuddyPokemon proto data, did you move in game after setting the buddy? It can be null because you didnt move, so your km walked didnt update (remember km walked updates are not done "very" frequently) |
Please let me know if this is still relevant. |
I think this is still relevant @AeonLucid, I am still receiving the following {
1: 0x202b7a81cd7e388c
2: 7
3: 13
4: 10
5: 10
6: 221
7: 57
15: 0x3f031d25
16: 0x412663e6
17: 10
18: 10
19: 10
20: 0x3dc08312
26: 1475152263159
29: 1
30: "SquirtlePie"
32: 1
33: 0x40400000
} @vankxr, I just requested the profile again (like a month after setting it and walking 1.1km) and still get this for the
Field 33 is also not set for all of my Pokémon. I even wiped all data from the PoGo app of my phone and logged in again, the km were still there. I think we are missing something 😆. |
@DrDelay So field 33 of PokemonData is |
https://www.diffchecker.com/niL59D8q Yes, it is, and there are a few additional ones now too. See the diff above. that should give you what you're looking for I think. -voxx |
@voxx Is the right one the full 1.13.4 IOS .proto file? If so, where did you obtain it? |
It's from 0.41.x iirc, but its still relevant, There have been no protos changes since then afaik. |
It was from waryas. |
If you have a buddy-pokemon that has earned at least 1 candy this field 33 is part of the PokemonData-response.
This was found looking for a solution to NicklasWallgren/PokemonGoAPI-PHP#142.
Using either of bramp/protoc-gen-php or google/protobuf this surplus field causes an error while decoding.