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

    • MeChat - Interactive Stories v4.33.1 +5 Jailed Cheats [ Unlimited Gems ]
      Modded/Hacked App: MeChat - Interactive Stories By IMPONILOX LIMITED
      Bundle ID: world.playme.mechat
      App Store Link: https://apps.apple.com/us/app/mechat-interactive-stories/id1536157979?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

      - Unlimited Gems -> Will increase instead of decrease.
      - Unlock All Photos
      - Unlock All Audio Clips
      -- VIP Enabled

      VIP
      - Unlimited Gems -> Earn some then disable this feature. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 771 replies
    • MeChat - Interactive Stories v4.33.1 +5 Cheats [ Unlimited Gems ]
      Modded/Hacked App: MeChat - Interactive Stories By IMPONILOX LIMITED
      Bundle ID: world.playme.mechat
      App Store Link: https://apps.apple.com/us/app/mechat-interactive-stories/id1536157979?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

      - Unlimited Gems -> Will increase instead of decrease.
      - Unlock All Photos
      - Unlock All Audio Clips
      -- VIP Enabled

      VIP
      - Unlimited Gems -> Earn some then disable this feature. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 309 replies
    • Wizario v1.0.86 +5 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Wizario By Estoty LLC
      Bundle ID: com.kolkagames.wizario
      iTunes Store Link: https://apps.apple.com/us/app/wizario/id6572310997?uo=4


      Hack Features:
      - Unlimited Everything -> Earn some then restart the game.
      - Damage Multiplier
      - Health Multiplier
      - Tool Damage Multiplier
      - No Ads -> Head to Settings and toggle the Restore Purchases button.


      Jailbreak required hack(s): [Mod Menu Hack] Wizario v1.0.56 +5 Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Thanks
        • Winner
        • Like
      • 25 replies
    • Wizario v1.0.86 +5 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Wizario By Estoty LLC
      Bundle ID: com.kolkagames.wizario
      iTunes Store Link: https://apps.apple.com/us/app/wizario/id6572310997?uo=4


      Hack Features:
      - Unlimited Everything -> Earn some then restart the game.
      - Damage Multiplier
      - Health Multiplier
      - Tool Damage Multiplier
      - No Ads -> Head to Settings and toggle the Restore Purchases button.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Wizario v1.0.56 +5 Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 21 replies
    • Prison Break Idle v0.1.3 [+3 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)
       
        • Like
      • 2 replies
    • Prison Break Idle v0.1.3 [+3 Jailed 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) 
        • Like
      • 4 replies
    • Base Commander v3.0.0 Cheat Menu [+3 Jailed Cheats]
      Modded/Hacked App: Base Commander By Supercent Inc.
      Bundle ID: com.yalp.basecommander
      iTunes Store Link: https://apps.apple.com/us/app/base-commander/id6504986006?uo=4



      🤩 Hack Features

      - Cheat Menu Enabled (QA is the cheat menu)
        • Like
      • 5 replies
    • Base Commander v3.0.0 Cheat Menu [+3 Cheats]
      Modded/Hacked App: Base Commander By Supercent Inc.
      Bundle ID: com.yalp.basecommander
      iTunes Store Link: https://apps.apple.com/us/app/base-commander/id6504986006?uo=4



      🤩 Hack Features

      - Cheat Menu Enabled (QA is the cheat menu)
       
      • 3 replies
    • Z Survivor: Backpack Shooter v0.58 [+2 Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Thanks
        • Winner
        • Like
      • 4 replies
    • Z Survivor: Backpack Shooter v0.58 [+2 Jailed Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Like
      • 3 replies
    • Big Brother - The Game v2.0.2 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Big Brother - The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.bigbrother
      iTunes Store Link:https://apps.apple.com/au/app/big-brother-the-game/id6740625561

       


      🤩 Hack Features

      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.
        • Like
      • 0 replies
    • Magic.io: Spells & Zombies v5.0.0 [+2 Cheats]
      Modded/Hacked App: Magic.io: Spells & Zombies By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.rollic.magicio
      App Store Link: https://apps.apple.com/us/app/magic-io-spells-zombies/id6504026735?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 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