Game mentioned as "like King's Field" - Hungry Ghosts

#24
(2012-06-19, 04:22 AM)Guyra link Wrote: Now, how would I go about putting this back into the game after changing it?

Also, if this was easy for you to do(made an app for it, or something?), could you do it with all the files and send me?

To insert changed text, I have been editing the extracted files in a hex editor (ultra edit) then reinserting them into Pack.dat with a second tool I made, then reinserting Pack.dat back into the ISO. But that method means you have to "translate around" all the data junk (pointers etc). If you translate the text-dump files (attached earlier), we'll either have to manually type the new text over the Japanese in a hex editor or take the time to figure out the pointer table format enough to automate the process.

I "cleaned" the text by using a few "search and replace" operations in XVI32 (attached) , which is a a hex editor that supports wild cards. The wildcard feature is a bit confusing, but attached is a picture; mark the "joker char hex" box and type a value into the field to the right, whatever you type will count as the wildcard in the fields above.

"0d0a" is the standard line-break hex value so:
replace "00" with "0d0a" (replaces blank letter slots with line-breaks)
replace "0d0a 0d0a" with "0d0a" several times (removes multiple line breaks next to each other)
replace "0d0a * 0d0a" with "0d0a" ‎  (removes some generic data between text lines)
replace "0d0a * * 0d0a" with "0d0a" (removed rest of the generic data between text lines)

The only junk left should be the pointer tables, but they are easy to see/delete in Notepad++.


Attached Files Thumbnail(s)
   

.zip   xvi32 [Hex Editor that supports Search-Replace Wildcards].zip (Size: 556.6 KB / Downloads: 206)
Reply



Messages In This Thread
Re: Game mentioned as "like King's Field" - Hungry Ghosts - by HwitVlf - 2012-06-19, 10:43 PM



Users browsing this thread:
14 Guest(s)