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 


Help with the original code

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

Joined: 14 Feb 2024
Posts: 2

PostPosted: Wed Feb 14, 2024 7:52 am    Post subject: Help with the original code Reply with quote

Code:
newmem:
  mov r15d,0
code:
  mov [rdx+08],r15d
  jmp game.exe+29DB321
  jmp return


29DB321 This figure is different for each person, how to make the script work correctly for all people
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Wed Feb 14, 2024 10:05 am    Post subject: Reply with quote

To jump to a location relative to the injection point you select the injection point in the disassembler window. Press Ctrl + Enter to display relative offsets then scroll down to the address, in this case: game.exe+29DB321, and look at the relative offset. Then you can adjust the script as necessary:
Code:

Code:
newmem:
  mov r15d,0
code:
  mov [rdx+08],r15d
  jmp injectionPointName+RelativeOffset //game.exe+29DB321
  jmp return


But this isn't guaranteed to work across different versions as there may be other instructions which make the relative address further, or nearer, than what you have.
Back to top
View user's profile Send private message
Gr1fON
How do I cheat?
Reputation: 0

Joined: 14 Feb 2024
Posts: 2

PostPosted: Thu Feb 15, 2024 3:35 am    Post subject: Reply with quote

Thanks a lot for helping
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