Skip to main content

A library for converting Breath of the Wild Havok packfiles to JSON and back

Project description

botw_havok

A library for converting Breath of the Wild Havok packfiles to JSON and back.

The main purpose of this library is deserializing Havok packfiles into a universal JSON file that can be converted to both Wii U and Switch packfiles.

Here's an example of HKX -> JSON conversion:

from botw_havok import Havok

hk = Havok.from_file('A-1-0.hksc')
hk.to_json('A-1-0.json')

Here's an example of JSON -> HKX conversion:

from botw_havok import Havok

hk = Havok.from_json('A-1-0.json')
hk.to_switch() # or hk.to_wiiu()
hk.to_file('A-1-0.hksc')

At the moment, only Havok Physics files (.hksc, .hkrb, .hktmrb) work. All of them should deserialize and serialize flawlessly and should be nearly identical to the originals (except the pointer section ordering which should be irrelevant).

The library is currently highly experimental, so expect bugs!

It's also really messy. Forgive me.

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

botw_havok-0.1.4.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

botw_havok-0.1.4-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

Details for the file botw_havok-0.1.4.tar.gz.

File metadata

  • Download URL: botw_havok-0.1.4.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for botw_havok-0.1.4.tar.gz
Algorithm Hash digest
SHA256 40d94477becf86ccb39a9cadbf8923e93f0239503020a7179d6a105e98b7ddff
MD5 a7bb5d69ceae580fcfe357187aac0db7
BLAKE2b-256 a2fb8a5da11d26c17ebaee8c0c54bdce87987efdd237dc04352b0c9806e67722

See more details on using hashes here.

File details

Details for the file botw_havok-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: botw_havok-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 73.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for botw_havok-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 18ddc3700401da1d2f67dfa8feccc453226b77ecf12298c986d6fefd792d0838
MD5 8c4a77603f8bc42499cc1400b53485fd
BLAKE2b-256 fda1eb6b0ab241ae6098ceeb22ce480792b6a016f4c547a6c28536ddf57a39eb

See more details on using hashes here.

Supported by

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