Jump to content

4 posts in this topic

Recommended Posts

Posted (edited)

Hi, I'm having a problem with hooking methods in a Unity game using offsets.

When the hooked method gets called, the game crashes. This is how I hook (address taken from il2cpp dumps):

void (*Player_Update)(void* self); 
void _Player_Update(void* self) { 
  Player_Update(self);
} 

void setup() {
  HOOK(0x1B01BE0, _Player_Update, Player_Update);
}

When setting up a menu I'm also targeting UnityFramework:

void setupMenu() {
  menu = [[Menu alloc] 
            ....

  [menu setFrameworkName: "UnityFramework"];

  setup();
}

Does anybody have an idea what could be wrong with the code? Could it be game's anti-cheat? What steps do I take to find the problem. With a debugger and trace back what exactly offsets in the crash log mean? The game is Standoff 2, if that makes a difference. I'm quite confused, sorry for a long question :)Thanks in advance!

image.png?width=490&height=873

Updated by ExeRhythm
Posted

Are you using Dopamine jailbreak? They seem to have an issue with hooks right now from our experience.

Posted

Can't manage to get palera1n working - throws an error, and that's another question why.

Anyway, I tried using same techniques on another Unity game, and hooks work there flawlessly. So I guess it was the anti-cheat after all. Thanks for the help

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines