News:

11 March 2016 - Forum Rules

Main Menu

How to edit text on HEX editor easily?

Started by Sky_Yoshi, March 13, 2016, 10:09:29 AM

Previous topic - Next topic

Sky_Yoshi

Is there any software that makes easy to understand and edit text on various NES games?
I heard one software named Tabular but that's not working propertly (Especially Japanese is messed up.) and too hard to use.
Is there any more easy way to make tables?
Also, my using Hex editor is named "BinaryEditor Stiring" which is easy to edit wahoo!
Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1

yugisokubodai

Stirling is my favourite Hex editor, but it lacks some important function to be used in Rom hacking. Try dumping the text, translate it with your text editor and insert the translated text to the Rom.
兵法の勝ちを取りても
世の海を渡りかねたる
石の船かな

FAST6191

Editing text itself is trivial. The hard part tends to be in sorting any pointers you might (read will) have messed up in your little editing spree.
To that end any of the ROM hacking ones on http://www.romhacking.net/forum/index.php/topic,21323.0.html will probably do.

On table making I quite like  Tabular, though http://www.romhacking.net/utilities/709/ is also good. On Japanese if you mean adding kanji is a pain then yeah it will be -- it is not like there is a set order in them after all. I have a few more for DS purposes (there is a popular font format there called NTFR) and things like monkey moore or crystlatile2 will spit out a table if the relative search or OCR functions spit out something.


Sky_Yoshi

Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1

henke37

HEX editors are never easy to use for editing data. What you want is a dedicated editor program. And making those is hard. Well, not really. It's the research into the format of the files beforehand that is hard.

Sky_Yoshi

what!? really?
Oh that was a fact...
Anybody have some more ideas? anybody...
Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1

yugisokubodai

Dump out the text with something like Catorgrapher,edit the text and insert back with something like Atlas.
兵法の勝ちを取りても
世の海を渡りかねたる
石の船かな

Sky_Yoshi

Quote from: yugisokubodai on March 19, 2016, 08:38:33 PM
Dump out the text with something like Catorgrapher,edit the text and insert back with something like Atlas.
Wow! Thank you!
Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1

VicVergil

In monkeymoore, you can put the order for the kana in the character set (you can look up the font in the rom to tell that order), and search for text appearing on-screen with that font. Then you have a table file with JP characters (you can open it with notepad or any text editor).

Save this table in shift-jis format as a txt file, change extension to tbl, and have WindHex load the rom you want edited then that table file. There's an option in Windhex to show text as Unicode, and another to enable 16-bit character input. Then you can see JP characters in the ROM and most importantly edit the text.

Newer games (PS1 onwards) use Shift-JIS or Unicode. You don't then need the above, just open Crystaltile2 and change the encoding to "Japanese Shift-JIS" or "Unicode UTF-8". Don't know if it supports UTF-16 as well (which is used in a few DS games).

If you wanted to use Cartographer to extract text, you'd need to do the above anyways to know where the text begins and ends, or alternatively, where the text begins and where is the pointer indicating the point where the text begins. Look up the pointer documents and the RHDN wiki for more info (I suggest practice on a NES and GBA game first).

henke37

Catorgrapher is less of a tool and more of a scripting language with only one implementation. Some people (like myself) will find it easier to just do the entire thing in your own code.

Sky_Yoshi

Gah! Too many hard words for me!
uhg... I will understand all of it and try it okay? bye
Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1

Zynk

Quote from: Sky_Yoshi on March 20, 2016, 08:46:40 PM
Gah! Too many hard words for me!
uhg... I will understand all of it and try it okay? bye
Dude, just use WindHex. Its easy to use & understand, it has a .tbl maker.

KingMike

And for Japanese, it's as simple as creating a plain text file like
00=あ
01=い
02=う

(use something like Notepad. If you use something like MS Word, you need to select a Plain Text option when saving)
and so, of course with the correct values for the game, once you figured them out.
Then if you ROM is gamename.nes, name your table file gamename.tbl. If you use WindHex and create a Japanese table file, it needs to be saved in Shift-JIS (despite WindHex' Japanese text option saying "View text as Unicode" it actually only supports Shift-JIS formatted tbl files.)

For a beginner, editing text in a ROMhacking-centered hex editor like WindHex is probably a good idea.
Using a script dumper/inserter is a more complicated skill that is probably better to learn when you have a more advanced skill level.
"My watch says 30 chickens" Google, 2018

Sky_Yoshi

HOLY MOTHER OF GOD!
THank you for all of these things!
I really thank you guys!
Hi! I'm Sky Yoshi, a Japanese RomHacker.
I am an beginner of a RomHacker and I'm here because I am interested.
I am trying to hack the stages of SMB1