A community-driven project to translate Monster Hunter Frontier game files. This is a translation setup guide, if you only want to translate game files, check the online Weblate website.
The Frontier Translation Project aims to facilitate the translation of Monster Hunter Frontier game files through a community effort. This project relies on the collaboration of users who contribute translations via Weblate, an open-source web platform.
If you only want to translate game files, you only need to register on Weblate. If you wan to dig deeper, read the next sections.
To participate in this project, you will need:
- ReFrontier: A C# application used for decrypting and decompressing Frontier game files.
- FrontierTextHandler: A Python tool that extracts strings from original source files and creates a CSV file for translation purposes.
- The original game files.
To start, follow these steps:
- Get the original game files.
- Download and install ReFrontier. You can use the release for pre-built executables.
- Obtain FrontierTextHandler and use it to create a CSV file from the original game file.
- Push the resulting CSV file to Weblate for translation.
Assuming you use Windows and ReFrontier 1.2.0, the commands to get the CSV should look something like this:
# Create mhfdat.bin.decd.bin, a readable version of mhfdat.bin
./ReFrontier.exe mhfdat.bin --log --noFileRewrite --close
cp mhfdat.bin.decd.bin ../FrontierTextHandler/data
cd ../FrontierTextHandler
python main.py mhfdat.bin.decd.bin --xpath=dat/items/name
The CSV file should be FrontierTextHandler/output/dat-items-name.csv
.
Once your translation is complete, follow these steps:
- Download the translated CSV file from Weblate.
- Use FrontierTextHandler to insert the translated CSV file into your original game file.
- Utilize ReFrontier to reformat the file into a format compatible with the Frontier client.
Starting from the CSV and ReFrontier 1.2, with a translated file called "dat-items-name.csv":
# Edit the binary file with the new translations
python main.py mhfdat.bin.decd.bin dat-items-name.csv --insert
cp mhfdat.bin.decd.bin ../ReFrontier
cd ../ReFrontier
# Create a new mhfdat.bin
./ReFrontier.exe mhfdat.bin.decd.bin --compress=3,80 --encrypt --close
Replace your original "mhfdat.bin" by the new one. You can now enjoy new translations.
For NPC dialogues, you can use: stratick-dev/readDialogue.py and stratick-dev/writeDialogue.py.
For quest data (on the server side): Pax's MHFZ Quest Editor. The main issue of this tool is that it is built to be used in closed loop.
The downloaded translation will be in the form of a CSV file. When using ReFrontier, ensure that you are working with the correct file formats and settings to avoid any issues.