For those of you who know what function is used in the CP hack, the only thing the patch did was basically add a few checks, which can be noped out or jumped, and the hack will effectively be the same.
I only added this, because if u know a bit of asm, then it is much faster than re-installing TS2 and skipping that patch.
Also this is mostly for aeria, though with a few added changes it can work on probably any version.
TwelveSky2.exe+B05E0 - 55 - push ebp
TwelveSky2.exe+B05E1 - 8B EC - mov ebp,esp
TwelveSky2.exe+B05E3 - 83 EC 78 - sub esp,78
TwelveSky2.exe+B05E6 - A1 3C845900 - mov eax,[TwelveSky2.exe+19843C]
TwelveSky2.exe+B05EB - 33 C5 - xor eax,ebp
TwelveSky2.exe+B05ED - 89 45 FC - mov [ebp-04],eax
TwelveSky2.exe+B05F0 - 89 4D 88 - mov [ebp-78],ecx
TwelveSky2.exe+B05F3 - C7 45 8C EB000000 - mov [ebp-74],000000EB
TwelveSky2.exe+B05FA - 6A 04 - push 04
TwelveSky2.exe+B05FC - 8D 45 08 - lea eax,[ebp+08]
TwelveSky2.exe+B05FF - 50 - push eax
TwelveSky2.exe+B0600 - 8D 4D 90 - lea ecx,[ebp-70]
TwelveSky2.exe+B0603 - 51 - push ecx
TwelveSky2.exe+B0604 - E8 A7000B00 - call TwelveSky2.exe+1606B0
TwelveSky2.exe+B0609 - 83 C4 0C - add esp,0C
TwelveSky2.exe+B060C - 8D 55 90 - lea edx,[ebp-70]
TwelveSky2.exe+B060F - 52 - push edx
TwelveSky2.exe+B0610 - 8B 45 8C - mov eax,[ebp-74]
TwelveSky2.exe+B0613 - 50 - push eax
TwelveSky2.exe+B0614 - B9 A02A5B00 - mov ecx,TwelveSky2.exe+1B2AA0
TwelveSky2.exe+B0619 - E8 2265F7FF - call TwelveSky2.exe+26B40
TwelveSky2.exe+B061E - 8B 4D FC - mov ecx,[ebp-04]
TwelveSky2.exe+B0621 - 33 CD - xor ecx,ebp
TwelveSky2.exe+B0623 - E8 78000B00 - call TwelveSky2.exe+1606A0
TwelveSky2.exe+B0628 - 8B E5 - mov esp,ebp
TwelveSky2.exe+B062A - 5D - pop ebp
TwelveSky2.exe+B062B - C2 0400 - ret 0004
The above is the original and unpatched function. Compare it to the patched one, and you will see how they tried to prevent it. :P
Edit: Sorry forgot to mention that by simply changing some code, i indeed was able to make the CPhack work.
For anyone who has an old or outdated CPhack, what i posted is in not so many words, basically a guide to updating it, given that you can re-find the needed addresses.
Please dont send me PM's asking for it, as i will not spoon feed anyone. If ya want it, then learn to make it. This doesnt mean i am unwilling to help however :P.
I only added this, because if u know a bit of asm, then it is much faster than re-installing TS2 and skipping that patch.
Also this is mostly for aeria, though with a few added changes it can work on probably any version.
TwelveSky2.exe+B05E0 - 55 - push ebp
TwelveSky2.exe+B05E1 - 8B EC - mov ebp,esp
TwelveSky2.exe+B05E3 - 83 EC 78 - sub esp,78
TwelveSky2.exe+B05E6 - A1 3C845900 - mov eax,[TwelveSky2.exe+19843C]
TwelveSky2.exe+B05EB - 33 C5 - xor eax,ebp
TwelveSky2.exe+B05ED - 89 45 FC - mov [ebp-04],eax
TwelveSky2.exe+B05F0 - 89 4D 88 - mov [ebp-78],ecx
TwelveSky2.exe+B05F3 - C7 45 8C EB000000 - mov [ebp-74],000000EB
TwelveSky2.exe+B05FA - 6A 04 - push 04
TwelveSky2.exe+B05FC - 8D 45 08 - lea eax,[ebp+08]
TwelveSky2.exe+B05FF - 50 - push eax
TwelveSky2.exe+B0600 - 8D 4D 90 - lea ecx,[ebp-70]
TwelveSky2.exe+B0603 - 51 - push ecx
TwelveSky2.exe+B0604 - E8 A7000B00 - call TwelveSky2.exe+1606B0
TwelveSky2.exe+B0609 - 83 C4 0C - add esp,0C
TwelveSky2.exe+B060C - 8D 55 90 - lea edx,[ebp-70]
TwelveSky2.exe+B060F - 52 - push edx
TwelveSky2.exe+B0610 - 8B 45 8C - mov eax,[ebp-74]
TwelveSky2.exe+B0613 - 50 - push eax
TwelveSky2.exe+B0614 - B9 A02A5B00 - mov ecx,TwelveSky2.exe+1B2AA0
TwelveSky2.exe+B0619 - E8 2265F7FF - call TwelveSky2.exe+26B40
TwelveSky2.exe+B061E - 8B 4D FC - mov ecx,[ebp-04]
TwelveSky2.exe+B0621 - 33 CD - xor ecx,ebp
TwelveSky2.exe+B0623 - E8 78000B00 - call TwelveSky2.exe+1606A0
TwelveSky2.exe+B0628 - 8B E5 - mov esp,ebp
TwelveSky2.exe+B062A - 5D - pop ebp
TwelveSky2.exe+B062B - C2 0400 - ret 0004
The above is the original and unpatched function. Compare it to the patched one, and you will see how they tried to prevent it. :P
Edit: Sorry forgot to mention that by simply changing some code, i indeed was able to make the CPhack work.
For anyone who has an old or outdated CPhack, what i posted is in not so many words, basically a guide to updating it, given that you can re-find the needed addresses.
Please dont send me PM's asking for it, as i will not spoon feed anyone. If ya want it, then learn to make it. This doesnt mean i am unwilling to help however :P.