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 to get the address of the last function?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 51

PostPosted: Mon Apr 04, 2022 10:03 am    Post subject: How to get the address of the last function? Reply with quote

game : Titan Quest
module: Game.dll
funtion: Game.GAME::LootLoader::Load

There are two identical functions
Lua only gets the address of the first.

How to get the address of the last function?



20220404235029.jpg
 Description:
 Filesize:  161.27 KB
 Viewed:  1502 Time(s)

20220404235029.jpg


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

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

PostPosted: Mon Apr 04, 2022 11:46 am    Post subject: Reply with quote

look at the parameters
_________________
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
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 51

PostPosted: Mon Apr 04, 2022 1:00 pm    Post subject: Reply with quote

Dark Byte wrote:
look at the parameters


getAddressSafe('Game.GAME::LootLoader::Load',true) is nil


printf("A: %X",getAddressSafe('Game.GAME::LootLoader::Load'))

local addr = getAddressSafe('Game.GAME::LootLoader::Load',true)
if (addr ~= nil) then printf("B: %X",addr) end

local bbb = getSymbolInfo('Game.GAME::LootLoader::Load')
printf("C: %X",bbb.address)


A: 5D0B7500
C: 5D0B7500
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Apr 04, 2022 2:00 pm    Post subject: Reply with quote

ok, assuming these symbols are from a PDB/internal and not a .net file, then the distance between the both load addresses will always be the same (unless there's an update inside the LootLoader class, and in which case, the 2nd load could be before the first one anyhow)

So Load+320 is the address of the instruction you're interested in

alternatively, you could do an aobscanregion with the address of Load and Load+500 and find the 2nd load that way.

_________________
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
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 51

PostPosted: Tue Apr 05, 2022 2:08 am    Post subject: Reply with quote

Dark Byte wrote:
ok, assuming these symbols are from a PDB/internal and not a .net file, then the distance between the both load addresses will always be the same (unless there's an update inside the LootLoader class, and in which case, the 2nd load could be before the first one anyhow)

So Load+320 is the address of the instruction you're interested in

alternatively, you could do an aobscanregion with the address of Load and Load+500 and find the 2nd load that way.


yes. you are right,
Load+320 is the address.
Thank you.
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