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 


Search Memory regions of size requests.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 136

PostPosted: Fri Sep 14, 2018 5:36 pm    Post subject: Search Memory regions of size requests. Reply with quote

function target:
step1 (01.png)
Automatically locate the specified size.(example:3000

step2
Result Output to 02.png[/list]



01.png
 Description:
 Filesize:  181.65 KB
 Viewed:  2689 Time(s)

01.png



02.png
 Description:
 Filesize:  192.39 KB
 Viewed:  2689 Time(s)

02.png


Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Sep 14, 2018 6:28 pm    Post subject: Reply with quote

https://forum.cheatengine.org/viewtopic.php?t=605209
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 136

PostPosted: Fri Sep 14, 2018 8:47 pm    Post subject: Reply with quote

FreeER wrote:
https://forum.cheatengine.org/viewtopic.php?t=605209


Thank you .LUA NOT WORK
LUA no Search locate the specified (.(example:3000
not support private regions
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Sep 15, 2018 8:25 am    Post subject: Reply with quote

Ah, yes. My bad, didn't pay enough attention at the time to what you wanted.

I don't believe CE has any direct lua access to those and I'm not sure how that information is accessed otherwise (I can guess it's either some winapi functions that are a bit annoying to use in lua or hooking windows allocation function). However you can always read from the memory region form itself, I did something similar with the heap list awhile back for someone who wanted an easy way to find the largest heap allocation.

Here's an example (though not an actual extension to just throw in the autorun folder)
https://github.com/FreeER/CE-Examples/blob/master/findMemoryRegions.lua

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 136

PostPosted: Sat Sep 15, 2018 5:45 pm    Post subject: Reply with quote

FreeER wrote:
Ah, yes. My bad, didn't pay enough attention at the time to what you wanted.

I don't believe CE has any direct lua access to those and I'm not sure how that information is accessed otherwise (I can guess it's either some winapi functions that are a bit annoying to use in lua or hooking windows allocation function). However you can always read from the memory region form itself, I did something similar with the heap list awhile back for someone who wanted an easy way to find the largest heap allocation.

Here's an example (though not an actual extension to just throw in the autorun folder)
https://github.com/FreeER/CE-Examples/blob/master/findMemoryRegions.lua



20180916074501.png
 Description:
 Filesize:  6.61 KB
 Viewed:  2629 Time(s)

20180916074501.png


Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Sep 15, 2018 5:48 pm    Post subject: Reply with quote

as it says you have to be attached to a process, like I said in my previous post it's just an example not an extension that you can put in the autorun folder and have it executed when CE starts up.
Try starting CE, attaching to a process, and copy/pasting the code into the lua engine (ctrl+alt+shift+L or memory viewer->tools->lua engine) and pressing execute

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 136

PostPosted: Sat Sep 15, 2018 6:01 pm    Post subject: Reply with quote

FreeER wrote:
as it says you have to be attached to a process, like I said in my previous post it's just an example not an extension that you can put in the autorun folder and have it executed when CE starts up.
Try starting CE, attaching to a process, and copy/pasting the code into the lua engine (ctrl+alt+shift+L or memory viewer->tools->lua engine) and pressing execute


Some PC GAME/EMU GAME region address is dynamic address. but region size is Always Static size.
and so
Get and locate region size = Get the dynamic starting address of the base address
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