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 


Regarding the issue of module address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Wed Dec 11, 2024 1:01 am    Post subject: Regarding the issue of module address Reply with quote

How to display module address(fl.Address)
Code:
function FindAndReplaceDoubleB(find)
   ms=createMemScan()
   ms.firstScan(soValueBetween, vtDword, rtTruncated, find,find,0,0xffffffffffffffff,'+W*X-C', fsmAligned,'4', false, false, false, false)
   fl=createFoundList(ms)
   ms.waitTillDone()
   fl.initialize()
   if fl.Count>0 then
     for i=0,7 do
        print(fl.Address[i])
       end
   end
   fl.destroy()
   ms.destroy()
 end



Module address.jpg
 Description:
 Filesize:  26.61 KB
 Viewed:  8802 Time(s)

Module address.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Dec 11, 2024 1:48 am    Post subject: Reply with quote

look up getNameFromAddress
_________________
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
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Wed Dec 11, 2024 4:24 am    Post subject: Reply with quote

Dark Byte wrote:
look up getNameFromAddress

I found it in the Lua help documentation, while the opposite is getAddressFromName.
I have another question, how do you determine that it is a static base address and change it to green
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Dec 11, 2024 11:01 am    Post subject: Reply with quote

when inModule(address) returns true
_________________
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
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Thu Dec 12, 2024 6:08 am    Post subject: Reply with quote

Dark Byte wrote:
when inModule(address) returns true
Oh My God, this is great. I still need to read more help files. There are too many good things in it.
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Tue May 06, 2025 1:42 am    Post subject: Reply with quote

Dark Byte wrote:
when inModule(address) returns true
What should I do when encountering this type of module


why.jpg
 Description:
 Filesize:  52.19 KB
 Viewed:  2220 Time(s)

why.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed May 07, 2025 1:00 am    Post subject: Reply with quote

Use that modulename+offset like that

no idea what those addresses mean

_________________
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
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 202

PostPosted: Wed May 07, 2025 1:35 am    Post subject: Reply with quote

Dark Byte wrote:
Use that modulename+offset like that

no idea what those addresses mean


1.The list on the left side of the figure contains the addresses of registers (EAX, EDX, EBX...)
2.Search them again to find the base address (this is a feature provided by CE)
3.CE should have processed the strings in the module, which is correct
There may be symbols in the module address, so the third parameter should be set to false.
Code:
getNameFromAddress(address,ModuleNames OPTIONAL=true, Symbols OPTIONAL=true, Sections OPTIONAL=false): Returns the given address as a string. Registered symbolname, modulename+offset, or just a hexadecimal string depending on what 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 Lua Scripting 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