Page 1 of 1

Can't figure out how to fix this: AOB's plyAvatarINJECT Error: Not all Results Found

Posted: Thu Dec 05, 2024 2:51 am
by ziggystarburst
Hey there, so I am new to gamehacking and to using a cheat engine and I am getting an error I can't seem to figure out. I feel like I've tried everything and likely missed a simple step with setting up the .CT

When I open the .CT, I get the Code list/Pause popup menu with two addresses and names:

Address: GameAssembly.dll+335507C
Name: craft :mov rdx, [rdi+48]

AND

Address: GameAssembly.dll+352BF71
Name: MemoryFromCode: mov rdi,[rsi+60]



When I try to run a script by clicking the box to make it Active, I am unable to and get the following error:
Error when scanning AOB's plyAvatarINJECT Error: Not all Results Found


Thank you for any guidance you can give on this. I run the game through Steam on Windows 11 and am using Cheat Engine 7.5


Here is a sample of one of the codes that is showing an error:

Code: Select all

[ENABLE]

aobscanmodule(plyAvatarINJECT,GameAssembly.dll,48 8B 99 60 01 00 00 48 8B F9) // should be unique
alloc(newmem,$1000,plyAvatarINJECT)

label(code)
label(return)

alloc(AvatarData,4,plyAvatarINJECT)
registersymbol(AvatarData)
newmem:
mov [AvatarData],rcx

code:
  mov rbx,[rcx+00000160]
  jmp return

plyAvatarINJECT:
  jmp newmem
  nop 2
return:
registersymbol(plyAvatarINJECT AvatarData)

[DISABLE]

plyAvatarINJECT:
  db 48 8B 99 60 01 00 00

unregistersymbol(*)
dealloc(*)

{
// ORIGINAL CODE - INJECTION POINT: GameAssembly.dll+E40B0F

GameAssembly.dll+E40AFA: CC                    - int 3
GameAssembly.dll+E40AFB: CC                    - int 3
GameAssembly.dll+E40AFC: CC                    - int 3
GameAssembly.dll+E40AFD: CC                    - int 3
GameAssembly.dll+E40AFE: CC                    - int 3
GameAssembly.dll+E40AFF: CC                    - int 3
Mdl.Avatar.PlayerAvatar.get_MovementEnabled: 48 89 5C 24 08        - mov [rsp+08],rbx
GameAssembly.dll+E40B05: 48 89 74 24 10        - mov [rsp+10],rsi
GameAssembly.dll+E40B0A: 57                    - push rdi
GameAssembly.dll+E40B0B: 48 83 EC 20           - sub rsp,20
// ---------- INJECTING HERE ----------
GameAssembly.dll+E40B0F: 48 8B 99 60 01 00 00  - mov rbx,[rcx+00000160]
// ---------- DONE INJECTING  ----------
GameAssembly.dll+E40B16: 48 8B F9              - mov rdi,rcx
GameAssembly.dll+E40B19: 48 85 DB              - test rbx,rbx
GameAssembly.dll+E40B1C: 0F 84 88 00 00 00     - je GameAssembly.dll+E40BAA
GameAssembly.dll+E40B22: 80 3D 46 89 BA 06 00  - cmp byte ptr [GameAssembly.dll+79E946F],00
GameAssembly.dll+E40B29: 75 18                 - jne GameAssembly.dll+E40B43
GameAssembly.dll+E40B2B: 48 8D 0D 7E BE 71 06  - lea rcx,[GameAssembly.dll+755C9B0]
GameAssembly.dll+E40B32: E8 59 33 5E FF        - call GameAssembly.il2cpp_field_set_value+6720
GameAssembly.dll+E40B37: F0 83 0C 24 00        - lock or dword ptr [rsp],00
GameAssembly.dll+E40B3C: C6 05 2C 89 BA 06 01  - mov byte ptr [GameAssembly.dll+79E946F],01
GameAssembly.dll+E40B43: 48 8B 73 10           - mov rsi,[rbx+10]
}

Re: Can't figure out how to fix this: AOB's plyAvatarINJECT Error: Not all Results Found

Posted: Thu Dec 05, 2024 12:00 pm
by sbryzl
Game was probably updated so that array of byte no longer appears in it. If you are lucky the code is the same and only the data table offsets have changed so you can scan for the updated aob with a wildcard offset. Try searching for array of byte 48 8B 99 ?? ?? 00 00 48 8B F9 48 85 DB or more or less of those bytes or more or less wild cards.