vlerkzicht How do I cheat?
Reputation: 0
Joined: 15 Aug 2024 Posts: 1
|
Posted: Thu Aug 15, 2024 4:09 pm Post subject: Achievement Unlockers |
|
|
Hey guys,
I'm trying to reverse engineer a lua script from a Hollow Knight achievement unlocker:
[ENABLE]
{$lua}
if (syntaxcheck) then return end
mono_invoke_method(nil, mono_findMethod('','GameManager', 'AwardAchievement'), getAddress('[baseAddress]-1A0'), {{type = vtString, value = "ASCENSION"}})
{$asm}
[DISABLE]
I've found everything I need for the game I'm hacking (Mundaun), but I don't understand what is being referenced by this code:
getAddress('[baseAddress]-1A0'
ChatGPT tells me to JIT from the 'GameManager' class to find the base address of that class, but JIT is greyed on that class. Can someone help me point out what I'm looking for here?
|
|
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3327
|
Posted: Sat Aug 17, 2024 4:56 am Post subject: Re: Achievement Unlockers |
|
|
| vlerkzicht wrote: |
I've found everything I need for the game I'm hacking (Mundaun), but I don't understand what is being referenced by this code:
getAddress('[baseAddress]-1A0'
|
I'd assume it's either a static address found using AOB scan, or a pointer registered by other means.
Have a look at the game and the code to find out.
|
|