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 


C++ - Searching ALL memory addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Tue Oct 29, 2013 5:06 pm    Post subject: C++ - Searching ALL memory addresses Reply with quote

Hey guys!
What I'm trying to do is make something a bit similar to how Cheat Engine works, Only a different goal.

When you search for an int, a string, a double, whatever it is in Cheat Engine, It will find EVERY address for that number or word or whatever it is, almost INSTANTLY.

How does this work?
I've made a program, which I run, and it will try to find every address with "13" (An in-game number I need to change) and will change it to 50.
The address starts at 0x01000000 and adds +4 every frame to search for the next number. (So if there is 13 at 0x01000000, it will change it to 0, then add 4, and 4 keeps getting added) - This is because all addresses for what I'm looking for is a multiple of 4.

So what I'm trying to accomplish is changing EVERY address that has a variable of "13", to 0. But this normally takes about 5-10 minutes to get EVERY address I need.
I want it to change in an instant.

How can this be done using C++??? (Windows)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25839
Location: The netherlands

PostPosted: Tue Oct 29, 2013 5:58 pm    Post subject: Reply with quote

Don't call ReadProcessMemory on every single address. Group them
_________________
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
View user's profile Send private message MSN Messenger
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Sun Nov 10, 2013 7:33 pm    Post subject: Reply with quote

How do you suppose I do that???
I made a void function which calls WriteProcessMemory.
So you type HackAddress(0x________,_,_); and it will change that address to the choice, and increase by 4.
So if you wanted to change 4 to 8, starting at 0x05000000, you could do:
HackAddress(0x05000000,4,Cool;
and it would output:
Changed address 0x0500000000 to 8!
Changed address 0x0500000004 to 8!
Changed address 0x0500000008 to 8!
(As long as they were a variable of 4, anyways)
And I had done this multiple times like...

HackAddress(0x05000000,4,Cool;
HackAddress(0x06000000,4,Cool;
HackAddress(0x07000000,4,Cool;
(These are examples)

Yet it still takes FOREVER to replace everything.
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