Jump to content

I need help with my hook please!!!


Go to solution Solved by AlyssaX64,

11 posts in this topic

Recommended Posts

Posted (edited)

I just started leaning hook. and i successfully hook a float method with no parameter with return value.

But Now i am trying to hook method with multiple parameters but it give me game crash i dont know what i am doing wrong and thats why i am help seeking help.
First let me share offsets of those method:
 

// BasePlayerController
// Token: 0x06002418 RID: 9240 RVA: 0x0000C02C File Offset: 0x0000A22C
[Token(Token = "0x6002418")]
[Address(RVA = "0xF3B4A8", Offset = "0xF3B4A8", VA = "0xF3B4A8")]
[IDTag(1)]
public bool FastChangeAnimatorStates(int layer, int stateHash, bool allowReplay = false, float normalizedTime = 0f)
{
    return default(bool);
}

// BasePlayerController
// Token: 0x060023FA RID: 9210 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x60023FA")]
[Address(RVA = "0xF38F8C", Offset = "0xF38F8C", VA = "0xF38F8C", Slot = "9")]
protected virtual void LateUpdate()
{
}



i am using those above method and their offsets. here is my code:

bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);

    void (*old_lateUpdate)(void *myplayer);
    void lateUpdate(void *myplayer){
        if (myplayer != NULL){

            //test2 is a button for activating i am using batchh modmenu
            if (test2){
                FastChangeAnimatorStates(myplayer, 0, 531867845, true, 0.f);
            }
        }
        return old_lateUpdate(myplayer);
    }

 

this is in another file  where i add hook. again i am using batchh modmenu from here iosgods
 

  static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        //here add your hooks.

        HOOK(0xF38F8C, lateUpdate, old_lateUpdate);
   
    });


 please check if anything wrong with my code or idk.
 please any help is appreciated . thanks in advance

Updated by RehmanAfridi
  • Solution
Posted


 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(myplayer, 0, 531867845, true, 0.f);
            }
        }
         old_lateUpdate(_this);
    }

@RehmanAfridi try it like this!!!

Posted

The hook doesn’t have any problem, you can also try HOOK_DOPA if you are on rootless, also be sure the code is correct, try using Alyssa one

Posted
  On 8/30/2024 at 9:43 AM, RehmanAfridi said:

@AlyssaX64 first parameter "myplayer" shouldnt this be _this  bcoz it give me error "use of undecleared identifier"? sorry i am still learning.  

Expand  

i have used it like this and it worked thanks you
 

 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(_this, 0, 531867845, true, 0.f);
            }
         old_lateUpdate(_this);
    }

 

Posted
  On 8/30/2024 at 9:56 AM, RehmanAfridi said:

i have used it like this and it worked thanks you
 

 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(_this, 0, 531867845, true, 0.f);
            }
         old_lateUpdate(_this);
    }

 

Expand  

Doesn't matter if you use _this , _That or _myplayer . make sure it's same

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Exfil: Loot & Extract v3.0.2 Debug Menu [+10 Cheats]
      Modded/Hacked App: Exfil: Loot & Extract By Kwalee Ltd
      Bundle ID: com.eightsec.roguehero
      iTunes Store Link: https://apps.apple.com/us/app/exfil-loot-extract/id6448720577?uo=4


       

      🤩 Hack Features

      - Debug Menu (Enable and debug menu will appear)
       
        • Winner
        • Like
      • 5 replies
    • Exfil: Loot & Extract v3.0.2 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Exfil: Loot & Extract By Kwalee Ltd
      Bundle ID: com.eightsec.roguehero
      iTunes Store Link: https://apps.apple.com/us/app/exfil-loot-extract/id6448720577?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and debug menu will appear)
        • Like
      • 1 reply
    • [ Re:Dive KR ] 프린세스 커넥트! Re:Dive Cheats v10.7.1 +3
      Modded/Hacked App: 프린세스 커넥트! Re:Dive By Kakao Games Corp.
      Bundle ID: com.kakaogames.pcr
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-re-dive/id1452123050?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/148422-%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-redive-cheats-v403-3/
        • Informative
        • Haha
        • Thanks
        • Winner
        • Like
      • 111 replies
    • Lollipop 3: Match 3 Puzzles v25.0401.01 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4
       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 
        • Like
      • 4 replies
    • Lollipop 3: Match 3 Puzzles v25.0401.01 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
        • Like
      • 6 replies
    • Dream Resort - Match 3 Games v1.2.9 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Winner
        • Like
      • 7 replies
    • Dream Resort - Match 3 Games v1.2.9 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Like
      • 8 replies
    • Disney Solitaire v0.44.1 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Like
      • 3 replies
    • Disney Solitaire v0.44.1 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 4 replies
    • Matching Story v1.36.02 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Haha
        • Winner
        • Like
      • 13 replies
    • Matching Story v1.36.02 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Haha
        • Like
      • 18 replies
    • WAR OF THE VISIONS FFBE Cheats v11.3.6 +3 [ Multiply Damage & Defense ]
      Modded/Hacked App: FINAL FANTASY BE:WOTV By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbeww
      iTunes Store Link: https://apps.apple.com/us/app/final-fantasy-be-wotv/id1484937345?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/173485-final-fantasy-bewotv-v730-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/173483-war-of-the-visions-ffbe-cheats-v740-3-multiply-damage-defense/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 211 replies
×
  • 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