A library for parsing and serializing GMD files for the MT Framework engine, more specifically for Monster Hunter: Generations Ultimate.
Largely based on the work in onepiecefreak3/GMDConverter.
pnpm install -g @beequeue/gmd
gmd --help
The input can be a file, directory, or glob pattern.
By default the output will be written to the same directory as the input file.
--option
can be used to change this to a specific directory.
gmd decode --output ./output path/to/files/**/*.gmd
gmd encode ./output/**/*
import { readFileSync } from "fs"
import { encodeGmd, decodeGmd } from "@beequeue/gmd"
const buffer = readFileSync("./somefile.gmd")
const json = decodeGmd(buffer)
const data = encodeGmd(json)