Python package for extracting Houkai Gakuen 2 assets data
Project description
About
hg2-data-extractor is a Python package for downloading, decrypting and extracting Houkai Gakuen 2 unity text assets data
Installation
From PyPi
pip install hg2-data-extractor
Usage
To get help, type --help with any command or even package
Download
To download data_all file use:
hg2-data-extractor download server version # Downloads to ./data_all/
hg2-data-extractor download server version path/to/dir # Downloads to path/to/dir
Where server must be JP or CN and version must be a valid game version (e.g 11_1 or 9.8)
Decrypt
To decrypt downloaded data_all file use:
hg2-data-extractor decrypt # Decrypts ./data_all/data_all.unity3d to ./data_all/data_all_dec.unity3d
hg2-data-extractor decrypt path/to/file.unity3d # Decrypts file.unity3d to ./data_all/data_all_dec.unity3d
hg2-data-extractor decrypt path/to/file1.unity3d path/to/file2.unity3d # Decrypts file1.unity3d to file2.unity3d
Extract
To extract text assets data from data_all_dec use:
hg2-data-extractor extract # Extracts all ItemData assets from ./data_all/data_all_dec.unity3d to ./extracted/
hg2-data-extractor extract AssetName1,AssetName2 # Extracts AssetName1,AssetName2 from ./data_all/data_all_dec.unity3d to ./extracted/
hg2-data-extractor extract AssetName1,AssetName2 path/to/dir # Extracts AssetName1,AssetName2 from ./data_all/data_all_dec.unity3d to path/to/dir
hg2-data-extractor extract AssetName1,AssetName2 path/to/dir path/to/data_all_dec.unity3d # Extracts AssetName1,AssetName2 from data_all_dec.unity3d to path/to/dir
List
To create file with all valid asset names in data_all_dec use:
hg2-data-extractor lst # Writes from ./data_all/data_all_dec.unity3d to ./extracted/asset_names.txt
hg2-data-extractor lst path/to/file.txt # Writes from ./data_all/data_all_dec.unity3d to file.txt
hg2-data-extractor lst path/to/file.txt path/to/data_all_dec.unity3d # Writes from data_all_dec.unity3d to file.txt
Credits
This project is a copied and modified version of hg2-downloader project authored by BLUEALiCE
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hg2_data_extractor-0.4.0.tar.gz.
File metadata
- Download URL: hg2_data_extractor-0.4.0.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d122366df68938b8218bb2c095587be75184071dcd8697d32bf67d7d2220f157
|
|
| MD5 |
ff55e2715e9bb8836480689e2a532e6e
|
|
| BLAKE2b-256 |
1d29ab929036e0effe7b46f7386ef3387a6dd23a1814852e7fb3b0612632a107
|
File details
Details for the file hg2_data_extractor-0.4.0-py3-none-any.whl.
File metadata
- Download URL: hg2_data_extractor-0.4.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6014b8c4b4dc45d2379fe1422a746c09278c58bb6d908d36ddf8d63d89aa7908
|
|
| MD5 |
454a602d5bade50d34e6ec23e9aaacff
|
|
| BLAKE2b-256 |
05d26ca779b1e400a3ba9dd74a037a655e3eed495baef44ff93a45ff8a496be0
|