- Find skipped territory IDs
- Territory naming help
- Updating territory names
- Highlighting unnamed territories
- Cleanup SVG file (Warzone limits uploads to
2000000
bytes) - Creating bonuses (and adding territories to that bonus)
Note: requires Python to use
Feel free to create an issue if you find a bug, have a suggestion, or need clarification.
- Download the warzone-map-buddy zip or clone this repository
- Open a terminal window
- Navigate to the directory where you've downloaded warzone-map-buddy (
cd /path/to/directory
) - Install the dependencies with
pip install -r requirements.txt
Get your token here: https://www.warzone.com/API/GetAPIToken (you need to be logged in to Warzone on your browser).
More info here: https://www.warzone.com/wiki/Get_API_Token_API
warzone-map-buddy.py --highlight-unnamed="your-file.highlighted.svg" "your-file.svg"
warzone-map-buddy.py --clean="your-file.cleaned.svg" "your-file.svg"
warzone-map-buddy.py --email="[email protected]" --api-token="your-Token" --mapid=123456 --update-territory-names "your-file.svg"
Warzone doesn't support updating bonuses via their API
warzone-map-buddy.py --email="[email protected]" --api-token="your-Token" --mapid=123456 --create-bonusess "your-file.svg"
Usage:
warzone-map-buddy.py [options] <file>
warzone-map-buddy.py (-h | --help)
warzone-map-buddy.py --version
Options:
-h --help Show this screen.
--version Show version.
--update-territory-names Updates territory names by matching the id with the title (or label, if title is empty)
--create-bonuses Create bonuses (new ones will be added every time) based on groups' IDs with the label "bonus". Will take the fill colour of one of the territories inside the group.
--create-penalties Create penalties (new ones will be added every time) based on each territory in a layer called "Penalties"
--clean=<out-file> Clean up the SVG to make it lighter (for uploading)
--find-skipped-ids Find skipped territory IDs
--highlight-unnamed=<out-file> Highlight territories (with white border) without a name in their label or title
--api-token=<token> API Access Token (find yours here: https://www.warzone.com/API/GetAPIToken)
--email=<email> Your account email address
--mapid=<id> The Map ID (find it in "Link for Sharing")
--size Prints the file size in bytes
--debug Shows what arguments you ran