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: 4 months 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-01T00:16:52.000Z (4 months ago)
- Last Synced: 2025-02-01T01:20:56.925Z (4 months ago)
- Topics: gmd, mhgu, monster-hunter, monster-hunter-generations-ultimate, mt-framework
- Language: TypeScript
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
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)

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)
```