 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Goldfishwishes How do I cheat?
Reputation: 0
Joined: 28 Nov 2024 Posts: 3
|
Posted: Thu Nov 28, 2024 3:16 am Post subject: Help for a layman. |
|
|
I'm not savvy with code, i have no idea what to do here. I've been playing with Ooblets and suddenly the code i was using doesn't work. Says Error while scanning for AOB. Below is what is printed in the box. I'm so sorry if this isn't the right place to ask this. I'm not new to Cheat Engine as far as using it, but vie never known how to fix this error and I've had it on other games as well. If anyone could help ya girl out i would very thankful <3
{ Game : ooblets.exe
Version:
Date : 2023-10-09
Author : Brian
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT,E8 F3 0F 5A C0 F2 0F 5A E8 F3 0F 11 AF 38 01 00 00) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
alloc(energy1,8,INJECT)
energy1:
dd (float)250
newmem:
movss xmm5,[energy1]
code:
movss [rdi+00000138],xmm5
jmp return
INJECT+09:
jmp newmem
nop 3
return:
registersymbol(INJECT)
[DISABLE]
INJECT+09:
db F3 0F 11 AF 38 01 00 00
unregistersymbol(INJECT)
dealloc(newmem)
dealloc(energy1)
{
// ORIGINAL CODE - INJECTION POINT: InventoryManager:SetEnergy+44
InventoryManager:SetEnergy+18: 49 8B F0 - mov rsi,r8
InventoryManager:SetEnergy+1b: 66 66 90 - nop 3
InventoryManager:SetEnergy+1e: 49 BB 30 25 22 78 A8 02 00 00 - mov r11,SystemToggle:Get
InventoryManager:SetEnergy+28: 41 FF D3 - call r11
InventoryManager:SetEnergy+2b: 0F B6 40 10 - movzx eax,byte ptr [rax+10]
InventoryManager:SetEnergy+2f: 85 C0 - test eax,eax
InventoryManager:SetEnergy+31: 0F 84 A0 00 00 00 - je InventoryManager:SetEnergy+d7
InventoryManager:SetEnergy+37: F3 0F 10 45 E8 - movss xmm0,[rbp-18]
InventoryManager:SetEnergy+3c: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
InventoryManager:SetEnergy+40: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
// ---------- INJECTING HERE ----------
InventoryManager:SetEnergy+44: F3 0F 11 AF 38 01 00 00 - movss [rdi+00000138],xmm5
// ---------- DONE INJECTING ----------
InventoryManager:SetEnergy+4c: F3 0F 10 87 38 01 00 00 - movss xmm0,[rdi+00000138]
InventoryManager:SetEnergy+54: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
InventoryManager:SetEnergy+58: 66 0F 57 C9 - xorpd xmm1,xmm1
InventoryManager:SetEnergy+5c: 66 0F 2F C8 - comisd xmm1,xmm0
InventoryManager:SetEnergy+60: 76 10 - jna InventoryManager:SetEnergy+72
InventoryManager:SetEnergy+62: 66 0F 57 C0 - xorpd xmm0,xmm0
InventoryManager:SetEnergy+66: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
InventoryManager:SetEnergy+6a: F3 0F 11 AF 38 01 00 00 - movss [rdi+00000138],xmm5
InventoryManager:SetEnergy+72: F3 0F 10 87 38 01 00 00 - movss xmm0,[rdi+00000138]
InventoryManager:SetEnergy+7a: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
}
|
|
Back to top |
|
 |
apocalypticx Expert Cheater
Reputation: 4
Joined: 19 Jul 2009 Posts: 126 Location: UK
|
Posted: Thu Nov 28, 2024 8:53 am Post subject: |
|
|
Hello,
just from looking at your AOB (array of bytes) is wrong:
This is what your scanning for:
E8 F3 0F 5A C0 F2 0F 5A E8 F3 0F 11 AF 38 01 00 00
This is the correct AOB:
E8 F3 0F 11 AF 38 01 00 00 F3 0F 10 87 38 01 00 00
You could add some wildcard's like this:
E8 F3 0F ?? ?? ?? ?? ?? ?? F3 0F ?? ?? 38 01 00 00
If you follow the way I've shown you by not allocating memory and using the INJECT point your AOB's will stay the same and you won't need the wildcard's ?? to fix the broken AOB.
Cheat Engine thread on how to use alloc:
https://wiki.cheatengine.org/index.php?title=Auto_Assembler:alloc
alloc(energy1,8,INJECT) this is 8 bytes right if you look at the broken AOB below:
E8 F3 0F 5A C0 F2 0F 5A E8 F3 0F 11 AF 38 01 00 00
Correct AOB below:
E8 F3 0F 11 AF 38 01 00 00 F3 0F 10 87 38 01 00 00
Count the bytes that are different it's exactly 8.
Correct way:
alloc(energy1, 0x4)
A float is exactly 4 bytes not 8 bytes.
I gathered the correct AOB from your script by looking at the bottom!
Your alloc energy1 inject is the culprit for your skewed/changing AOB's, so in future try out the methods I've posted for you.
You can just use label to be a memory address instead of allocating a small chunk of memory, if you want to edit this amount just registersymbol the labelname and add an address to your table as the exact symbolname!
{ Game : ooblets.exe
Version:
Date : 2023-10-09
Author : Brian
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT,E8 F3 0F 11 AF 38 01 00 00 F3 0F 10 87 38 01 00 00) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
label(energy1)
newmem:
movss xmm5,[energy1]
code:
movss [rdi+00000138],xmm5
jmp return
energy1:
dd (float)250
INJECT+09:
jmp newmem
nop 3 //there's a bug in cheat engine for me so i manually replace nop x 3 with this nop nop nop on separate lines for each nop!
return:
registersymbol(INJECT)
[DISABLE]
INJECT+09:
db F3 0F 11 AF 38 01 00 00
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: InventoryManager:SetEnergy+44
InventoryManager:SetEnergy+18: 49 8B F0 - mov rsi,r8
InventoryManager:SetEnergy+1b: 66 66 90 - nop 3
InventoryManager:SetEnergy+1e: 49 BB 30 25 22 78 A8 02 00 00 - mov r11,SystemToggle:Get
InventoryManager:SetEnergy+28: 41 FF D3 - call r11
InventoryManager:SetEnergy+2b: 0F B6 40 10 - movzx eax,byte ptr [rax+10]
InventoryManager:SetEnergy+2f: 85 C0 - test eax,eax
InventoryManager:SetEnergy+31: 0F 84 A0 00 00 00 - je InventoryManager:SetEnergy+d7
InventoryManager:SetEnergy+37: F3 0F 10 45 E8 - movss xmm0,[rbp-18]
InventoryManager:SetEnergy+3c: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
InventoryManager:SetEnergy+40: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
// ---------- INJECTING HERE ----------
InventoryManager:SetEnergy+44: F3 0F 11 AF 38 01 00 00 - movss [rdi+00000138],xmm5
// ---------- DONE INJECTING ----------
InventoryManager:SetEnergy+4c: F3 0F 10 87 38 01 00 00 - movss xmm0,[rdi+00000138]
InventoryManager:SetEnergy+54: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
InventoryManager:SetEnergy+58: 66 0F 57 C9 - xorpd xmm1,xmm1
InventoryManager:SetEnergy+5c: 66 0F 2F C8 - comisd xmm1,xmm0
InventoryManager:SetEnergy+60: 76 10 - jna InventoryManager:SetEnergy+72
InventoryManager:SetEnergy+62: 66 0F 57 C0 - xorpd xmm0,xmm0
InventoryManager:SetEnergy+66: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
InventoryManager:SetEnergy+6a: F3 0F 11 AF 38 01 00 00 - movss [rdi+00000138],xmm5
InventoryManager:SetEnergy+72: F3 0F 10 87 38 01 00 00 - movss xmm0,[rdi+00000138]
InventoryManager:SetEnergy+7a: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
Finished example with the nop nop nop i said about earlier to stop any crashes:
{ Game : ooblets.exe
Version:
Date : 2023-10-09
Author : Brian
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT,E8 F3 0F 11 AF 38 01 00 00 F3 0F 10 87 38 01 00 00) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
label(energy1)
newmem:
movss xmm5,[energy1]
code:
movss [rdi+00000138],xmm5
jmp return
energy1:
dd (float)250
INJECT+09:
jmp newmem
nop
nop
nop
return:
registersymbol(INJECT)
[DISABLE]
INJECT+09:
db F3 0F 11 AF 38 01 00 00
unregistersymbol(INJECT)
dealloc(newmem)
|
|
Back to top |
|
 |
Goldfishwishes How do I cheat?
Reputation: 0
Joined: 28 Nov 2024 Posts: 3
|
Posted: Thu Nov 28, 2024 10:22 am Post subject: |
|
|
@apocalypticx thank you so much, you are a wonderful human! I really appreciate you taking time to help me <3
|
|
Back to top |
|
 |
apocalypticx Expert Cheater
Reputation: 4
Joined: 19 Jul 2009 Posts: 126 Location: UK
|
Posted: Thu Nov 28, 2024 10:34 am Post subject: |
|
|
No worries, if you want any examples of how to have an editable address in your cheat table that can be used to manually input any value let me know.
|
|
Back to top |
|
 |
Goldfishwishes How do I cheat?
Reputation: 0
Joined: 28 Nov 2024 Posts: 3
|
Posted: Thu Nov 28, 2024 10:36 am Post subject: |
|
|
SO this isnt *mine* its from a 2 year old forum post from another site. I honestly have no idea how to do any of this. The only other thing i would possibly want in this would be the ability to add items to my inventory. There was an old ooblets table that could do it on the same post that doesn't work any more sadly, that used to be able to do it.
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|