I needed something to decode a .hg file, in case save editors aren't updated, or I have some other weirdly specific issue with a save.
So this is the solution 🤷
This is all very hacky and barely works. It uses a Python file by Robert Maupin to compress and decompress the save, and my own Typescript Deno code to apply the mapping and write it to the disc.
The two parts are glued together by a Windows Batch file.
To properly use this script, install python3
, then run pip install lz4
.
Drag'n'drop your save.hg file on the decode.bat
file.
Drag'n'drop your save.json file on the encode.bat
file.
- Install Deno
- Execute this command:
deno compile --allow-read --allow-write --allow-net applyMapping.ts