Extract and modify game data structures (armor, weapons, quests, shop prices).
- Automatically handles encrypted (ECD/EXF) and compressed (JPK) files
- Exports to CSV in UTF-8 with BOM (easy editing in Excel/text editors)
- Auto-detects CSV encoding when importing (supports both UTF-8 and Shift-JIS)
- Supports importing modified data back into game files
Export all game data to CSV files:
./FrontierDataTool --dump --suffix demo --mhfpac mhfpac.bin --mhfdat mhfdat.bin --mhfinf mhfinf.binGenerates:
Armor.csv- Armor dataMelee.csv- Melee weapon dataRanged.csv- Ranged weapon dataInfQuests.csv- Quest datamhsx_[type]_demo.txt- Various data files
Import modified CSV data back into game files. The CSV type is auto-detected from the filename.
./FrontierDataTool --import --csv Armor.csv --mhfdat mhfdat.bin --mhfpac mhfpac.bin./FrontierDataTool --import --csv Melee.csv --mhfdat mhfdat.bin./FrontierDataTool --import --csv Ranged.csv --mhfdat mhfdat.bin./FrontierDataTool --import --csv InfQuests.csv --mhfinf mhfinf.binNote: Quest text fields (Title, TextMain, TextSubA, TextSubB) are read-only and cannot be modified through CSV import.
Output is written to the output/ directory.
Adjust shop prices in mhfdat.bin (buy price / 50, sell price * 5):
./FrontierDataTool --modshop --mhfdat mhfdat.bin| CSV File | Required Files |
|---|---|
Armor.csv |
--mhfdat, --mhfpac |
Melee.csv |
--mhfdat |
Ranged.csv |
--mhfdat |
InfQuests.csv |
--mhfinf |
| Option | Description |
|---|---|
--dump |
Export game data to CSV |
--import |
Import CSV data back into game files |
--modshop |
Modify shop prices |
--suffix <name> |
Suffix for output files (required for --dump) |
--csv <file> |
CSV file path (required for --import) |
--mhfdat <file> |
Path to mhfdat.bin |
--mhfpac <file> |
Path to mhfpac.bin |
--mhfinf <file> |
Path to mhfinf.bin |
--shift-jis |
Output CSV in Shift-JIS encoding (default: UTF-8 with BOM) |
--help |
Show help |
By default, CSV files are written in UTF-8 with BOM for easier editing in Excel and text editors.
When reading CSV files (for --import), the encoding is auto-detected:
- Files starting with UTF-8 BOM (
EF BB BF) are read as UTF-8 - Other files are read as Shift-JIS (legacy format)
Use --shift-jis to output CSV files in Shift-JIS encoding for compatibility with older workflows.