This tool allows you to extract the text from the questions in the game "Joshua & the Battle of Jericho (USA) (v6.0) (Unl).nes", and then easily reinsert it. The pointer table will be updated automatically. The tool can be found here: https://github.com/KodingBTW/hexstring
Synopsis:
HexString [-d | -e] inFileName outFileName
Description:
HexString -d "Joshua & the Battle of Jericho (USA) (v6.0) (Unl).nes" 0x14388 0x1F4 0x8010 0x04,0x05,0x06,0x07 "Questions.bin" "decoder.tbl" - Decode text from ROM file.
HexString -e "Questions.bin" 0x1007B 430D 0x14388 0x8010 "Joshua & the Battle of Jericho (USA) (v6.0) (Unl).nes" "encoder.tbl" - Encode text to ROM file.
-h - Display help
-v - Output version information
The program doesn't handle many exceptions, so try to provide the correct information to avoid issues. For more information, read the attached readme.txt.
For easier use, I have created 2 batch files. Locate the files in the same directory as the ROM, then use "extractor.bat" to extract the text. It will create a file called "QuestionsText.bin", which you can edit with any text editor; I recommend Notepad++. Then, edit the "encode.tbl" file and modify the table as you wish, adding any new graphics you need. Finally, use "inserter.bat" to insert the text.
If you get an error about lacking space when inserting the text, you will need to use empty space in the ROM, or perhaps expand it.
Of course, there's no need to ask. Feel free to use it in your project. I only ask that you mention me as contributor.