Jump to content

NoHax

Senior Member
  • Posts

    481
  • Joined

  • Last visited

Everything posted by NoHax

  1. Wait, I've been trying to hack my game by changing sub sp, x29, #0x50 ; =0x50 into add sp, x29, # 0x50 ; =0x50 Is that wrong? Should I change it to add sp, x29, #1 ; =1 or just stick with what I've currently got?
  2. Are you sure you've only deleted the sources? You might of deleted something important for cydia.
  3. Your just going to have to manually add your them all.
  4. So, yet again I'm having errors compiling, I've looked at lots of other people having this error and tried everything but so far I'm having no luck Heres the error Undefined symbols for architecture armv7: "_OBJC_CLASS_$_PSListController", referenced from: _OBJC_CLASS_$_BattleplansListController in Battleplans.mm.e089beef.o "_OBJC_METACLASS_$_PSListController", referenced from: _OBJC_METACLASS_$_BattleplansListController in Battleplans.mm.e089beef.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Here's my tweaks makefile Export ARCHS = armv7 arm64 TARGET = iphone:clang:10.1 #CFLAGS = -fobjc-arc #THEOS_PACKAGE_DIR_NAME = debs include ~/theos/makefiles/common.mk #include <UIKit/UIKit.h> TWEAK_NAME = Battleplans Battleplans_FILES = Tweak.xm Battleplans_FRAMEWORKS = UIKit Battleplans_LDFLAGS += -Wl,-segalign,4000 Battleplans_FRAMEWORKS = UIKit CoreGraphics include ~/theos/makefiles/tweak.mk SUBPROJECTS += Battleplans include ~/theos/makefiles/aggregate.mk Here's my patchers makefile export ARCHS = armv7 arm64 include ~/theos/makefiles/common.mk #import <UIKit/UIKit.h> BUNDLE_NAME = Battleplans Battleplans_FILES = Battleplans.mm Battleplans_INSTALL_PATH = /Library/PreferenceBundles Battleplans_FRAMEWORKS = UIKit Battleplans_PRIVATE_FRAMEWORKS = Preferences Battleplans_FRAMEWORKS = UIKit CoreGraphics include ~/theos/makefiles/bundle.mk internal-stage:: $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/Battleplans.plist$(ECHO_END) Can anyone help me?
  5. Hey, I've been trying to compile my tweak for a while now and I'm getting this error > Making all for tweak Battleplans… make[2]: Nothing to be done for `internal-library-compile'. > Making all in Battleplans… > Making all for bundle Battleplans… ==> Copying resource directories into the bundle wrapper… ==> Compiling Battleplans.mm (armv7)… ==> Linking bundle Battleplans (armv7)… ld: framework not found Preferences clang: error: linker command failed with exit code 1 Can anyone help me?
  6. Do you remember how you fixed it? So I can fix mine
  7. Did you manage to fix your Theos?
  8. Now my headers are conflicting and I got this /Users/NoHax/theos/include/QuartzCore/CAValueFunction.h:13:1: error: duplicate interface definition for class 'CAValueFunction' @interface CAValueFunction : NSObject { ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h:12:12: note: previous definition is here @interface CAValueFunction : NSObject <NSCoding> ^ In file included from Battleplans.mm:1: In file included from /Users/NoHax/theos/include/Preferences/Preferences.h:8: In file included from /Users/NoHax/theos/include/Preferences/Preferences-Structs.h:10: In file included from /Users/NoHax/theos/include/QuartzCore/QuartzCore2.h:15: /Users/NoHax/theos/include/QuartzCore/CAValueFunction.h:17:39: error: property has a previous declaration @property(readonly, assign) NSString* name; ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h:21:31: note: property declared here @property(readonly) NSString *name; ^ Battleplans.mm:17:40: error: 'openURL:' is deprecated: first deprecated in iOS 10.0 - Please use openURL:options:completionHandler: instead [-Werror,-Wdeprecated-declarations] [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"ht... ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:125:1: note: 'openURL:' has been explicitly marked deprecated here - (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use ope... ^
  9. Nevermind, my headers are the problem like you said
  10. Thanks! That gets me much further than last time but now I get Battleplans.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found #import <Preferences/Preferences.h>
  11. So I'm trying to compile a tweak and I get this error Tweak.xm:13:13: error: implicit conversion from 'long long' to 'vm_address_t' (aka 'unsigned int') changes value from 4301296116 to 6328820 [-Werror,-Wconstant-conversion] writeData(0x1006091F4, 0xBF430191); 1 error generated. make[3]: *** [/Users/NoHax/battleplans/.theos/obj/debug/armv7/Tweak.xm.38e5c0ff.o] Error 1 make[2]: *** [/Users/NoHax/battleplans/.theos/obj/debug/armv7/Battleplans.dylib] Error 2 make[1]: *** [internal-library-all_] Error 2 make: *** [Battleplans.all.tweak.variables] Error 2 Here's my tweak.xm #import "writeData.h" #import <Foundation/Foundation.h> #import <substrate.h> #define PLIST_PATH @"/var/mobile/Library/Preferences/com.c4m.battleplans.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %ctor { if(GetPrefBool(@"ADD")) { writeData(0x1006091F4, 0xBF430191); } else { } } %hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc. - (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"Battleplans Cheats" message:@"\nBattleplans Cheats by NoHax for iOSGods.com" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:@"Visit Us", nil]; [igcredits show]; [igcredits release]; return %orig(); } %new -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *button = [alertView buttonTitleAtIndex:buttonIndex]; if([button isEqualToString:@"Visit Us"]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/"]]; } } %end
  12. Thanks! Would you say it's easier to make a patcher or a mod menu using templates on the forum?
  13. So the title basically explains it. I've used lldb to find the offsets for both gold and gems, but they are both the same function? Heres what lldb spat out -> 0x1006891e8 <+6328808>: ldr w8, [x19, #0x50] 0x1006891ec <+6328812>: add w8, w8, #0x1 ; =0x1 0x1006891f0 <+6328816>: str w8, [x19, #0x50] 0x1006891f4 <+6328820>: sub sp, x29, #0x50 ; =0x50 So I was thinking of changing that sub to an add, and because the gold and gems are the same function they would both add instead of subtracting? If I'm wrong could someone correct me and if possible tell me how to do it right. Also if I am right how would I make it work in my tweak? I've been trying to put it into this http://armconverter.com/codeinjectgenerator/ but I'm not sure what to put in some of the boxes, like the preferences.plist and the key name and switch name
  14. Mate, click the -in the hidden content.
  15. Alright, I'll add that in the instructions.
  16. Hmmm, are you searching them both as I32 values? When I searched the money I got I got around 3000 and when I searched my experience as a I32 value it narrowed it down to about 20.
×
  • 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