Yay I've cracked the player HS and average for batting. This was complicated but hopefully now all the others will be simular:
There are three bytes that control it: 125, 126 and 127
125 gives the HS in simple hex; the second byte of 126 also controls the HS
126 and 127 then control the average:
the first byte of 126 added to the value in 127 (in base 16). This is multiplied by 2.
The second byte of 125 now determines whether the average is odd or even. It goes as follows:
0 = average is even
8 = average is odd (add 1)
1 = average is even (add 256 to batting HS)
9 = average is odd (add 1 and add 256 to batting HS)
I know this is extremely complicated so if you don't follow don't worry. Prakash is the only one who has to understand it...
There are three bytes that control it: 125, 126 and 127
125 gives the HS in simple hex; the second byte of 126 also controls the HS
126 and 127 then control the average:
the first byte of 126 added to the value in 127 (in base 16). This is multiplied by 2.
The second byte of 125 now determines whether the average is odd or even. It goes as follows:
0 = average is even
8 = average is odd (add 1)
1 = average is even (add 256 to batting HS)
9 = average is odd (add 1 and add 256 to batting HS)
I know this is extremely complicated so if you don't follow don't worry. Prakash is the only one who has to understand it...