victor-pavlychko / POGOProtos

A central repository for all proto files of PokémonGO.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POGOProtos Build Status Donate

alt text The contents of this repo are a proof of concept and are for educational use onlyalt text

This repository contains the ProtoBuf .proto files needed to decode the PokémonGo RPC.

alt text NOTE: All content of folder ./src/* except the ./src/Rpc folder is deprecated alt text

  • Recommend using the base Rpc
  • NOTE: compile_src.py cpp (old compile.py has a new name: compile_src.py) works but uses POGOProtos.Rpc.*

Versioning

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

Usage

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.

Preparation

Current recommended protoc version: "Protocol Buffers v3.13.0". You can find download links here.

Windows

Be sure to add protoc to your environmental path.

*nix

Ensure that you have the newest version of protoc installed.

OS X

Use homebrew to install protobuf with brew install --devel protobuf.

Compilation

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:

Compile last raw
  • 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

Compile src with rpc

Generate new Rpc.proto
  • python compile_base.py -g -r -1
  • python compile_src.py cpp [Optional --include_imports --include_source_info --generate_desc]

Libraries

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

Code sources initial

About

A central repository for all proto files of PokémonGO.

License:Other


Languages

Language:Python 100.0%