Skip to main content

A toolbox to work with League of Legends game files

Project description

CommunityDragon Toolbox

A toolbox to work with League of Legends game files and export files for CDragon. It can be used as a library or a command-line tool.

Most things are discussed on our Discord server. Feel free to join!

Install

pip3 install cdtb

Windows users: if needed precompiled packages of binary dependencies can be found here.

Updating hashes

Most commands require hash lists which are updated frequently and and not bundled with this code.

To download them locally from raw.communitydragon.org, run:

cdtb fetch-hashes

The command will print where they are downloaded. By default, they will land in ~/.local/share/cdragon (or %LOCALAPPDATA%/cdragon on Windows). An alternate location can be configured using the CDTB_HASHES_DIR or CDRAGON_DATA environment variables.

Hashes are versionned in the Data repository.

Command-line examples

The CLI interface allows:

  • download game files and list relations between
  • list and extract content of WAD files
  • export game files to be served by CDragon

Here are some examples, use cdtb -h for details.

# download and extract files for the latest patch to the directory `cdn`
# (files from the new patcher will be used)
cdtb -v download -s cdn patch=

# download and extract files from the PBE to the directory `cdn`
cdtb -v download -s cdn --patchline pbe patch=main

# same, but don't download language-specific files
cdtb download -s cdn --no-lang patch=

# list patch versions (using already downloaded data in `cdn/`)
cdtb versions -s cdn patch

# list game files for patch 9.9
cdtb files -s cdn game=9.9

# extract a WAD file
cdtb wad-extract path/to/assets.wad

# list content of a WAD file
cdtb wad-list path/to/assets.wad

# export files from PBE
cdtb export -s cdn --patchline pbe --full main

# export files of patch 7.23 into export/7.23 (deprecated)
cdtb export -o export 7.23

WAD files

WADs are archives used by the clients. They contain assets, game data (e.g. item description), files for the LCU interface and more.

Paths of files in WAD files are hashed, they are not stored in clear in the archive. A large number of these hashes have been guessed but there are still a lot of unresolved hashes.

An hash list is provided and regularly updated with new hashes as they are discovered, especially after client updates.

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

cdtb-1.0.0.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

cdtb-1.0.0-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file cdtb-1.0.0.tar.gz.

File metadata

  • Download URL: cdtb-1.0.0.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for cdtb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3648fd12ebdec90b5b82484d85472e0c8b4218b77c092da04ee0336da1bd3595
MD5 2a2ac37b8a35e9bf1d3b23a7d822ba13
BLAKE2b-256 41d5fe547a97f8f3d9555b2d132ce757193cd1ea27eef034f44b00d6ec9a61dc

See more details on using hashes here.

File details

Details for the file cdtb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cdtb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for cdtb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 773acbbce2bfed43c0e6df1dc6ef535e2806edbf525c38cc46280023b0f4fac9
MD5 470c5ef3879d83301a22fbf5a3b0f5bf
BLAKE2b-256 110fb9d00fa96c80013255e4d17eb16a68de6784ea316a8735f27d2fabd2f84d

See more details on using hashes here.

Supported by

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