Once you’ve been able to read some dialogue files, it’s time to start editing any sections you want to change.
In this example, I’m going to alter the word “husband” in a phrase said by Griffin.
First things first. You’re going to open up your .mes file in a hex editor of your choice. I prefer Hex Editor Neo on Windows, but any hex editor should do.
Once open, you’ll want to locate the phrase in the file. The easiest way to do this is to copy the hex code displayed in Harrison’s tool, then search for it in your file.
For simplicity, it’s best to replace words with alternatives that have an equal or lesser amount of characters.
In this case, we’ll replace “husband” (7 letters) with “wife” (4 letters, 3 letters less than the original). In this case we’ll need to add a few spaces onto the end of the line. Spaces are encoded as “02″ in hex. Since they only take up 1 hex slot as opposed to 2 (which most letters do), we’ll need to double the amount of needed spaces to 6 to make up for 3 missing letters. So we’ll replace “a great husband for” with “a great wife for ”. In the end, your replacement phrase should be just as long in hex as your original. This keeps us from needing to modify the list of indexes at the start of the file and possibly creating any bugs.
While we might need to modify the file at times where the new text is longer than the original, we won’t worry about it right now.