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 


Modular addresses?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
navarone
Advanced Cheater
Reputation: 2

Joined: 29 May 2010
Posts: 72

PostPosted: Tue Jul 06, 2010 7:57 pm    Post subject: Modular addresses? Reply with quote

What are these?

They have the same format as a pointer but they don't work like one. Cheat Engine only gives them for static addresses (Green addresses).

For example: gamedll.dll+245D38

I want to implement something in C# that uses Modular addresses to get the real static addresses. (Because even static addresses are changing =.=)


btw pressing Ctrl+M in disassembler gives the wrong ones. I have to search for byte array, add it to my address list then click "Change address" to get the right one. Or there's a difference between the two?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Tue Jul 06, 2010 8:40 pm    Post subject: This post has 1 review(s) Reply with quote

It uses the 'base' address of the module and adds an offset. In your case:
Base: gamedll.dll
Offset: 245D38

gamedll.dll is allocated at a specific point in memory, the base being where it starts at. You can find the base with Cheat Engine by opening the debugger window and going to: View -> Enumerate DLL's and Symbols.

In C# you can obtain the modules base address by using the Process and ProcessModule objects.

Process:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

ProcessModule:
http://msdn.microsoft.com/en-us/library/system.diagnostics.processmodule.aspx

You can also use direct API calls (PSAPI or tlhelp32) but are not needed since .NET wraps these for you with the above classes.

_________________
- 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