Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Resolved issue #110, int64 is correct #126

Merged
merged 3 commits into from
Aug 4, 2016
Merged

Resolved issue #110, int64 is correct #126

merged 3 commits into from
Aug 4, 2016

Conversation

BornSupercharged
Copy link
Contributor

No description provided.

@rubenvereecken
Copy link
Contributor

Dammit. I've never investigated this myself but I keep seeing back-and-forts PRs. Are some protobuf implementations simply not unpacking the data correctly?

Yo @Grover-c13 step in and check it out. Also #110

@Grover-c13
Copy link
Contributor

can not get it working with fixed64 in java. It is strange that most work with fixed64 except for this one for java. i assume youre using PHP simplyphp?

@csnewman
Copy link

csnewman commented Aug 3, 2016

The data type might not be either of these two. Protobuf is designed that you can swop out certain types for others and it will try its best.

From https://developers.google.com/protocol-buffers/docs/proto#updating
int32, uint32, int64, uint64, and bool are all compatible
fixed32 is compatible with sfixed32, and fixed64 with sfixed6

So it could actutally be one of these other types and protobuf is just casting. Has anyone tried the other compatible types?

@Grover-c13
Copy link
Contributor

Grover-c13 commented Aug 3, 2016

You may be right, i was just checking the original master game file leak (http://pastebin.com/SBdB0VPL) and for some reason its marked as int64 instead of uint64 like most other protos (there is one other exception marked as int64 and thats EggIncubatorProto).

Tested on java and working as normal int64, can you confirm when you get the chance @SimplyPHP

@BornSupercharged
Copy link
Contributor Author

I'm using C#, the current value uint64 does not work.

@Grover-c13
Copy link
Contributor

Please try int64

@Grover-c13
Copy link
Contributor

Just to clarify, in the proto definition :P

@BornSupercharged
Copy link
Contributor Author

Right, this will take me a few minutes

@BornSupercharged
Copy link
Contributor Author

Resolved with int64.

@BornSupercharged
Copy link
Contributor Author

Updated my commit.

@Grover-c13
Copy link
Contributor

Awesome, mystery solved. please comment it though with a link to this PR or something so people know not to change it.

@rubenvereecken

@BornSupercharged
Copy link
Contributor Author

Done

@BornSupercharged BornSupercharged changed the title Resolved issue #110, fixed64 is used in all other files for pokemon_id Resolved issue #110, int64 is correct Aug 3, 2016
@rubenvereecken
Copy link
Contributor

Eh alright so we're flying with signed integers now? Sure. Happily awaiting your next PR.

@rubenvereecken rubenvereecken merged commit 3422bbf into AeonLucid:master Aug 4, 2016
@dmadisetti
Copy link
Contributor

Suspiciously not signed rubenvereecken/pokemongo-api#93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants