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 


Reading from ASM to follow addresses

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

Joined: 20 Oct 2015
Posts: 6

PostPosted: Thu Nov 26, 2015 8:14 am    Post subject: Reading from ASM to follow addresses Reply with quote

I found the ASM function in a game which spawns the memory addresses for where specific items are in the game on the floor.

When I use the "fin out what addresses this instruction accesses" I can see the memory addresses populating with the values I want.

Can anyone give me a brief description of how I can extract these addresses as they come so I can read the data into my program?

Thank you very much for any help with this.
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 Nov 26, 2015 9:39 am    Post subject: Reply with quote

You would setup an injection at this location.
You might create a separate listing inside memory.
As a new address comes in, you look for a blank spot in your custom memory to record it.
And at a later time, you may go through that list and do whatever you want.
Clean it up once in awhile, etc.
Or don't keep a separate list and simply immediately update whatever you want updated.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Thu Nov 26, 2015 10:14 am    Post subject: Reply with quote

If you want everything done automatically, then you'll also need to find some instruction that's run when items despawn or are otherwise removed. Then, just allocate some memory (2kb is enough for 512 32-bit addresses or 256 64-bit addresses).

In that asm you found, make a code cave that loops through your memory to check to see if that address is already in your list. If it is, then just continue with program execution. If it's not and it reaches a null address (00000000), then add it to the list right there, and call some Lua function that adds it to your table.

When you find some instruction that's run when items are removed, then you can do the same process, except that you are removing and item from that list and calling a Lua function to clean up your table.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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