Home - n0k0m3/DALSP-Assets-Decryption-tool GitHub Wiki
Decrypt assets for the game
- Python 3.6 or 3.7 (other versions are untested but minimum is Python 3+)
- pip modules
lz4-python
,Pillow
,tex2img
:pip install -r requirements.txt
This tool can decrypt/unpack following assets automatically:
- Text assets (lua,json,etc.)
- Audio/video assets (mp3,mp4)
- PNGs assets (Live2D textures,Spine sprites, PVR textures)
> python main.py -h
Date A Live: Spirit Pledge Assets Decryption tool
Decrypt all assets in source directory and save in destination directory
Usage: main.py -i INPUT -o OUTPUT [options]
Options:
-h, --help show this help message and exit
-i "INPUT", --input="INPUT"
Encrypted Data Source (folder/file)
-o "OUTPUT", --output="OUTPUT"
Decrypted Data Destination (MUST BE A FOLDER)
-v, --verbose Print debugging messages to debug.log
Decryption Options:
Some useful decryption options.
-k, --keepPVR Keep PVR assets after unpack (Recommended for
debugging)
-w, --overwrite Overwrite assets even if decrypted assets exist at
destination
Encryption Options:
Currently in testing. NOTE: For encryption mode PCM, you can
explicitly set hex XOR value (4th byte of the original file) by "-m
pcm,<xor_hex>" to produce identical result. However, this is not
needed in the whole decryption scheme in the game
-e, --encryption Enable encryption mode
-m "MODE", --mode="MODE"
Encryption mode (ZIP,LZ4,PCM), case-insensitive
Directory decryption mode, overwrite, unpack PVR but not keeping file, log to debug.log
python main.py -i example -o example_out -w -v
Single file decryption mode, overwrite, unpack PVR and keeping file
python main.py -i example/icon-gift/531009.png -o example/icon-gift -w -k
Single file encryption, PCM mode with 0x4C as XOR variable (not specified means random) (Not in development)
python main.py -i python main.py -i example_dec/video/cap2.mp4 -o example_dec_enc -v -e -m pcm,4c