Jump to content

10 posts in this topic

Recommended Posts

Posted (edited)

I'm currently trying to make a score multiplier hack for Run Terrio Run, but for some reason whenever I input my own value for the multiplier variable it always stays at zero. I've tested the hack this by hardcoding 20 into the multiplier variable just to make sure that it works, and it does, the score counts by twenties.

 

Code:

#include <substrate.h>
#include "writeData.h"

int multiplier;
int nothing;

static int hackScore(int);

%hook UnityAppController

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12
{
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Run Terrio Run Score Multiplier Modifier" message:@"How much do you want the score to be multiplied by?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Set Multiplier",nil];
[alert setAlertViewStyle:UIAlertViewStylePlainTextInput];
UITextField *inputField = [alert textFieldAtIndex:0];
[inputField setKeyboardType:UIKeyboardTypeNumberPad];
inputField.text = [NSString stringWithFormat:@"%i",multiplier];

multiplier = [inputField.text intValue];

UIAlertView *scoreAlert = [[UIAlertView alloc]initWithTitle:@"Multiplier Modifier" message:[NSString stringWithFormat:@"Score is now going to be multiplied by %i",multiplier] delegate:nil cancelButtonTitle:@"Good shit" otherButtonTitles:nil];
     [scoreAlert show];
     
if(hackScore(multiplier)==255){
writeData(0xHIDDEN, 0xFF0080E2);
}

[alert show];
return %orig;
}
%end

static int hackScore(int multiplier){
   if(multiplier>0){
     return multiplier;
   }
return multiplier;
}
Thanks :) Updated by Guest
Posted (edited)

I'm currently trying to make a score multiplier hack for Run Terrio Run, but for some reason whenever I input my own value for the multiplier variable it always stays at zero.

 

 

for starters, your method, hackScore, is not doing anything. What your saying is:

 

"If multiplier is greater than 0, return multiplier"

"If multiplier is equal or less than 0, return multiplier"

 

since (multiplier ∈ R), what your essentially saying is, if multiplier is a number then return the value for multiplier (in other words, this method is USELESS and does nothing)

 

secondly, your integer, nothing, is really living up to its name....... by doing nothing

 

Moreover, from your code:

if(hackScore(multiplier)==255){
writeData(0xHIDDEN, 0xFF0080E2);
}

 

what your saying is if the user chooses their multiplier to be set as 255, THEN you will write the hex 0xFF... to the given address, however, if they do not choose to have their multiplier set as 255, then they will always have the value of the multiplier which was originally given in the game.

 

To fix this you have three options

 

1. write a RIDICULOUSLY HUGE if else OR switch statement containing every integer value from 0 - 255.

 

This is the most retarded and inefficient way of doing what you want, however it will technically get it done (please dont do it this way if you choose to fix the mistake)

 

2. You can create a method (or just use hackScore for something useful xD) which will:

 

- find the value inputted for multiplier (already done)

- take that value and convert it to hex

- take your new hex to be written, in this case XX0080E2, and combine it with the value u converted from the previous step

 

So if they choose a multiplier value of 250 then first you would find that value

 

multiplier = 250;

 

then convert it to hex

 

multiplier = 0xFA;

 

and then combine your offset with the hex, for example (this is NOT how it would work, just trying to show u what would happen):

 

multiplier + XX0080E2 = FA + XX0080E2 => FA0080E2

 

with 0xFA0080E2 being your final hex.

 

this method will get what you want done fairly efficiently, however it involves having basic, basic, basic programming skills as well as users will only be allowed to enter integers

 

3. Now the third method, and probably THE BEST METHOD:

 

just use MSHook and save yourself the trouble.. With MSHook you can accomplish your goal in under 20 lines of code (i didnt actually count but mshook will be 100000000X faster and easier)

 

..

..

..

..

 

There are other errors in the code but if you use mshook, most of them will go away because you'll throw the bad code away

Updated by alphaMatterr
Posted (edited)

:facepalm:

 

This gave me eye cancer

<_< its my first code, give me a break

 

-snip-

 

First of all, thank you for such an informative reply, really means alot :)

 

Also, I only put 255 there for testing purposes, I know that if you put in any other number it would stay at zero. Also, when I wrote that function I was thinking about just putting a ton of if statements. I know that it just returns the multiplier, and I wanted it to do that. But now that I think about it I don't even need it, I could have just done "if(multiplier==255)" or something like that. The "nothing" integer I had accidentally left in there, I was only testing with it, I only forgot to take it out. :lol:

 

But I think I will go to with the second way, I do not know MSHook (only the MSHook that hackers are supposed to know) But I will report back to you :) And thanks again for such a great reply/explanation :)

Updated by Guest
Posted

@@alphaMatterr @

 

Before I did what you suggested, I took out everything and just had the alerts and the multiplier variable, and it is still zero whenever I input my own number. Can you help me fix this? Here is the code:

 

#include <substrate.h>
#include "writeData.h"

int multiplier;

//static int hackScore(int);

%hook UnityAppController

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12
{
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Run Terrio Run Score Multiplier Modifier" message:@"How much do you want the score to be multiplied by?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Set Multiplier",nil];
[alert setAlertViewStyle:UIAlertViewStylePlainTextInput];
UITextField *inputField = [alert textFieldAtIndex:0];
[inputField setKeyboardType:UIKeyboardTypeNumberPad];
inputField.text = [NSString stringWithFormat:@"%i", multiplier];

multiplier = [inputField.text intValue];

UIAlertView *scoreAlert = [[UIAlertView alloc]initWithTitle:@"Multiplier Modifier" message:[NSString stringWithFormat:@"Score is now going to be multiplied by %i",multiplier] delegate:nil cancelButtonTitle:@"Good shit" otherButtonTitles:nil];
[scoreAlert show];
[alert show];
return %orig;
}
%end
Thanks :)
Posted

try using code x8486375737488348349354 for it the multiplier variable shouldn't stay at 0

O_o bruh

Moreover, from your code:

 

if(hackScore(multiplier)==255){
writeData(0xHIDDEN, 0xFF0080E2);
}

 

 

what your saying is if the user chooses their multiplier to be set as 255, THEN you will write the hex 0xFF... to the given

To fix this you have three options

 

1. write a RIDICULOUSLY HUGE if else OR switch statement containing every integer value from 0 - 255.

 

This is the most retarded and inefficient way of doing what you want, however it will technically get it done (please dont do it this way if you choose to fix the mistake)

You don't have to do that. Obj-C has a built in solution.

Change your code from

 

if(hackScore(multiplier)==255){
writeData(0xHIDDEN, 0xFF0080E2);
}
To:

 

if(hackScore(multiplier)<256){
writeData(0xHIDDEN, 0xFF0080E2);
}
By doing this, you're saying that if your user chooses their multiplier to be any number that's equal to 255 or less, THAT'S when you'll write the hex to 0xFF...

 

Then again. I don't see a reason as to why you want to give the user the option to choose a score multiplier.

 

CSCI ftw

Posted (edited)
@KingRalph, the goal is to allow users to enter any integer between 0 and 255 as a score multiplier.. If you only wanted one score multiplier option then you wouldn't need any user input (the UITextField would be useless)...

 

..

..

..

..

 

@shmoo, the code you posted accomplishes the first part of the three i mentioned in the post.

 

- find the value inputted for multiplier

 

- take that value and convert it to hex

- take your new hex to be written, in this case XX0080E2, and combine it with the value you converted from the previous step

 

now you have to convert the value of the multiplier to hex... so if

 

multiplier = 10;

 

then after converting you'll have:

 

multiplier = 0x0A;

 

..

..

..

 

The final step after that will be to take your offset, XX0080E2 and replace the XX with the given multiplier hex value.

 

Another way you can accomplish steps 2 and 3 (involves a little bit of math but if you understand this method it might be easier / cooler). Check the spoiler below for more info

 


 

First were going to derive an "incrementation value", I'll explain more below... 

 

****************************

SHORT DERIVATION

 

0x000080E2 and 0x010080E2 only differ by 0x01000000, which when converted to decimal is 16777216

 

additionally, 0x000080E2 converted to decimal is 32994. Thus, we can make a linear function, f(x) = mx + b, where b =32994 and m = 16777216. so if a multiplier of 10 is entered we can just do:

 

f(10) = 16777216 * 20 + 32994 = 335577314

 

converting to hex then yield the correct offset of 0x140080E2

 

NOTE: you don't technically have to convert to decimal, you could just do all of the math through hex, however I thought that may be a bit confusing because its base 16 instead of base 10.

****************************

 

****************************

LONG DERIVATION

 

Okay, so if you set your multiplier to zero, you get the hex:

 

0x000080E2

 

converting this to decimal, you get: 

 

32994

 

NOW the multiplier can only be an integer values between 0 - 255.

 

if you choose your multiplier to be 1, you get

 

0x010080E2

 

converting this to decimal yields the number:

 

16810210

 

lastly, subtract the initial int value of 0x000080E2 from our previous conversion and we get:

 

16810210 - 32994 = 16777216

 

16777216 can be treated as our "incrementation value". This is useful and can actually simplify the amount of code used and just use more math instead.

 

For example! Lets say that the user inputted a multiplier value of 20. Thus we have

 

multiplier = 20;

 

now if we want to "create" our new hex with this multiplier value, we can do something like this:

 

new_hex = 32994 + 16777216 * multiplier = 32994 + 16777216 * 20 = 335577314

 

now just convert 335577314 back to hex!

 

(335577314)_10 = (140080E2)_16

 

i.e. new_hex = 0x140080E2

 

now to double check we can see that 

 

0x14 is in fact 20 when converted back to decimal and thus our math checks out!

 

ainet mathee phun! :D

 

****************************

 

Doing it this way means you can skip step 3 entirely and wont have to combine the multiplier hex with the offset via code (instead you do it mathematically)

 


 

either method you choose will get you the correct hex value needed. Now all that is left is to use writeData to apply your patch...

Updated by alphaMatterr

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
  • Our picks

    • Soul Idle : Two Sides of Girls Cheats v1.1.13 +3
      Modded/Hacked App: Soul Idle : Two Sides of Girls By Pole Position Games Inc.
      Bundle ID: com.poleposition.iOSGirls
      iTunes Store Link: https://apps.apple.com/us/app/soul-idle-two-sides-of-girls/id6504546717?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Dumb Enemies


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186233-soul-idle-two-sides-of-girls-cheats-v102-3/
        • Thanks
        • Winner
        • Like
      • 31 replies
    • Screw Tap Jam - Screw Sort 3D Cheats v2.300 +3
      Modded/Hacked App: Screw Tap Jam™ - Screw Sort 3D By Wonder Rush Technology Limited
      Bundle ID: com.screw.jam.tap
      iTunes Store Link: https://apps.apple.com/us/app/screw-tap-jam-screw-sort-3d/id6670189511?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - PREMIUM
      - Infinite Coins
      - Infinite Boosters (Able to use even without having enough)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/193632-screw-tap-jam-screw-sort-3d-v2200-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/193631-screw-tap-jam-screw-sort-3d-cheats-v2200-3/
        • Winner
        • Like
      • 1 reply
    • My Talking Tom Friends Cheats v25.1.3 +2
      Modded/Hacked App: My Talking Tom Friends By Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingtomfriends
      iTunes Store Link: https://apps.apple.com/us/app/my-talking-tom-friends/id1473424857?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Infinite Coins
      - No Ads

      Non-Jailbroken Hack: https://iosgods.com/topic/128377-my-talking-tom-friends-v392-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/128376-my-talking-tom-friends-cheats-v2510-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 146 replies
    • Jetpack Joyride Cheats v1.99.3 +8
      Modded/Hacked App: Jetpack Joyride By Halfbrick
      Bundle ID: com.halfbrick.jetpack
      iTunes Store Link: https://apps.apple.com/us/app/jetpack-joyride/id457446957?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Infinite Coins
      - High Score
      - God Mode
      - Free Shopping
      - Coin Magnet Enabled
      - Increased Magnet Range
      - All Items Owned
      - All Gadgets Unlocked

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119791-jetpack-joyride-v1971-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119788-jetpack-joyride-cheats-v1972-8/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 494 replies
    • Idle Theme Park - Tycoon Game Cheats v6.8.2 +1
      Modded/Hacked App: Idle Theme Park - Tycoon Game by Digital Things Sociedad Limitada
      Bundle ID: com.codigames.idle.theme.park.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-theme-park-tycoon-game/id1460772578?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash


      iOS Hack Download Link: https://iosgods.com/topic/116320-arm64-idle-theme-park-tycoon-game-cheats-v210-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 551 replies
    • Fortress Saga: AFK RPG Cheats v1.8.03 +5
      Modded/Hacked App: Fortress Saga: AFK RPG By cookapps
      Bundle ID: com.cookapps.bm.fortresssaga
      iTunes Store Link: https://apps.apple.com/us/app/fortress-saga-afk-rpg/id6446308106?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Freeze Currencies
      - PREMIUM
      - No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/184193-fortress-saga-afk-rpg-v1800-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/178933-fortress-saga-afk-rpg-cheats-v1801-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 351 replies
    • Cats & Soup Cheats v2.67.1 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Infinite Currencies
      - Unlocked All Specials and No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/157486-cats-soup-v2630-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v2640-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 296 replies
    • HomeScapes v7.9.3 Jailed Cheats +3
      Modded/Hacked App: Homescapes By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.gardenscapes-sweethome
      iTunes Store Link: https://apps.apple.com/us/app/homescapes/id1195621598?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

      - Infinite Moves
      - Infinite Boosters
      - Infinite Coins (Spend some)
      - Infinite Lives (Won't substract when you failed level)
      - Complete tasks without needing stars - Game Breaking for sure
      - Unlock Season Pass (by @NoFearGG) -- Go click the purchase button. It'll look like nothing happened. Leave season pass area. And go back. It'll show unlocked. And be saved that way


      🍏 Jailbreak iOS hacks: https://iosgods.com/topic/75434-homescapes-cheats-v776-5/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/71443-homescapes-v776-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,419 replies
    • BitLife - Life Simulator Cheats v3.18.2 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,530 replies
    • GardenScapes Cheats v8.7.0 +5
      Modded/Hacked App: Gardenscapes By Playrix Games
      Bundle ID: com.playrix.gardenscapes-m3-ios
      iTunes Store Link: https://itunes.apple.com/us/app/gardenscapes/id1105855019?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Moves
      - Inifnite Boosters (Won't subtract when use)
      - Infinite Lives
      - Infinite Coins (Spend some/ Get some) - Not recommended cause sometimes it will bug your gameplay
      - Infinite Stars (Complete tasks without needing stars) - GAMEBREAKING FOR SURE  



      Hack Download Link: https://iosgods.com/topic/75340-arm64-gardenscapes-cheats-v280-5-vip/


      Credits:
      - @Laxus
      - @RudePerson For Inspiring Me
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,891 replies
    • Beach Buggy Racing 2 Cheats v2025.04.13 +2
      Modded/Hacked App: Beach Buggy Racing 2 by Vector Unit Inc
      Bundle ID: com.vectorunit.cobalt
      iTunes Store Link: https://itunes.apple.com/us/app/beach-buggy-racing-2/id1399253988?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite PowerUp Parts
      - Infinite Gems (Spend some/ Get some)
      - Infinite Coins (Use Gems to Convert)



      Hack Download Link: https://iosgods.com/topic/86113-arm64-beach-buggy-racing-2-cheats-v101-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 434 replies
    • EGGRYPTO: Hatch! Own! Monster vv1.98.3 +2 Jailed Cheats
      Modded/Hacked App: EGGRYPTO: Hatch! Own! Monster By Kyuzan Inc.
      Bundle ID: com.kyuzan.eggrypto
      iTunes Store Link: https://apps.apple.com/us/app/eggrypto-hatch-own-monster/id1450911855?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

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Like
      • 3 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