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 


How to add address, calculated with AOB injection ?

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

Joined: 13 Oct 2016
Posts: 1

PostPosted: Thu Oct 13, 2016 11:01 am    Post subject: How to add address, calculated with AOB injection ? Reply with quote

I don't want to add it with *ADD ADDRESS MANUALLY* function, I want to do it from my script. For instance, I have a code:

Code:
code:
  mov [ecx+5c],ecx
  mov edx,[ebp-20]
  jmp return


I need to copy ECX value or ECX+4C value or both of them right here:
Code:

ACTIVE  DESCRIPTION  ADDRESS  TYPE  VALUE
                                      ECX
                                      ECX+5C


Of course, ecx and ecx+5c its just address of structure and address inside of this structure.


P.S. I do it for online project, so finding an appropriate pointer ain't no option because they change every time I start a new game.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Oct 13, 2016 11:17 am    Post subject: Reply with quote

Well, I highly doubt that's the correct code, but I'll use it as your reference.
Code:
label(myvar)

code:
  mov [myvar],ecx
  mov [ecx+5c],ecx
  mov edx,[ebp-20]
  jmp return

myvar:
  dd 0

INJECT:
  // blah blah

registersymbol(myvar)
Add address manually: [myvar]+4c
Back to top
View user's profile Send private message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Tue Nov 15, 2016 9:06 am    Post subject: Reply with quote

How do u use a negative offset?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Nov 15, 2016 8:04 pm    Post subject: Reply with quote

With a minus sign?
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 Tutorials -> Auto Assembler tutorials 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