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 


issue with address addition

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

Joined: 23 Nov 2012
Posts: 8

PostPosted: Mon Sep 14, 2020 8:26 pm    Post subject: issue with address addition Reply with quote

For the life of me I cannot figure out why I cannot access this address that I want directly, but somehow I can do it indirectly.

For reference, the address I want is [[rax+14]+0C]. It is a float value for health. It moves around frequently but utilizing an assembly script I always know what it is being shifted to.

via script I'm using
Code:
 mov [hpad],rax

then accessing [rax+14], and in the address below using readInteger(0x...) to get the final address which is correct.

Whenever I try to access it in a single line (whether that is through [[rax+14]+0C] or through the manual pointer add), this mysterious "D" appears before the rest of the address.

Does this have something to do with 32 bit vs 64 bit? What are your thoughts? Thanks for the insight[/code]



why.png
 Description:
In the address list I have the direct address I need. In the manual pointer add, there's a "D" at the beginning. Why
 Filesize:  16.45 KB
 Viewed:  1129 Time(s)

why.png


Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Mon Sep 14, 2020 9:36 pm    Post subject: Reply with quote

since you havent uploaded the script so i cannot help much but by the look of it you need to pass the value of
Quote:
hpad
because apparently its value is the address
Back to top
View user's profile Send private message
Blunderbread
How do I cheat?
Reputation: 0

Joined: 23 Nov 2012
Posts: 8

PostPosted: Wed Sep 16, 2020 9:30 am    Post subject: Reply with quote

Solved the issue:

1) I was referencing RAX, which had the extra "D" in front of the address because it was 64 bit. moving the address to a 32 bit register (I used ECX) instead correctly referenced the address, which in this case would have been 992CC270.

2) I was trying to move the address with an offset of C in my script, but instead I needed to add C.

Final 'newmem' script:
Code:

  push ecx
  mov ecx,[eax+14]
  add ecx,C
  mov [ecx],41a00000  //(20.00 float)
  pop ecx


I realize that I never posted my script but the concept still applied in the Add address window shown in the screenshot

edit: I scrapped "hpad" altogether as I was able to get the address to reference correctly in the script
Back to top
View user's profile Send private message
Oxijen
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 163
Location: On The Moon

PostPosted: Wed Sep 16, 2020 10:35 am    Post subject: Reply with quote

you can use dq too
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