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 Cheat Engine ingores memory regions?

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

Joined: 19 Aug 2016
Posts: 10

PostPosted: Thu Aug 25, 2016 3:42 am    Post subject: How Cheat Engine ingores memory regions? Reply with quote

I'm stuck... Why? well because Cheat Engine ignores memory regions, yes, sounds weird, but it's true and i dont know why it does that.
Let me give you an example, we want to find the addresses with the following value: 00 A0 BA 85 (Cheat Engine founds: 2k Results) (My program founds: 35k Results [Them're ok, i've checked it with Memory Browser from CE, and them has the correct value]) then what that means? it means that Cheat Engine ignores memory regions to make scans faster, but i dont know in what it's based to ignore regions, so i dont want my scan to get 33k Results more than Cheat Engine, it's not all, i'm just curious, why the fuck Cheat Engine ignores regions? if someone can help me understanding in deep i'd be really grateful.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Thu Aug 25, 2016 5:21 am    Post subject: Reply with quote

Below the "Value Type" Dropdown, you have a small box titled with "Memory Scan Options".
With these you can determine/tell CE what kind of memory to scan.
I guess you got so many results more becuase you don't care what memory the value is in.

If you want CE to scan everything it has access to, right-click on the "Writable" checkbox and select "Preset: Scan all memory", uncheck the "FastScan" option, goto Edit -> Settings -> Scan Settings and tell CE to also check the "MEM_MAPPED" memory.
Then search for your value again.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Aug 25, 2016 6:08 am    Post subject: Reply with quote

By default CE skips MEM_MAPPED regions and readonly memory as well.

Also, is your scanner injected? If it is and you store the found value, your scanner could have found that storage. And each addrrss in there gets added again...

_________________
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
Adversities
Newbie cheater
Reputation: 0

Joined: 19 Aug 2016
Posts: 10

PostPosted: Thu Aug 25, 2016 12:33 pm    Post subject: Reply with quote

Dark Byte wrote:
By default CE skips MEM_MAPPED regions and readonly memory as well.

Also, is your scanner injected? If it is and you store the found value, your scanner could have found that storage. And each addrrss in there gets added again...


You guys answered perfectly, now i understand, thanks a lot.

So i've one last question: How can i know when a memory region isn't writable? and what exactly does Cheat Engine when you check "Fast Scan".
I want to know this because i want my program to scan almost exactly as Cheat Engine. Thanks you a lot Dark Byte Smile

Edit: Figured it out, now it scans in these two ways and gets exactly the same addresses as Cheat Engine
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Aug 26, 2016 3:01 am    Post subject: Reply with quote

Cool you figured it out, for everyone else asking the same question.

If you call VirtualQuery(Ex) on an address, you get a pointer to a [url=https://msdn.microsoft.com/de-de/library/windows/desktop/aa366775(v=vs.85).aspx]MEMORY_BASIC_INFORMATION[/url] structure. This structure contains the members "Protect" and "AllocationProtect", which refer to the [url=https://msdn.microsoft.com/de-de/library/windows/desktop/aa366786(v=vs.85).aspx]Memory Protection Constants[/url] with which you can easily determine the access state of a specific region.

As to the Fast Scan option, with this enabled, CE will skip all addresses which are not divisible without remainder by the value specified.
So i.e. with the default Fast Scan value for an Integer (which is 4), there will only be address in the address list, which end on 0, 4, 8 and C.


Last edited by hhhuut on Fri Aug 26, 2016 2:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Adversities
Newbie cheater
Reputation: 0

Joined: 19 Aug 2016
Posts: 10

PostPosted: Fri Aug 26, 2016 2:23 pm    Post subject: Reply with quote

Oh yeah i figure it out but i forgot the fast scan thingy can you please explain it completely? sorry i didn't get what it exactly does (maybe later i understand this without an answer but maybe not, and your help is so great)
Back to top
View user's profile Send private message
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