Skip to content
Guest Big Announcement

How do I convert a Flex Patch to a .deb hack?

Featured Replies

Made a Patch in Flex, and I want to convert it to a deb to share it with iOSGods members. How do I do this? Thanks!

Solved by Crypto

  • Solution

You can use FlexConverter but it doesn't work if your code has 2 arguments. It also has limitations so like patrick said, you need to know the basics

1) install theos using http://iphonedevwiki.net/index.php/Theos/Setup/iOS

2) Install iOSGods template from https://iosgods.com/topic/1907-update-v12template-custom-nic-patcherpreferencebundle-template/

3) Install FlexConverter from https://iosgods.com/topic/23129-flex-converter-convert-your-flex-patch-to-tweak-code-in-no-time/

4) Install headers from what Pro sent in a Help/Support request https://www.dropbox.com/s/8p4omu0ey9pgiyu/include.zip?dl=0

 

After you install this stuff, go to MTerminal (if you installed THEOS on iOS),

 

su
alpine //if you changed password then put whatever is your password
/var/theos/bin/nic.pl

Choose iOSGods v1.2 patcher (whichever number it is). If it doesnt appear you havent installed the template properly.

Give your patcher a desired name and a desired company. HOWEVER, when it asks for MobileSubstrate bundle filter. you must use the same bundleid as what as in the info.plist of your application. IT MUST NOT BE DIFFERENT OR HACK WILL NOT WORK

 

In iFile, specifically in /var/mobile/ provided you did not change location (via cd) there will be a new folder with your Project name (xxx)

 

In that folder you will have multiple files lik Makefile, Tweak.xm, control, xxx.plist (xxx being project name which you gave) and folders like xxx, theos.

 

Now, use FlexConverter (from tut) and paste the entire code. Here, DO NOT DELETE THE ORIGINAL TEMPLATE. First copy paste to a new file and compare it with the template

 

Your copied info will be like

 

%hook TankPartPlayerItem
-(int) quality {
return 5;
%end

and the original info

 

%hook TankPartPlayerItem
-(int) quality {
if(GetPrefBool(@"kQuality")) {
return 5;
}
return %orig;
}
%end

You need to manually add the

if(GetPrefBool(@"kQuality")) {
and the
}
return %orig;
}

This will help in making a preference bundle (the settings for the cheat).

 

NOTE: In some areas if there are more than one arguments, you need to fix it manually. This is because FlexConverter only reads 1 argument. So basically, copy the method from Flex like

-(int) Methodname:(int)arg1 withsecond: (int)arg2 {

AFTER you do this, your tweak.xm should be complete. Now you need to work on .plist for which Id say follow a tut. Even what i wrote above is more or less what I did after looking at multiple tutorials.

 

If you want, just send me flex patch and il make a patcher for you (i wont post it, no worries)

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.