I'm using Windows 7 64-bit. I've got around 10,000 or so files that I want to edit. The trouble is that's just far too much to do by hand. I'll explain what I need to do below.
In these files, there is a string that begins with (the characters in the second line are in hexadecimal):
textures\ 74 65 78 74 75 72 65 73 5C
And ends with:
_n.dds 5F 4E 2E 64 64 73
It is followed by seven dots\seven pairs of 00's in hex:
....... 00 00 00 00 00 00 00
Now, what I want to do is:
- Copy the string excluding the dots/00's.
- Insert a comma between the fourth and fifth dot so 00 00 00 00 00 00 00 becomes 00 00 00 00 2C 00 00 00
- Paste the string after the seventh 00
- Edit the pasted string so 5F 4E 2E 64 64 73 becomes 5F 50 2E 64 64 73 (or in text, "_n.dds " becomes "_p.dds")
- Save the change
I've tried googling for hex editors that would facilitate such a thing, but I've come up dry. I didn't even find anything relevant to scripting/programming, aside from searching for files via strings inside them. And for the record, I don't know a lick of programming. So how would I go about doing this? There's far too many for me to do this by hand.
I uploaded an archive of two files. One file is without the change, the second is with it; for those who are curious or need this to get a proper idea of what I want to do.