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.
HKX -> JSON conversion:
from botw_havok import Havok
hk = Havok.from_file('A-1-0.hksc')
hk.deserialize()
hk.to_json('A-1-0.json', pretty_print=True)
JSON -> HKX conversion:
from botw_havok import Havok
hk = Havok.from_json('A-1-0.json')
hk.to_switch() # or hk.to_wiiu()
hk.serialize()
hk.to_file('A-1-0.hksc')
The library also comes with two commands: hk_to_json
and json_to_hk
You can learn how to use them by appending --help
flag
At the moment, only Havok Physics files (.hksc, .hkrb, .hktmrb) work. Most 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for botw_havok-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c897f8010402b6d97972160477b2dbfb6a2fe1c3169354343f37985119f1e9c4 |
|
MD5 | 590cac937335cb463497f47cc7597d6d |
|
BLAKE2b-256 | 691737792d6a7de9afcf636fd1fbf1ffc48bcb6e545a789cf0e0d96cb88fdc5e |