 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
number1286 How do I cheat?
Reputation: 0
Joined: 01 Sep 2011 Posts: 2
|
Posted: Thu Sep 01, 2011 1:21 pm Post subject: Consistant Handle on a Process ... |
|
|
Hello All -
I dont usually post on forums, just read. But, I've been doing lots of research on this particular problem and am unable to find any concrete literature to educate myself. I'll try to provide enough information to make my question clear, no more no less. If my questions seems too ambiguous to answer, please notify me. Without further ado ...
I have been dabbling with Cheat Engine 6.1 and feel I have a pretty strong grasp on its usage. I'm a computer science major and have plenty of programming experience. I've developed a little C-program to simply iterate through an array of offsets (which were obviously found via Cheat Engine), after the iteration is complete I arrive at the memory address which holds the score of my game (Spider Solitaire). This is no problem, finding offsets and navigating through pointers is non-issue. I go through and through the pointers untill I arrive at a pretty green colored memory address - By that I mean it's colored green by Cheat Engine meaning it's static.
That green memory address is where I start my function which successfully adds the offset, reads the value, adds the offset to that read value, reads the new value. Okay now I can state my issue: That pretty green (static) memory address, changes when I close Spider Solitaire. More specifically, when I terminate Spider Solitaire, and reopen it, I trace pointers, and I arrive at a different green memory address. I need to figure out how to make my little C-program not "break" every time Spider Solitaire is terminated and reopened.
I've seen psudocode where people write ("Spider Solitaire.exe" + Offset). How can I determine the address of "SpiderSolitaire.exe" in C? Or is that not what I need to do? Those pretty green memory addresses that I arrive at change upon termination (and subsequent reopen), so they cannot be hard coded into a little program, so what can be? I again may be wrong but, am I looking for the base address to the process? Alot of terminology is used very loosely and it creates confusion on my part.
Thanks for reading, I look forward to your assistance. The answer very well may be right underneath my nose?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25717 Location: The netherlands
|
Posted: Thu Sep 01, 2011 2:18 pm Post subject: |
|
|
You are looking for the base address of the module
You can use the psapi library to get it, or use toolhelp32snapshot followed by module32first/module32next to find tha base address (which coincidentally matches the hmodule value)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
number1286 How do I cheat?
Reputation: 0
Joined: 01 Sep 2011 Posts: 2
|
Posted: Thu Sep 01, 2011 3:58 pm Post subject: Thanks! |
|
|
Short, accurate, and best of all - helpfull!
Thanks Dark Byte!
|
|
Back to top |
|
 |
|
|
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
|
|