https://github.com/beeequeue/gmd
A library for parsing and serializing GMD files for the MT Framework engine
https://github.com/beeequeue/gmd
gmd mhgu monster-hunter monster-hunter-generations-ultimate mt-framework
Last synced: 27 days ago
JSON representation
A library for parsing and serializing GMD files for the MT Framework engine
- Host: GitHub
- URL: https://github.com/beeequeue/gmd
- Owner: beeequeue
- License: mit
- Created: 2025-01-26T19:23:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-01T02:53:13.000Z (about 1 month ago)
- Last Synced: 2025-10-01T04:25:28.871Z (about 1 month ago)
- Topics: gmd, mhgu, monster-hunter, monster-hunter-generations-ultimate, mt-framework
- Language: TypeScript
- Homepage:
- Size: 170 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @beequeue/gmd
[](https://www.npmjs.com/package/@beequeue/gmd)
[](https://bundlejs.com/?q=%40beequeue%2Fgmd&treeshake=%5B%7B+encodeGmd%2CdecodeGmd+%7D%5D)

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](https://github.com/onepiecefreak3/GMDConverter).
## Usage (CLI)
```sh
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.
```sh
gmd decode --output ./output path/to/files/**/*.gmd
gmd encode ./output/**/*
```
## Usage
```typescript
import { readFileSync } from "fs"
import { encodeGmd, decodeGmd } from "@beequeue/gmd"
const buffer = readFileSync("./somefile.gmd")
const json = decodeGmd(buffer)
const data = encodeGmd(json)
```