View previous topic :: View next topic |
Author |
Message |
Y.A.K.E Advanced Cheater Reputation: 0
Joined: 15 Jul 2019 Posts: 51
|
Posted: Mon Apr 04, 2022 10:03 am Post subject: How to get the address of the last function? |
|
|
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?
Description: |
|
Filesize: |
161.27 KB |
Viewed: |
1502 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Mon Apr 04, 2022 11:46 am Post subject: |
|
|
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 |
|
|
Y.A.K.E Advanced Cheater Reputation: 0
Joined: 15 Jul 2019 Posts: 51
|
Posted: Mon Apr 04, 2022 1:00 pm Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Mon Apr 04, 2022 2:00 pm Post subject: |
|
|
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 |
|
|
Y.A.K.E Advanced Cheater Reputation: 0
Joined: 15 Jul 2019 Posts: 51
|
Posted: Tue Apr 05, 2022 2:08 am Post subject: |
|
|
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 |
|
|
|