Anyway i found the working CLI to decrypt and encrypt the files
name=filename without extension
Decrypt
Code: Select all
phxtool.exe --env=phx --tool=era --mode=decrypt --path="c:\game\halo" --out="c:\game\halo" --name=root
Encrypt
Code: Select all
phxtool.exe --env=phx --tool=era --mode=encrypt --path="c:\game\halo" --out="c:\game\halo" --name=root
Aluigi posted time ago some documentation about the Halo packets
http://aluigi.altervista.org/papers.htm#halo
The question if it is possible to create a bms just to decrypt/encrypt the data, not decompress or unpack, looking the source code of the PhxTools, i found a file in HaloWarsDocs\PhxTools\Games/Phoenix\KSoft.Phoenix\Resource\ERA\EraFileUtil.cs where explains the encryption used in the era format.
The source code must be donwload with the --recursive parameter
Code: Select all
git clone --recursive https://github.com/HaloMods/HaloWarsDocs.git
I attach the source code downloaded with git (recursive)