News: 11 March 2016 - Forum Rules

Author Topic: My script for extracting Japanese text from NES games  (Read 1060 times)

Cyneprepou4uk

  • Hero Member
  • *****
  • Posts: 766
  • I am the baldest romhacker
    • View Profile
My script for extracting Japanese text from NES games
« on: September 01, 2021, 06:15:54 pm »
I don't know how you guys do the extraction, but I'd like to share my own script, maybe you'll find it useful (and not just for Japanese).

1 - download this archive - https://www.dropbox.com/s/qs497t04e6760ad/translate.zip?dl=0
2 - open translate.lua with your text editor and configure the encoding table for your own needs (you can write almost anything you want between "" for corresponding bytes)
3 - find text in the ROM
4 - copy bytes and past them into input.bin with your hex editor
5 - launch translate.bat
6 - open output.txt to see the result

Here is an example of how to use it - https://youtu.be/eIP3yUhFplU

Since bytes can contain some control bytes with different arguments (new line, pause, etc), which might happen to be the same values as text bytes, make sure to compare text with what you see in the game and check for minor errors.

spotanjo3

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: My script for extracting Japanese text from NES games
« Reply #1 on: September 03, 2021, 02:39:22 pm »
Impressive. I like that! What about SNES games ? :)

Cyneprepou4uk

  • Hero Member
  • *****
  • Posts: 766
  • I am the baldest romhacker
    • View Profile
Re: My script for extracting Japanese text from NES games
« Reply #2 on: September 03, 2021, 02:45:03 pm »
Thanks!

And what about SNES games? :)

If they also have a "1 byte = 1 letter" data format, it should work for them as well.