一个用于解密/加密《In Falsus》部分资源文件的工具。
当前支持版本:试玩版 V0.2.2 - [c56e1d111]
依赖:pip install cryptography
用于解密或加密游戏资源文件,支持单个文件或批量处理。
mode:必需,操作模式,必须为decrypt(解密)或encrypt(加密)。input:必需,输入文件或目录路径。output:必需,输出文件或目录路径。--batch:可选标志,启用批量处理模式。当指定此标志时,input和output应视为目录。
- 解密单个文件:
python decrypt.py decrypt encrypted.file decrypted.file
- 批量解密目录中的所有文件:
python decrypt.py decrypt ./encrypted_folder ./decrypted_folder --batch
- 加密单个文件:
python decrypt.py encrypt decrypted.file encrypted.file
用于将解密后的文件(以 GUID 命名)重命名为游戏原本的资源路径。需要预先准备的映射文件。
input_dir:必需,解密文件所在的目录(例如./output)。--mappings:映射文件路径。默认值为mappings.txt。
python rename_assets.py ./output --mappings mappings.txt