PDA

View Full Version : Hex-Edit PES Option File / Checksum Tool


digitald74
19-10-2008, 17:22
It should be useful to directly edit the PES-EDIT-FILE for some reasons. As like last year i wonder if there the game would not check the File for checksum

Someone hast posted a small python script to correct the checksum. Perphaps it is possible for one with python skills to adapt this for the xbox 360

Here is the thread. they changed the camera-angle....

http://www.soccergaming.tv/showthread.php?t=150347



import sys, struct, binascii, msvcrt

OPTION_FILE='PES2008_OPTION01. bin'

def fixcrc(file=OPTION_FILE):
f = open(file,"r+b")
f.seek(0x100)
data = f.read()
data1 = data[:8] + '\0\0\0\0' + data[12:]
crc = binascii.crc32(data1)
f.seek(0x108)
f.write(struct.pack('<i',crc))
f.close()

def quit(code):
sys.stdout.write('\nPress any key to exit')
msvcrt.getch()
sys.exit(code)

if __name__ == '__main__':
sys.stdout.write('Enter camera angle (0-9): ')
try: angle = int(sys.stdin.readline()[:-1])
except ValueError: angle = -1
if angle<0 or angle>9:
print 'Bad angle. No changes made.'
quit(1)

f = open(OPTION_FILE,"r+b")
f.seek(0x148)
f.write(struct.pack('<i',angle)[0])
f.close()
fixcrc()
print 'Camera angle succesfully changed to %d' % angle
quit(0)


cya
dd