How do you repair the full need script ?
In a new version of the game it says
Ok so I compared the before and after and fixed the aob value and this seems to work I'm proud of myself I was never able to update this kind of thing before !
Patch note :
Fixed the full needs script by putting in the correct aob
F3 0F 11 00 FF 75 08 E8 0C -> F3 0F 11 00 FF 75 08 E8 02
This is the updated version of the script
Code: Select all
{ Game : TGL2.exe
Version:
Date : 2024-06-28
Author : Tahtawy
This script does blah blah blah
}
[ENABLE]
aobscanmodule(Ndds,TGL2.exe,F3 0F 11 00 FF 75 08 E8 02) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
movss [eax],xmm0
mov [eax],(float)2000.00
push [ebp+08]
jmp return
code:
movss [eax],xmm0
push [ebp+08]
jmp return
Ndds:
jmp newmem
nop 2
return:
registersymbol(Ndds)
[DISABLE]
Ndds:
db F3 0F 11 00 FF 75 08
unregistersymbol(Ndds)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+508
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4E4: E8 C7 20 D8 FF - call TGL2.cocos2d::__Double::clone+4AA0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4E9: 8B CE - mov ecx,esi
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4EB: F3 0F 10 00 - movss xmm0,[eax]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4EF: 8D 45 08 - lea eax,[ebp+08]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F2: 50 - push eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F3: F3 0F 11 45 E4 - movss [ebp-1C],xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F8: E8 B3 20 D8 FF - call TGL2.cocos2d::__Double::clone+4AA0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4FD: 8B CF - mov ecx,edi
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4FF: F3 0F 10 00 - movss xmm0,[eax]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+503: F3 0F 58 45 10 - addss xmm0,[ebp+10]
// ---------- INJECTING HERE ----------
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+508: F3 0F 11 00 - movss [eax],xmm0
// ---------- DONE INJECTING ----------
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+50C: FF 75 08 - push [ebp+08]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+50F: E8 0C 03 00 00 - call "TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data"+820
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+514: F3 0F 2C C0 - cvttss2si eax,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+518: 0F 57 D2 - xorps xmm2,xmm2
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+51B: 89 45 10 - mov [ebp+10],eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+51E: 66 0F 6E C0 - movd xmm0,eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+522: 0F 5B C0 - cvtdq2ps xmm0,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+525: 0F 2F D0 - comiss xmm2,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+528: 72 34 - jb "TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data"+55E
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+52A: 83 EC 18 - sub esp,18
}
To compare this is the old :
Code: Select all
{ Game : TGL2.exe
Version:
Date : 2024-06-28
Author : Tahtawy
This script does blah blah blah
}
[ENABLE]
aobscanmodule(Ndds,TGL2.exe,F3 0F 11 00 FF 75 08 E8 0C) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
movss [eax],xmm0
mov [eax],(float)2000.00
push [ebp+08]
jmp return
code:
movss [eax],xmm0
push [ebp+08]
jmp return
Ndds:
jmp newmem
nop 2
return:
registersymbol(Ndds)
[DISABLE]
Ndds:
db F3 0F 11 00 FF 75 08
unregistersymbol(Ndds)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+508
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4E4: E8 C7 20 D8 FF - call TGL2.cocos2d::__Double::clone+4AA0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4E9: 8B CE - mov ecx,esi
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4EB: F3 0F 10 00 - movss xmm0,[eax]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4EF: 8D 45 08 - lea eax,[ebp+08]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F2: 50 - push eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F3: F3 0F 11 45 E4 - movss [ebp-1C],xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4F8: E8 B3 20 D8 FF - call TGL2.cocos2d::__Double::clone+4AA0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4FD: 8B CF - mov ecx,edi
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+4FF: F3 0F 10 00 - movss xmm0,[eax]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+503: F3 0F 58 45 10 - addss xmm0,[ebp+10]
// ---------- INJECTING HERE ----------
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+508: F3 0F 11 00 - movss [eax],xmm0
// ---------- DONE INJECTING ----------
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+50C: FF 75 08 - push [ebp+08]
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+50F: E8 0C 03 00 00 - call "TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data"+820
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+514: F3 0F 2C C0 - cvttss2si eax,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+518: 0F 57 D2 - xorps xmm2,xmm2
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+51B: 89 45 10 - mov [ebp+10],eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+51E: 66 0F 6E C0 - movd xmm0,eax
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+522: 0F 5B C0 - cvtdq2ps xmm0,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+525: 0F 2F D0 - comiss xmm2,xmm0
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+528: 72 34 - jb "TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data"+55E
TGL2.boost::archive::detail::iserializer<boost::archive::text_iarchive,Pathfinder>::load_object_data+52A: 83 EC 18 - sub esp,18
}