 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
retrocheats How do I cheat?
Reputation: 0
Joined: 14 May 2024 Posts: 8
|
Posted: Sun Jun 09, 2024 12:23 am Post subject: Inject Error not all results found... but I don't get why |
|
|
I did a Array byte scan, and it got 1 result... but my script is failing.
One question I have is.. can aobscan be too long width? (my only theory is it's not reading it all in the script)
---------
{ Game : retroarch.exe
Version:
Date : 2024-06-09
Author : Hylians
This script does blah blah blah
}
[ENABLE]
aobscan(INJECT, "89 0C 1E 48 BE E0 FC ?? 8F FE 7F 00 00 89 C3 C1 EB 0C 80 3C 1E 00 75 41 48 BF C0 FC ?? 8E FE 7F 00 00 89 D9 48 8B 1C DF 48 8B 9B 00 00 00 00 48 BF B0 7F ?? 87 FE 7F 00 00 25 FF 0F 00 00 C1 E8 02 BA D0 00 00 00 F7 E2 48 8B 84 18 00 00 00 00 48 39 F8 74 04 C6 04 0E 01 B8 CC 82 1A 80 41 2B") // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
newmem:
code:
nop
mov rsi,parallel_n64_next_libretro.dll+764FCE0
jmp return
INJECT:
jmp newmem
nop 8
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db 89 0C 1E 48 BE E0 FC 1F 8F FE 7F 00 00
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 6E85AAAC
6E85AA7A: 41 89 9F 40 55 D9 F9 - mov [r15-0626AAC0],ebx
6E85AA81: 41 89 8F C4 F4 D7 FF - mov [r15-00280B3C],ecx
6E85AA88: C1 EB 10 - shr ebx,10
6E85AA8B: 48 8B 1C DE - mov rbx,[rsi+rbx*8]
6E85AA8F: FF D3 - call rbx
6E85AA91: 41 8B 87 40 55 D9 F9 - mov eax,[r15-0626AAC0]
6E85AA98: EB 15 - jmp 6E85AAAF
6E85AA9A: 48 BE 00 F0 DF 8D FE 7F 00 00 - mov rsi,parallel_n64_next_libretro.dll+624F000
6E85AAA4: 89 D8 - mov eax,ebx
6E85AAA6: 81 E3 FF FF 7F 00 - and ebx,RetroArch.exe+3FFFFF
// ---------- INJECTING HERE ----------
6E85AAAC: 89 0C 1E - mov [rsi+rbx],ecx
// ---------- DONE INJECTING ----------
6E85AAAF: 48 BE E0 FC 1F 8F FE 7F 00 00 - mov rsi,parallel_n64_next_libretro.dll+764FCE0
6E85AAB9: 89 C3 - mov ebx,eax
6E85AABB: C1 EB 0C - shr ebx,0C
6E85AABE: 80 3C 1E 00 - cmp byte ptr [rsi+rbx],00
6E85AAC2: 75 41 - jne 6E85AB05
6E85AAC4: 48 BF C0 FC 9F 8E FE 7F 00 00 - mov rdi,parallel_n64_next_libretro.dll+6E4FCC0
6E85AACE: 89 D9 - mov ecx,ebx
6E85AAD0: 48 8B 1C DF - mov rbx,[rdi+rbx*8]
6E85AAD4: 48 8B 9B 00 00 00 00 - mov rbx,[rbx+00000000]
6E85AADB: 48 BF B0 7F E0 87 FE 7F 00 00 - mov rdi,parallel_n64_next_libretro.dll+257FB0
}
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4708
|
Posted: Sun Jun 09, 2024 12:35 am Post subject: |
|
|
Don't put the aob pattern in quotes
| Code: | aobscan(foo,12 34 AB CD) // good
aobscan(foo,"12 34 AB CD") // bad |
Also, use a more unique symbol than "INJECT". If there's more than one script active all using "INJECT" as a registered symbol, very bad things will happen when you disable those scripts.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
retrocheats How do I cheat?
Reputation: 0
Joined: 14 May 2024 Posts: 8
|
Posted: Sun Jun 09, 2024 6:40 am Post subject: |
|
|
| That fixed it, and my script worked.
|
|
| 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
|
|