2008-10-07, 04:46 PM
Just as a notification about prepatchers Fiel make and such:
The way of making the prepatcher in Python is completely harmless if you download the .patch file from Nexon's FTP. Though, I liked the cleaner version better than the other version, because you can easily see that this isn't dangerous:
[spoiler=Wasn't it something like this?]
[/spoiler]
The way of making the prepatcher in Python is completely harmless if you download the .patch file from Nexon's FTP. Though, I liked the cleaner version better than the other version, because you can easily see that this isn't dangerous:
[spoiler=Wasn't it something like this?]
Code:
import struct
import cStringIO
def Main(pname):
manpatch = open(pname + '.exe', 'wb')
base = open('ManualPatch.base', 'rb')
bdata = base.read()
base.close()
manpatch.write(bdata)
patch = open(pname + '.patch', 'rb')
pdata = patch.read()
plen = len(pdata)
patch.close()
manpatch.write(pdata)
manpatch.write(struct.pack('L', plen))
manpatch.write(struct.pack('L', 0))
manpatch.write(struct.pack('BBBB', 0xF3, 0xFB, 0xF7, 0xF2))
manpatch.close()
Main('00057to00058') #input the patch file name without the .patch here
