You're in the right area. Any hex editor will usually display the file something like this:
Code: Select all
Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F
000eb040 00 0f 83 30 01 00 00 89 c1 b8 01 00 00 00 d3 e0 |...0....Á¸....Óà|
000eb050 8b 15 50 2b 5a 00 89 c1 21 d1 0f 85 e4 00 00 00 |..P+Z..Á!Ñ..ä...|
000eb060 80 7d 30 03 0f 85 da 00 00 00 8a 5d 4c 80 fb 23 |.}0...Ú....]L.û#|
000eb070 0f 84 ce 00 00 00 31 c0 31 d2 88 d8 66 8b 55 44 |..Î...1À1Ò.Øf.UD|
000eb080 39 d0 0f 84 bc 00 00 00 8b 77 0c ba 09 00 00 00 |9Ð..¼....w.º....|
000eb090 89 f0 e8 b9 cf f5 ff 85 c0 0f 84 a5 00 00 00 31 |.ðè¹Ïõÿ.À..¥...1|
000eb0a0 c0 8a 45 4c e8 6b f4 f9 ff 50 31 c0 66 8b 45 44 |À.ELèkôùÿP1Àf.ED|
Here I told the hex editor to go to offset 0xEB05A. This positions the edit cursor at line 000EB050 down, in column A (because EB050 + A = EB05A). So I can start typing the new code in straight away.
If you're wondering what all the weird symbols on the right are, they're just ASCII text representations of the bytes in the file. So if you opened a text file with the hex editor, you'd see the text of the file on the right.
Anyway, at offset position 0xEB05A you should see the bytes (in the example above, you'll see them on the second line 000EB050, under column A):
Code: Select all
0F 85 E4 00 00 00 80 7D 30 03 0F 85 DA 00 00 00 8A 5D 4C 80 FB 23 0F 84 CE 00 00 00
Replace those bytes with these (by just typing over them):
Code: Select all
75 0A 80 7D 30 03 74 0A 80 7D 30 06 0F 85 D8 00 00 00 8A 5D 4C 80 FB 23 74 0E 90 90
The second part of the patch is at offset 0x66D6C
Replace:
Code: Select all
66 8B 70 44 66 83 FE 05 72 59 66 83 FE 23 77 53 66 83 FE 20 0F 83 F8 02 00 00 B8 01 00 00 00 89 F1
with:
Code: Select all
80 78 30 06 75 04 C6 40 30 00 0F B6 48 44 83 F9 05 72 3A 83 F9 23 0F 83 FB 02 00 00 B8 01 00 00 00
Like I said, keep a backup copy of trek.exe in case you make a mistake, and then feel free to experiment.
I totally forgot, I made a patching program for Trek.exe last Christmas. It has a database of patches including this one. I'll fix it up and post it soon.