Skip to main content

Unpack World of Warships game params to JSON

Project description

WoWsUnpack

License

Based on EdibleBug/WoWS-GameParams, this fork uses wowsunpack.exe to extract GameParams.data before unpacking to GameParams.json.

wowsunpack.exe is provided by WARGAMING.NET.

中文版本

Optional features

  • Decode game languages
  • Unpack game maps
  • Unpack game icons
  • Pack game assets

Setup

  • Use Python 3 and python3 -m venv .env to create a virtual environment
  • Install dependencies with pip install -r requirements.txt
  • Run python3 run.py
  • Paste the game path into game.path
  • Run python3 run.py again to unpack

Use without Python

  • Download the latest binary
  • Double click on unpack.exe
  • Paste the game path into game.path
  • Double click on unpack.exe again to unpack

Windows may scan unpack.exe only for the first time. The binary is built with pyinstaller. WoWsUnpack is not responsible for anything if pyinstaller injects any malicious code while generating the binary. Please use the binary at your own risk.

Arguments

  • --lang: Decode game languages
  • --maps: Unpack game maps
  • --icons: Unpack all game icons
  • --assets: Pack game assets into folders

Any other arguments are not valid. The program will exit with error code 1. Call the program like ./unpack.exe --lang from the terminal. Double clicking will not pass in any arguments.

Building

  • Run build_exe.py to build the binary, and it will be placed in dist/ ready to go
  • Run python3 -m build to build the package, and it will also be placed in dist/
    • Install it locally with pip install wowsunpack --find-links=dist

Publishing

  • Check with twine check dist/*
  • Upload to TestPyPI before publishing it twine upload -r testpypi dist/*
    • Install with pip install wowsunpack -i https://testpypi.python.org/pypi
  • Publish it with twine upload dist/*

World of Warships GameParams to JSON

License

Legal Notice and License

I acknowledge and agree to the rights and Terms of Use (ToS) provided by Wargaming.net (WG). Any users wishing to use the code or WoWSFT must also acknowledge and agree to the rights and ToS underlined by WG. I am not held responsible for any issues or problems that may occur related to using WoWSFT and/or provided codes.

Any codes and materials created by me are under MIT License.

Instruction

  1. Use Python 3.
  2. Legacy folder is outdated, do not use.
  3. Extract GameParams.data into same folder.
    • OneFileToRuleThemAll.py
      • Extracts into a huge JSON file with everything included. This file is not intended for reading.
    • OneFileToSplitThemAll.py
      • Splits into many JSON files, with file name as key and value as content.
      • Example folder/file structure
        __ root
          |__ sub
             |__ 0
                |__ Ability
                |  |__ PCY001_CrashCrew.json
                |  |__ ...
                |__ Achievement
                |  |__ PCH001_DoubleKill.json
                |  |__ ...
                |__ ...
        

Original codes from XeNTax forum, modified a while ago due to incompatibility with data.

GameParams2Json referenced when refactoring code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wowsunpack-0.1.9.tar.gz (254.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wowsunpack-0.1.9-py3-none-any.whl (253.8 kB view details)

Uploaded Python 3

File details

Details for the file wowsunpack-0.1.9.tar.gz.

File metadata

  • Download URL: wowsunpack-0.1.9.tar.gz
  • Upload date:
  • Size: 254.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for wowsunpack-0.1.9.tar.gz
Algorithm Hash digest
SHA256 6ed7b9abeb83745b68decb615ba0dc1fb6f3a9b2a033eb08a5ac8fea8d7ea433
MD5 9be169a5b7f571f3bfa0f080567840aa
BLAKE2b-256 221d70531d7f820b27de83c3655fe11ace9e4d829de3cd4489ae7e9d5e1b34b0

See more details on using hashes here.

File details

Details for the file wowsunpack-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: wowsunpack-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 253.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for wowsunpack-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9239c1d730ae1a840d017e776d928ddf381b1d14c2e79054f1462832afd2478f
MD5 34c48c4c5ddc52d29316776fccd34421
BLAKE2b-256 b5941d765cd9f031d4de76d19902549ca4a0c127d75f9bf89234f19c8bdf894f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page