Skip to content

NMSCD/NMS-Save-Decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMS-Save-Decoder

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.

Usage

To properly use this script, install python3, then run pip install lz4.

Decoding a Save

Drag'n'drop your save.hg file on the decode.bat file.

Encoding a Save

Drag'n'drop your save.json file on the encode.bat file.

Build the TS Part from Source

  1. Install Deno
  2. Execute this command:
deno compile --allow-read --allow-write --allow-net applyMapping.ts