Jump to content

Can't patch offsets with iGG - where am I going wrong?


Go to solution Solved by Laxus,

3 posts in this topic

Recommended Posts

I am working on a custom speed tweak for a Unity based game.

I'm on a jailed iPhone with iGG Jailed and Custom Offset Patcher injected. I also have Frida Gadget injected.

I have identified the correct Il2cpp instance function - which is a float value. The default value is 1.00. I want to increase it to 3.00 by changing the return value.

The get_Speed function:
[Address(RVA = "0x2FF3D4C", Offset = "0x2FF3D4C", VA = "0x2FF3D4C")]

LDR             S0, [X0,#0x10]
RET

The set_Speed function:
[Address(RVA = "0x2FF3D54", Offset = "0x2FF3D54", VA = "0x2FF3D54")]

STR             S0, [X0,#0x10]
RET

 

Using Frida I have verified that the set_Speed function is called at the time that I expect it, so I think the best way to do it would be to override the input value (set by a server call with some horrid protobuf thing). 

I have tried putting the offset as 2FF3D54 and the patch as 00F0271EC0035FD6 (which is just max float value and a return - FMOV S0, #31.00000000 RET). It doesn't work.

I then wondered if I needed to get the exact offset so I also use Frida to find the base address of UnityFramework and add 0x2FF3D54 to it - that didn't work either.

No matter what I try, the speed does not change. I have also tried the same technique with the get_Speed function, where I just return 3f. It doesn't work.

 

HOWEVER. 

If I use Frida to call the function with my own custom value (3f) then it works immediately (I do Il2cpp.gc.choose... to find the instance, then call the set_Speed method).

Where am I going wrong?

 

I've also tried this on an iPhone 6S with Dopamine jailbreak, get-task-allow, and with JIT enabled. Nothing changes.

  • Solution

From my modding experience the small function like that do nothing. You may need to find another working one

Try xref that function in IDA see if it lead to anywhere else

  • Like 1
  • Agree 1
On 9/14/2024 at 9:16 AM, Laxus said:

From my modding experience the small function like that do nothing. You may need to find another working one

Try xref that function in IDA see if it lead to anywhere else

 

Thanks for this tip. I was able to see a function further down that was altering the value, so targeting that made the patch work. All working now as expected (and I can stop wondering if I'm doing my offsets wrong now! 😅)

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

    • Prison Empire Tycoon-Idle Game Cheats v3.1 +2
      Modded/Hacked App: Prison Empire Tycoon-Idle Game by Digital Things Sociedad Limitada
      Bundle ID: com.codigames.idle.prison.empire.manager.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/prison-empire-tycoon-idle-game/id1508490923?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/128324-arm64-prison-empire-tycoon%EF%BC%8Didle-game-v102-jailed-cheats-2/

       
      iOS Hack Download Link: https://iosgods.com/topic/128322-arm64-prison-empire-tycoon%EF%BC%8Didle-game-cheats-all-versions-2/
      • 1,144 replies
    • Strongest Knight Cheats v1.10 +4
      Modded/Hacked App: Strongest Knight By Superlink Ltd.
      Bundle ID: com.idlemaster.hero
      iTunes Store Link: https://apps.apple.com/us/app/strongest-knight/id6738113239?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies
      - No Ads (Don't use the deb cheat unless you complete tutorial -- Finish use 4 ads boost quest)
       


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/190406-strongest-knight-v106-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/190404-strongest-knight-cheats-v106-4/
      • 23 replies
    • Gran Saga Idle:KNIGHTSxKNIGHTS Cheats v1.24.3 +2
      Modded/Hacked App: Gran Saga Idle:KNIGHTSxKNIGHTS By Kakao Games Corp.
      Bundle ID: com.piedpixels.gransagaidle
      iTunes Store Link: https://apps.apple.com/us/app/gran-saga-idle-knightsxknights/id6482985104?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/182761-gran-saga-idleknightsxknights-cheats-v101-2/
      • 252 replies
    • Archero Cheats v6.9.4 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
      • 15,777 replies
    • Virtual Families 3 v2.3.4 +3 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Virtual Families 3 By LDW Software, LLC
      Bundle ID: com.ldw.vf3
      iTunes Store Link: https://apps.apple.com/us/app/virtual-families-3/id1159846171?uo=4

       
       

      Hack Features

      - Unlimited Coins*
      - Unlimited Food*
      - Unlimited Pet Food*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      Jailbreak required iOS hacks: [Mod Menu Hack] Virtual Families 3 v2.3.4 +3 Cheats [ Coins + More ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 0 replies
    • Virtual Families 3 v2.3.4 +3 Cheats [ Coins + More ]
      Modded/Hacked App: Virtual Families 3 By LDW Software, LLC
      Bundle ID: com.ldw.vf3
      iTunes Store Link: https://apps.apple.com/us/app/virtual-families-3/id1159846171?uo=4

       
       

      Hack Features

      - Unlimited Coins*
      - Unlimited Food*
      - Unlimited Pet Food*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Virtual Families 3 v2.3.4 +3 Jailed Cheats [ Coins + More ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 0 replies
    • Virtual Villagers 6 v1.3.23 +100 Jailed Cheats [ Cheats Menu ]
      Modded/Hacked App: Virtual Villagers 6 By LDW Software, LLC
      Bundle ID: com.ldw.vv6
      iTunes Store Link: https://apps.apple.com/us/app/virtual-villagers-6/id6566193928?uo=4

       
       

      Hack Features

      - Cheats Menu -> Head into Settings, toggle the Help button, close settings then re-open to show a Cheats button.*
      - Unlimited Food*
      - Unlimited Wood*
      - Unlimited Stone*
      - Unlimited Tech Points*
      - Unlimited Lavastone*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      Jailbreak required iOS hacks: [Mod Menu Hack] Virtual Villagers 6 v1.3.23 +100 Cheats [ Cheats Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 0 replies
    • Virtual Villagers 6 v1.3.23 +100 Cheats [ Cheats Menu ]
      Modded/Hacked App: Virtual Villagers 6 By LDW Software, LLC
      Bundle ID: com.ldw.vv6
      iTunes Store Link: https://apps.apple.com/us/app/virtual-villagers-6/id6566193928?uo=4

       


      Hack Features

      - Cheats Menu -> Head into Settings, toggle the Help button, close settings then re-open to show a Cheats button.*
      - Unlimited Food*
      - Unlimited Wood*
      - Unlimited Stone*
      - Unlimited Tech Points*
      - Unlimited Lavastone*

      * - Head into Settings and toggle the Help button. Only enable 1 feature at a time.


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Virtual Villagers 6 v1.3.23 +100 Jailed Cheats [ Cheats Menu ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 0 replies
    • All in Hole v3.8.2 +3 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: All in Hole By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      iTunes Store Link: https://apps.apple.com/us/app/all-in-hole/id6503284107?uo=4

       


      Hack Features

      - Add Coins
      - Add Lives
      - Auto Win


      Jailbreak required iOS hacks: [Mod Menu Hack] All in Hole v3.8.2 +3 Cheats [ Coins + More] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 1 reply
    • All in Hole v3.8.2 +3 Cheats [ Coins + More]
      Modded/Hacked App: All in Hole By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      iTunes Store Link: https://apps.apple.com/us/app/all-in-hole/id6503284107?uo=4

       


      Hack Features

      - Add Coins
      - Add Lives
      - Auto Win


      For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] All in Hole v3.8.2 +3 Jailed Cheats [ Coins + More ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 1 reply
    • Summoners War Cheats v8.6.1 +7
      Hacked App: Summoners War By Com2uS Corp.
      iTunes Link: https://itunes.apple.com/us/app/summoners-war/id852912420?mt=8&uo=4&at=1010lce4
      Bundle ID: com.com2us.smon.normal.freefull.apple.kr.ios.universal

      Hack Features:
      - Damage Multiplier 
      - Godmode
      - Monster Count Unlink
      - Max Accuracy
      - No Skill Cooldown
      - First Turn
      - Build buildings without having required level
      - Antiban
      • 6,823 replies
    • Anna's Monster Farm : BEGINS Cheats v1.7.0 +3
      Modded/Hacked App: Anna's Monster Farm : BEGINS By Dalmoon Co.,Ltd.
      Bundle ID: com.zzoo.ios.monsterfarm
      iTunes Store Link: https://apps.apple.com/us/app/annas-monster-farm-begins/id6482291449?uo=4
       

      Hack Features

      - Freeze Currencies
      - God Mode
      - Multiply Attack


      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/


      iOS Hack Download Link https://iosgods.com/topic/191165-annas-monster-farm-begins-cheats-v170-3/
      • 13 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