ProTanki Utilities

A bunch of utilities for ProTanki.

packet-log.patch.txt

Patch (manual applying via JPEXS Free Flash Decompiler) to log incoming and outgoing game packets. Log file is located at $Desktop/packets.txt.

packet2map.js

Converts battle join packets to the server map file (data/maps/$name/$theme.json).

Input format:

{"resources":[...]}
{"resources":[...]}
{"resources":[...]}
{"kick_period_ms":125000,"map_id":...}

Alternative input format:

[...]
[...]
[...]
{"kick_period_ms":125000,"map_id":...}

Example usage (PowerShell):

Get-Content battle.txt | node ./packet2map.js | Set-Content map.json

strip-packets.js

Extracts resource and battle model init packets from dump.

Example usage (PowerShell):

Get-Content battle.txt | node ./strip-packets.js | node ./packet2map.js | Set-Content map.json

GitHub

View Github