1. Stop using XVI32.
2. Go to
http://catch22.net/ and download Hexedit.
3. Stop using the "find/replace" method and learn the "extract/inject" method.
Unfortunately, I can't just say that because surprisingly no one's written a tutorial on using the extract/inject method for replacing equipment. The extract/inject method has pretty much completely replaced the find/replace method.
The basic steps are:
1. Extract itemdata.txt from Media.pk2 using PK2Extractor.
2. Find the equipment you want to change in itemdata.txt and change the degree number in the BSR reference string. As you scroll to the right you should see two or three long strings. The BSR reference string will either be the first one, or there will be an "xxx" in it's place because there is no BSR to reference.
3. Once you have made all of your changes, save the file as itemdata.mod.txt.
4. Open up Media.pk2 in HexEdit.
5. Do an ANSI search for "ITEM_ETC_GOLD".
6. In the hex column, you will see an "FF FE" somewhere before the "ITEM_ETC_GOLD". This is the file's header that marks it as a Unicode file. Put your cursor in front of the "FF".
7. Go Edit -> Paste From and select the itemdata.mod.txt file you saved earlier. Click okay.
8. You should see everything past your cursor turn to red. Now press CTRL+Z and then CTRL+Y. This will bring you to the end of what you pasted.
9. This is where it gets tricky. The way Joymax updates the files leaves parts of old files sitting around in the PK2 file. I have two copies of itemdata.txt in my Media.pk2 file and only one is valid. Anyway, the valid one in yours should be immediately followed by skilldata.txt. Look for "SKILL_PUNCH_01".
10. If you see it, then you can save your Media.pk2 file and test ingame. If you don't see it, hit CTRL+Z again to undo the Paste From. Then do an ANSI search for "ITEM_ETC_GOLD" again. You should hit the one you are right next to first because your cursor was before it. Hit Find again to find the next instance of the file. Once you find that do the Paste From again and check to see if it's immediately followed by "SKILL_PUNCH_01".
That was fairly basic, but I'm assuming others can hop in here and help with whatever I missed. As a side note, this is just the basic idea of the extract/inject method. You can take this idea and apply it to other files. In it's purest form, the extract/inject method is simply extracting the file you want, editing it and saving it as a .mod.* (making sure to preserve your original file size), opening up the PK2 file that contained it, searching for a unique string or sequence of bytes you found in the file, placing your cursor in front of the start of the file in the PK2 file, pasting from the file, then finally checking to see if you pasted in the right spot with CTRL+Z and CTRL+Y. Also, once you are done it is smart to write down the hexadecimal offset of where you found the file so that the next time you want to change it you only need to hit CTRL+G and enter in the offset.