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 script read value

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

Joined: 07 Feb 2024
Posts: 2

PostPosted: Wed Feb 07, 2024 9:41 am    Post subject: AoB script read value Reply with quote

Hello.
I trying to make script that just find health, read it and show in value section of table, so i can edit it later. I already created aob injection with globalalloc command that seems working, but it's not what i really want. Right now what is doing is i activate script, then it's wait till i take damage, after i take damage it's show health value, but i want it just read value and show in table without taking damage. I know that health value stored in rbx, how can i make it always show in table, after i turn on script?

Code:
aobscanmodule(INJECT,Test.exe,F3 0F 11 83 E8 00 00 00 77) // should be unique
alloc(newmem,$1000,INJECT)

label(code)
label(return)

globalalloc(health,8)

newmem:

code:
  mov [health],rbx
  movss [rbx+000000E8],xmm0
  jmp return

INJECT:
  jmp newmem
  nop 3
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db F3 0F 11 83 E8 00 00 00

unregistersymbol(INJECT)
dealloc(newmem)
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Feb 07, 2024 9:49 am    Post subject: This post has 1 review(s) Reply with quote

When you initially find the health value, and you right-click on the address, you have the option to see what is writing or accessing it. You will want to see what is accessing, as this will give you not only the write instructions, but also the read instructions.

When the debugger pops up, you can see how often the instructions are getting accessed. When you get hit, only then will that instruction likely populate the list, but you may find that there are better injection points, that will allow you to have constant access to the health value, regardless of what is happening in the game.

If possible, choose an instruction from the debugger window that is constantly accessing your health value.
Back to top
View user's profile Send private message
dawg12
How do I cheat?
Reputation: 0

Joined: 07 Feb 2024
Posts: 2

PostPosted: Wed Feb 07, 2024 10:25 am    Post subject: Reply with quote

++METHOS wrote:
If possible, choose an instruction from the debugger window that is constantly accessing your health value.

Thank you. I find the right one and now it's always show value like i wanted.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Feb 07, 2024 10:36 am    Post subject: Reply with quote

Awesome.
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