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 read value of register and add into cheat list?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Mon Apr 20, 2015 7:43 pm    Post subject: how to read value of register and add into cheat list? Reply with quote

hi. title should describe my issue. i need a way to read value of specific register and use it in cheat list.
i usually like to use pointer scans but this game does not seem to have any pointers for this specific cheat so im forced to use instructions or aob, but this way i can only find the breakpoint that writes to the address.

so basically i found points and i want to edit them. works great, but when i restart game. address changes obviously and pointers are dynamic too.

maybe there's easier way?

but right now only thing i can think of is to read register of the breakpoint and add it into cheat list and then edit it.

i looked around on forum and found somebody's post that is similar, so i copied that code and tried to modify to work for me, but it doesn't do anything.
can someone pls look at my code and tell me what i did wrong?

Code:
alloc(newmem,150,"game.exe"+1238090)
alloc(points,10)
label(returnhere)
label(exit)

newmem:
mov [points],rdx
mov [rdx+rcx*8],rax
jmp game.exe+1238090

exit:
jmp returnhere

"game.exe"+1238090:
jmp newmem
nop
nop
nop
nop
returnhere:


i got parts of this code from some topic on ce forums where someone tried reading the value of register.

so rdx holds the address for the points and rax holds the value for total points that i have. if i could get value of either, it would be fine. i tried reading both, but fails.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Tue Apr 21, 2015 12:32 pm    Post subject: Reply with quote

Register a symbol and write the registers data into that objects address space. Then you can use the symbol in the cheat table. So with what you have already, just add:

Code:
registersymbol(points)


Under your label(exit).

Then you can use 'points' as an address in your cheat table.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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