The contents of this repo are a proof of concept and are for educational use only
This repository contains the ProtoBuf .proto
files needed to decode the PokémonGo RPC.
- Recommend using the base Rpc
- NOTE:
compile_src.py cpp
(oldcompile.py
has a new name:compile_src.py
) works but usesPOGOProtos.Rpc.*
We are following semantic versioning for POGOProtos. Every version will be mapped to their current PokémonGo version.
Version | Base | Notes | Extra |
---|---|---|---|
2.52.4 | v0.185.0 | Obfuscated | Protocol Buffers v3.13.0 |
2.52.2 | v0.181.0 | Compatible | Protocol Buffers v3.13.0 |
If you want to figure out the current version in an automated system, use this file. .current-version Note: This file will contain pre-release versions too.
Current recommended protoc version: "Protocol Buffers v3.13.0". You can find download links here.
Be sure to add protoc
to your environmental path.
Ensure that you have the newest version of protoc
installed.
Use homebrew
to install protobuf
with brew install --devel protobuf
.
The compilation creates output specifically for the target language, i.e. respecting naming conventions, etc.
This is an example of how the generated code will be organized:
- Note: the *.desc file is auto created in this function
python compile_base.py -l cpp -1 -k:
- raw_protos.proto -> out/single_file/cpp/POGOProtos.Rpc.desc
- -> out/single_file/cpp/POGOProtos.Rpc.pb.cc
- -> out/single_file/cpp/POGOProtos.Rpc.pb.h
- -> out/single_file/cpp/POGOProtos.Rpc.proto
python compile_base.py -g -r -1
python compile_src.py cpp
[Optional --include_imports --include_source_info --generate_desc]
If you don't want to compile POGOProtos but instead use it directly, check out the following repository.
Additional resources | Source | Status |
---|---|---|
Gamemaster Json | https://github.com/pokemongo-dev-contrib/pokemongo-game-master | OK |