Jump to content

[HELP] new to making tweaks and got an error


Go to solution Solved by Rook,

9 posts in this topic

Recommended Posts

Posted

Ll8AOMn.png

control

Package: com.L33T_Pr0xY.fragger
Name: fragger
Depends: mobilesubstrate
Version: 1.0
Architecture: iphoneos-arm
Description: An awesome MobileSubstrate tweak!
Maintainer: L33T_Pr0xY
Author: L33T_Pr0xY
Section: Tweaks

**************************************************
fragger.plist

{ Filter = { Bundles = ( "com.miniclip.Fragger" ); }; }

*********************************************************
Makefile

include theos/makefiles/common.mk

TWEAK_NAME = fragger
fragger_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 SpringBoard"

*******************************************************
Tweak.xm

%hook LevelLayer
-(int) grenades {
 return 999999;
}

-(void) setGrenades:(int) fp8 {
fp8 = 999999;
%orig(fp8);
}
%end

%hook Configuration
-(void) setUnlimitedGrenades: (BOOL) fp8 {
fp8=true;
%orig(fp8);
}
%end

%hook FraggerAppDelegate
-(void)applicationDidBecomeActive:
(id)application {
UIAlertView *alert =[(UIAlertView alloc)
initWithTitle:@"Welcom to
Fragger"message:@"Hacked by L33T Pr0xY. Visit
iOSGods.com" delegate:null
cancelButtonTitle:@"Thanks!"otherButtonTitles:
nil);
[alert show];
[alert release];
}
%end

 

Posted

The error has been generated in the popup part.

 

Replace it all with this:

%hook FraggerAppDelegate
-(void)applicationDidBecomeActive:(id)application {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome to Fragger" message:@"Hacked by L33T Pr0xY. Visit iOSGods.com" delegate:nil cancelButtonTitle:@"Thanks" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
Posted

Edit your makefile and add this:

include theos/makefiles/common.mk

TWEAK_NAME = fragger
fragger_FILES = Tweak.xm
fragger_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 SpringBoard"

@@EvillyG00d has explained this very well here: http://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/

  • Solution
Posted

okay i think that helped i now have two files idk if they always look like there crypt?

 

http://imgur.com/p0Cw4Kd

You can now copy those two files and paste them in /Library/MobileSubstrate/DynamicLibraries/ to activate the hack.

 

But a better way is to make the hack a .deb file so it auto does that for you. To do this, type:

make package

or

make package install

In PuTTy.

Posted (edited)

You can now copy those two files and paste them in /Library/MobileSubstrate/DynamicLibraries/ to activate the hack.

 

But a better way is to make the hack a .deb file so it auto does that for you. To do this, type:

make package

or

make package install

In PuTTy.

i made a .deb i putted on my repo im testing it now :)

 

 

IT WORKS thanks 

Updated by L33T_Pr0xY
Posted

i made a .deb i putted on my repo im testing it now :)

 

 

IT WORKS thanks 

Awesome!

 

If you have any more questions or problems, feel free to create a new support topic! :)

 

Happy Holidays! :)

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