Romhacking.net

Romhacking => Programming => Topic started by: Sky_Yoshi on March 13, 2016, 10:09:29 AM

Title: How to edit text on HEX editor easily?
Post by: Sky_Yoshi on March 13, 2016, 10:09:29 AM
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!
Title: Re: How to edit text on HEX editor easily?
Post by: yugisokubodai on March 13, 2016, 11:36:11 AM
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.
Title: Re: How to edit text on HEX editor easily?
Post by: FAST6191 on March 13, 2016, 04:28:22 PM
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.

Title: Re: How to edit text on HEX editor easily?
Post by: Sky_Yoshi on March 15, 2016, 05:13:56 AM
Thank you guys!
I7ll try it.
Title: Re: How to edit text on HEX editor easily?
Post by: henke37 on March 15, 2016, 08:14:08 AM
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.
Title: Re: How to edit text on HEX editor easily?
Post by: Sky_Yoshi on March 19, 2016, 05:26:11 AM
what!? really?
Oh that was a fact...
Anybody have some more ideas? anybody...
Title: Re: How to edit text on HEX editor easily?
Post by: 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.
Title: Re: How to edit text on HEX editor easily?
Post by: Sky_Yoshi on March 19, 2016, 09:13:17 PM
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!
Title: Re: How to edit text on HEX editor easily?
Post by: VicVergil on March 20, 2016, 12:05:11 AM
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).
Title: Re: How to edit text on HEX editor easily?
Post by: henke37 on March 20, 2016, 06:22:08 AM
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.
Title: Re: How to edit text on HEX editor easily?
Post by: 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
Title: Re: How to edit text on HEX editor easily?
Post by: Zynk on March 21, 2016, 01:21:05 AM
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 (http://www.romhacking.net/utilities/291/). Its easy to use & understand, it has a .tbl maker.
Title: Re: How to edit text on HEX editor easily?
Post by: KingMike on March 21, 2016, 02:13:39 AM
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.
Title: Re: How to edit text on HEX editor easily?
Post by: Sky_Yoshi on March 21, 2016, 08:55:15 AM
HOLY MOTHER OF GOD!
THank you for all of these things!
I really thank you guys!