Jump to content

Game crashes when using custom text switch


Go to solution Solved by Ted2,

23 posts in this topic

Recommended Posts

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hm, weird. What happens when you just return a custom value? Not a slider switch value. Also, both functions seem to end with a return from another function, you’re probably better of hacking that.

Posted
1 minute ago, Ted2 said:

Hm, weird. What happens when you just return a custom value? Not a slider switch value. Also, both functions seem to end with a return from another function, you’re probably better of hacking that.

The game crashes. It works fine with the one offset patch which I can just use. Thanks for trying to help.

  • Solution
Posted
Just now, ZoZo said:

The game crashes. It works fine with the one offset patch which I can just use. Thanks for trying to help.

I know that you cannot hook functions with two instructions, that might be the case on this one due the weird function end (a function call instead of “RET”). You should try it on the function those two are calling.

Posted
7 minutes ago, Ted2 said:

I know that you cannot hook functions with two instructions, that might be the case on this one due the weird function end (a function call instead of “RET”). You should try it on the function those two are calling.

Alright I'll try it in a bit and get back to you.

Posted
int(*old_get_PointsKillMultiplier)(void *this_);
int get_PointsKillMultiplier(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Points:"] intValue];

  if([switches isSwitchOn:@"Custom Points:"]) {
    return userAmount;
  }
  return old_get_PointsKillMultiplier(this_);
}

int(*old_get_GemsRewardForKill)(void *this_);
int get_GemsRewardForKill(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Gems:"] intValue];

  if([switches isSwitchOn:@"Custom Gems:"]) {
    return userAmount;
  }
  return old_get_GemsRewardForKill(this_);
}

void setup() {


  HOOK(0x1015AD440, get_PointsKillMultiplier, old_get_PointsKillMultiplier);


  HOOK(0x1015A9F84, get_GemsRewardForKill, old_get_GemsRewardForKill);

    [switches addTextfieldSwitch:@"Custom Points:"
                description:@"Here you can enter your own points amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];

    [switches addTextfieldSwitch:@"Custom Gems:"
                description:@"Here you can enter your own coins amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];                                                                                      
}

try this, hope it work

Posted
6 minutes ago, Soud_0 said:

int(*old_get_PointsKillMultiplier)(void *this_);
int get_PointsKillMultiplier(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Points:"] intValue];

  if([switches isSwitchOn:@"Custom Points:"]) {
    return userAmount;
  }
  return old_get_PointsKillMultiplier(this_);
}

int(*old_get_GemsRewardForKill)(void *this_);
int get_GemsRewardForKill(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Gems:"] intValue];

  if([switches isSwitchOn:@"Custom Gems:"]) {
    return userAmount;
  }
  return old_get_GemsRewardForKill(this_);
}

void setup() {


  HOOK(0x1015AD440, get_PointsKillMultiplier, old_get_PointsKillMultiplier);


  HOOK(0x1015A9F84, get_GemsRewardForKill, old_get_GemsRewardForKill);

    [switches addTextfieldSwitch:@"Custom Points:"
                description:@"Here you can enter your own points amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];

    [switches addTextfieldSwitch:@"Custom Gems:"
                description:@"Here you can enter your own coins amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];                                                                                      
}

try this, hope it work

I still crashed when trying this.

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

    • Disney Solitaire v0.44.0 +2++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/us/app/disney-solitaire/id6475757306?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      - Free In-App Purchases
      • 6 replies
    • Disney Solitaire v0.44.0 +2++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/us/app/disney-solitaire/id6475757306?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      - Free In-App Purchases
      • 1 reply
    • Epic Shaman Battle: 4P Defense v1.1.5 +2 Jailed Cheats [ Damage ]
      Modded/Hacked App: Epic Shaman Battle: 4P Defense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.p4defense
      iTunes Store Link: https://apps.apple.com/us/app/epic-shaman-battle-4p-defense/id6511224754?uo=4

       


      🤩 Hack Features

      - God Mode
      - Damage Multiplier
        • Like
      • 18 replies
    • Epic Shaman Battle: 4P Defense v1.1.5 +2 Cheats [ Damage ]
      Modded/Hacked App: Epic Shaman Battle: 4P Defense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.p4defense
      iTunes Store Link: https://apps.apple.com/us/app/epic-shaman-battle-4p-defense/id6511224754?uo=4

       

       

      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      • 11 replies
    • Toram Online v4.0.62 - [ Custom Move Speed & More ]
      Modded/Hacked App: Toram Online By ASOBIMO,Inc.
      Bundle ID: com.asobimo.toramonline
      iTunes Store Link: https://itunes.apple.com/us/app/toram-online/id988683886?mt=8&uo=4&at=1010lce4
       

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - Custom Move Speed
      - God Mode 
      - Fast Attack Speed
      - Fast Cast Speed
      - Always Critical Chance
      - Never Miss Hit 
      - Mobs/Bosses Can't Avoid & Guard 
      - Quick Draw
      - Armor Break
      - Magic Wall - Stun + Full Map Hack 
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,560 replies
    • Sword Master Story Cheats v4.105.555 +5
      Modded/Hacked App: Sword Master Story By SuperPlanet corp.
      Bundle ID: com.superplanet.swordmaster
      iTunes Store Link: https://apps.apple.com/us/app/sword-master-story/id1521447065?uo=4


      Hack Features:
      - Custom Player Stats
      - Weak Enemies
      - One Hit Kill
      - & More

      Press & Hold to read feature description


      iOS Hack Download Link: https://iosgods.com/topic/146819-sword-master-story-cheats-v42294-3/
        • Informative
      • 1,435 replies
    • Fishdom v8.8.2 Jailed Cheats +3
      Modded/Hacked App: Fishdom By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.fishdom-freeplay
      iTunes Store Link: https://apps.apple.com/us/app/fishdom/id664575829?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Boosters
      - Infinite Lives

      NOTE: Play until you reached level 31 on non-hacked version before using this hack - Make sure you connected with GameCenter and Facebook to save your progress


      iOS Hack Download Link: https://iosgods.com/topic/116586-arm64-fishdom-v683-jailed-cheats-3/
        • Like
      • 741 replies
    • Good Coffee, Great Coffee v1.0.12 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 63 replies
    • Good Coffee, Great Coffee v1.0.12 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 39 replies
    • Ocean Fishing King v1.0.2 +2++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Ocean Fishing King By MOBIRIX
      Bundle ID: com.mobirix.fhk
      iTunes Store Link: https://apps.apple.com/us/app/ocean-fishing-king/id6738036758?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- No Ads
      • 2 replies
    • Ocean Fishing King v1.0.2 +2++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Ocean Fishing King By MOBIRIX
      Bundle ID: com.mobirix.fhk
      iTunes Store Link: https://apps.apple.com/us/app/ocean-fishing-king/id6738036758?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- No Ads
      • 5 replies
    • Prison Break Idle v0.1.1 [+2 Cheats]
      Modded/Hacked App: Prison Break Idle By Anisoft Yazilim Derya Bagdinli ve Ortagi Kollektif Sirketi
      Bundle ID: com.anisoftgames.prisonbreakidle
      iTunes Store Link: https://apps.apple.com/us/app/prison-break-idle/id6739884706?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Spend to earn)
       
      • 0 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