Jump to content

7 posts in this topic

Recommended Posts

Posted

This topic issues the Flex 2 patch conversation for frequently used methods. You are expected to have some basic knowledge of the coding languages Objective-C or Swift or at least have a decent understanding of code and logical thinking. What I mostly see when people in help are trying to convert a patch to a tweak is a simple lack of logical sequence as they progress through methods with only one minor change in the code itself and they get stuck at this point. I hereby want to assist you in converting most frequently used methods and functions alike as those can be applied on every method of its kind.
 
 
 
First some "typedefs" Flex 2 uses:
 
target class - header
units - methods
override type - parameter
override value - return value





void
 
The most commonly used function parameter you will find. void simply calls a method to be executed. There are multiple varities of it and I will be going into detail below. 

void:

- (void)playerCanDie

Here you can see a void function. What is does is, for instance when the players hits an obstacle it calls the method to let the player die. If we make the void execute nothing, our player cannot die.


Flex 2:

Target Method
- (void)playerCanDie

Return Value (void)
pass-through 

Fom my understanding Flex 2 uses pass-through to compansate empty spaces or serves as replacement for NULL/nil.

 

Converted to Objective-C:

- (void)playerCanDie {

} 

As you can see there is nothing between the code brackets to be returned or anything. pass-through really pisses me off since it causes such a fuss when converting.



void with arguments:

- (void)setPlayerMoney:(int)withGold:(int)

It does not matter how many arguments a method has. Keep calm and think logically so you can deal with any amount of arguments coming at you (even when not used in conjunction with void methods).

 

Flex 2

Target Method
- (void)setPlayerMoney:(int)withGold:(int)

Return Value (void)
pass-through

Argument #1 (int)
999999

Argument #2 (int)
999999

Converted to Objective-C:

- (void)setPlayerMoney:(int)fp8 withGold:(int)fp12 {
fp8 = 99999;
fp12 = 999999;
%orig;
}

fp8 is the unique identifier of the int argument allocated to the money. It can literally be anything you want as long you only use it once within a method. %orig calls the original method since we do not want to touch the void here.

- (void)setPlayerMoney:(int)sexyass withGold:(int)drinkyourmilk {
sexyass = 99999;
drinkyourmilk = 999999;
%orig;
}





int
 
integer also known as int are numeric parameters and give a fixed value when the method is called.

int:

- (int)money

Here you can see an int function. It holds your current amount of money in the game. If we set the value really high, we have more cash than we ever need. $_$


Flex 2:

Target Method
- (int)money

Return Value (int)
999999

 
Converted to Objective-C:

- (int)money {
return 999999;
}

double are also typedefs of int.

 

 

int with arguments:
see void with arguments






bool

booleans also known as bool are conditional parameters and determine whether something is true or false

bool:

- (bool)isLevelUnlocked

Here you can see a bool function. It holds the value of the level being unlocked or not (value as in 1=true; 0=false). If we set it to true, the level is unlocked for us.


Flex 2:

Target Method (BOOL)
- (bool)isLevelUnlocked

Return Value (BOOL)
TRUE

Converted to Objective-C:

- (bool)isLevelUnlocked {
return true;
}

There is no actual difference between true/false, TRUE/FALSE, Yes/No it's personal preference.

 

 

 

bool with arguments:

see void with arguments

 

 

 

 

 

 

float

 

float are numeric parameters and give a point value when the method is called.

 

float:

- (float)velocity

Here you can see a float function. For instance it determines how fast our car drives. If we set it to a high value, we will be unbeatable in races.

 

 

Flex 2:

Target Method (float)
- (float)velocity

Return Value (float)
500.00

Converted to Objective-C:

- (float)velocity {
return 500.00f
}

long and long long are also typedefs of float.

 

 

 

float with arguments:

see void with arguments

Posted

When you don't understand a single thing.

Maybe pictures would have been better or a video but I never used Flex

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

    • Bloons TD 6 v48.2 +24 MEGA Jailed Cheats
      Modded/Hacked App: Bloons TD 6 By Ninja Kiwi Limited
      Bundle ID: com.ninjakiwi.bloonstd6
      iTunes Store Link: https://apps.apple.com/us/app/bloons-td-6/id1118115766?uo=4


      Hack Features:
      - Place Tower Anywhere<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Multiple God Towers<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- God Mode<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Cash<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Monkey Money<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Powers<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Unlock All Heroes<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Unlock All Knowledges<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Unlock All Towers<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Unlock All Upgrades<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Can Unlock Map (Click any locked map)<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Bypass Tutorial (Place one tower and quit the game)


      Jailbreak required hack(s): 
      • 1,415 replies
    • Bloons TD 6 v48.2 +24 MEGA Cheats
      Modded/Hacked App: Bloons TD 6 By Ninja Kiwi Limited
      Bundle ID: com.ninjakiwi.bloonstd6
      iTunes Store Link: https://apps.apple.com/us/app/bloons-td-6/id1118115766?uo=4


      Hack Features:
      - God Mode -updated- Clear Bloons -new
      - Auto Win Game -new
      - Set Round -new
      - Restart Game -new
      - Add Cash - new
      - Place towers anywhere
      - Multiple God Towers
      - Infinite Cash
      - Infinite Monkey Money
      - Infinite Powers
      - Unlock all Heros
      - Unlock all Knoledge
      - Unlock all towers
      - Unlock all upgrades 
      - Can unlock map (click locked map)
      - Skip tutorial (load the games first tutorial then exit app and start it. should skip tutorial) -new
      • 1,759 replies
    • Hole.io v2.25.11 [OVERPOWERED Debugger]
      Modded/Hacked App: Hole.io By Voodoo
      Bundle ID: com.nguyenvh.holeio
      iTunes Store Link: https://apps.apple.com/us/app/hole-io/id1389111413?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:

      Overpowered Debug Menu with Cheat Panel + more




      Click "Show Debug Button" in Mod Menu. Once enabled once you can delete the deb and the TestKit will still show up as this hack adds your DeviceUID to the Test Devices list. No need to open IGM when enabled once!






      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 154 replies
    • Hole.io v2.25.11 [OVERPOWERED Debugger]
      Modded/Hacked App: Hole.io By Voodoo
      Bundle ID: com.nguyenvh.holeio
      iTunes Store Link: https://apps.apple.com/us/app/hole-io/id1389111413?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:

      Overpowered Debug Menu with Cheat Panel + more




      Click Settings then Privacy Policy button. Once enabled your DeviceUID will be added to the testkit and you will not have to click anything to enable! You can close the app and it will auto load till you delete the app.






      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 151 replies
    • Weed Inc: Idle Tycoon v3.42.107 +5 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Weed Inc: Idle Tycoon By Metamoki Inc.
      Bundle ID: com.metamoki.weed
      iTunes Store Link: https://apps.apple.com/us/app/weed-inc-idle-tycoon/id1355866764?uo=4


      Hack Features:
      - Infinite Gems<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Cash<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Skill points<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Tokens<br style="background-color:#1e1f25;color:rgba(255,255,255,0.81);font-size:14px;">- Infinite Items


      Jailbreak required hack(s): 

       


      • 337 replies
    • Weed Inc: Idle Tycoon v3.42.107 +5 [Currency Hack]
      Modded/Hacked App: Weed Inc: Idle Tycoon By Metamoki Inc.
      Bundle ID: com.metamoki.weed
      iTunes Store Link: https://apps.apple.com/us/app/weed-inc-idle-tycoon/id1355866764?uo=4


      Hack Features:
      - Infinite Gems
      - Infinite Cash
      - Infinite Skill points
      - Infinite Tokens
      - Infinite Items


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


      iOS Hack Download Link:

      • 112 replies
    • Tap Away 3D v158.2.3 +12 Jailed Cheats [Infinite Moves]
      Modded/Hacked App: Tap Away 3D By Popcore GmbH
      Bundle ID: com.jctswbglsm.SwipeAway
      iTunes Store Link: https://apps.apple.com/us/app/tap-away-3d/id1568058543?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - No Ads
      - Infinite Moves
      - Freeze Challenge Moves
      - Disable Timer for Challenge


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/

      • 54 replies
    • Tap Away 3D v158.2.3 +12 [Infinite Moves]
      Modded/Hacked App: Tap Away 3D By Popcore GmbH
      Bundle ID: com.jctswbglsm.SwipeAway
      iTunes Store Link: https://apps.apple.com/us/app/tap-away-3d/id1568058543?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Ads
      - Add Coins
      - Add Tokens
      - Make Me VIP
      - Spawn Bomb
      - Spawn Coin Block
      - Spawn Bomb
      - Spawn Coin Block
      - Spawn Special Blocks
      - Unlock All Puzzles
      - Unlock All Skins
      - Unlock All Challenges
      - Infinite Moves
      - Freeze Challenge Moves
      - Disable Timer for Challenge


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/

      • 52 replies
    • Brick Out - Shoot the ball v25.0522.00 +5 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - No Ads
      - Free Revives


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 102 replies
    • Brick Out - Shoot the ball v25.0522.00 +5 [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Ads
      - Add 10000 Rubies
      - Free Revives


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 107 replies
    • Dead Ahead: Zombie Warfare v4.2.2 +6 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Dead Ahead: Zombie Warfare By ABE Entertainment Limited
      Bundle ID: com.mobirate.DeadAheadTactics
      iTunes Store Link: https://apps.apple.com/us/app/dead-ahead-zombie-warfare/id1017311881?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Infinite Currency
      - Infinite Fuel
      - Infinite Items
      - No Spawn Cooldown
      - Bypass Required Level
      - No Reload


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 250 replies
    • Dead Ahead: Zombie Warfare v4.2.2 +6 [Currency Hack]
      Modded/Hacked App: Dead Ahead: Zombie Warfare By ABE Entertainment Limited
      Bundle ID: com.mobirate.DeadAheadTactics
      iTunes Store Link: https://apps.apple.com/us/app/dead-ahead-zombie-warfare/id1017311881?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing / or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).





      Hack Features:
      - Infinite Currency
      - Infinite Fuel
      - Infinite Items
      - No Spawn Cooldown
      - Bypass Required Level
      - No Reload


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 138 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