-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
eadmaster edited this page Mar 21, 2026
·
12 revisions
Ezrominject is meant to be used from the commandline.
Requisites:
- a python interpreter
- jstrings
- sugoi-v4-ja-en-ctranslate2
Example usage:
- extract the jap script
$ jstrings -l 2 -e shiftjis --cutoff 200 my_rom.bin > my_rom_jap.txt
- manually remove non-text lines with a text editor (patching them may cause crashes/glitches)
$ kate my_rom_jap.txt
- generate a translation draft with sugoi
$ python jstringstxttranslate.py my_rom_jap.txt my_rom_eng.txt
- manually revise the translation with a text editor.
$ kate my_rom_eng.txt
- inject the translated text
$ python ezrominject.py my_rom_jap.txt my_rom_eng.txt my_rom.bin
- check the logged errors, fix them if necessary, then test the patched rom
Tip
The default injection method Halfwidth2Fullwidth SJIS is the most compatible, but provides less space for text (1x SJIS char -> 1x ASCII char).
To have more space, try --ascii-mode and --ascii-bios-hack, and check if they work correctly ingame.
See the examples listed in this page.
If you publish a patch made with this tool, please include a link to this repository to give credits.