Skip to content
/ gmd Public

A library for parsing and serializing GMD files for the MT Framework engine

License

Notifications You must be signed in to change notification settings

beeequeue/gmd

Repository files navigation

@beequeue/gmd

npm npm bundle size node-current

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.

Usage (CLI)

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/**/*

Usage

import { readFileSync } from "fs"
import { encodeGmd, decodeGmd } from "@beequeue/gmd"

const buffer = readFileSync("./somefile.gmd")
const json = decodeGmd(buffer)
const data = encodeGmd(json)