The file system should be order like this
└── versions
├── latest-version.txt
├── 0.57.1
│ ├── GAME_MASTER.json
│ └── GAME_MASTER.protobuf
├── 0.57.2
│ ├── GAME_MASTER.json
│ └── GAME_MASTER.protobuf
└── latest
├── GAME_MASTER.json
└── GAME_MASTER.protobuf
- Copy the latest protobuf file into versions/latest directory and rename it to
GAME_MASTER.protobuf
- See Generating a new json file
- Add a folder, named like the latest version (e.g.
0.57.3-1
). For consistency, append a numeric update number to account for future game master updates in a single version - Copy the GAME_MASTER.protobuf and GAME_MASTER.json into the folder (Now your protobuf file should exist 2 times in the project)
- Update latest version in
versions/latest-version.txt
- Create pull request
- Add a folder, named like the version (e.g.
0.57.3-1
) - Copy the protobuf file into the new folder and rename it to
GAME_MASTER.protobuf
- See Generating a new json file step 3
- Create pull request
- Copy a protobuf file to the latest directory
- Gamemaster file can be found on android devices at [internal storage OR sd card]/Android/data/com.ninaticlabs.pokemongo/files/remote_config_cache
- Build and run the json converter (requires java and maven)
mvn package
- or using docker
- WINDOWS:
docker run -it --rm --name my-maven-project -v "C:%HOMEPATH%\.m2":/root/.m2 -v "%cd%":/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn clean package exec:java -Dexec.mainClass="com.pokebattler.gamemaster.GenerateJSON" -Dexec.args="versions/latest/GAME_MASTER.protobuf versions/latest/GAME_MASTER.json"
- WINDOWS POWERSHELL: Same as above but you will need to put in the full path to your home directory for %HOMEPATH% and current dirrectory fo %cd%
- *NIX:
docker run -it --rm --name my-maven-project -v "$HOME/.m2":/root/.m2 -v
pwd:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn clean package exec:java -Dexec.mainClass="com.pokebattler.gamemaster.GenerateJSON" -Dexec.args="versions/latest/GAME_MASTER.protobuf versions/latest/GAME_MASTER.json"
- WINDOWS:
- (Optional) Generate the file manually
- WINDOWS:
java -cp target\pokemongo-game-master-2.22.0.jar com.pokebattler.gamemaster.GenerateJSON versions\latest\GAME_MASTER.protobuf versions\latest\GAME_MASTER.json
- *NIX:
java -cp target/pokemongo-game-master-2.22.0.jar com.pokebattler.gamemaster.GenerateJSON versions/latest/GAME_MASTER.protobuf versions/latest/GAME_MASTER.json