Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


AOB injection, Unable to get pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
imperiiarhk
How do I cheat?
Reputation: 0

Joined: 08 Jun 2021
Posts: 1

PostPosted: Tue Jun 08, 2021 8:41 am    Post subject: AOB injection, Unable to get pointer Reply with quote

Hi, very amateur cheater here.

I am creating a very simply table for editing HP and I found the function as follows

Code:
movss [r14+00000120],xmm5


r14+120 is the address for the HP, so I tried to get the pointer by adding the following to the AOB injection

Code:
globalalloc(HPpointer,64)

newmem:
  mov [HPpointer],r14


and setting up a pointer with HPpointer+120

But the address do not match with the actual HP address (since I found that first and got the function by doing "find out what writes to this address")

Anyone know the reason why this didn't work? cause I had success getting the pointers this way in other games.

Thanks
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Tue Jun 08, 2021 10:59 am    Post subject: Reply with quote

1: did you check if that instruction accesses other addresses?
2: the globalalloc generally won't be within +-2GiB of the code injection to use RIP-relative addressing, so that instruction will only compile if you're lucky. Use alloc / registersymbol, pass a third parameter to globalalloc as well, or address it through a register.
3: the size of allocs is in bytes, not bits. Changing 64 to 8 is more appropriate.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites