-
Posts
4,933 -
Joined
-
Last visited
Posts posted by Ted2
-
-
you need to set the correct bundle, otherwise it doesn't know where to inject to
edit; oh just saw you already figured that out yourself.- 1
-
Wow this is pretty cool
-
21 hours ago, mkaf7 said:
okay f****ck it
thanks for you advice mate
You could also try online theos, maybe it's easier;
-
You're not getting the same error if you've replaced your old hook with the one I provided. I just tested this on my machine.
However, your tweak.xm is full of errors. It's probably best if you go online to learn the basics of programming syntax.
Alternatively, for every change you make to the tweak.xm, do a "make package", so you know exactly when you did something wrong. Because right now, there are multiple errors in multiple places. -
4 minutes ago, mkaf7 said:
#import "Macros.h" /*********************************************************** INSIDE THE FUNCTION BELOW YOU'LL HAVE TO ADD YOUR SWITCHES! ***********************************************************/ float(*old_GetGhostMaxSpeed)(void *this_); float GetGhostMaxSpeed(void *this_) { if([switches isSwitchOn:@"SpeedHack"]) { return old_GetGhostMaxSpeed * [[switches getValueFromSwitch:@"SpeedHack"] floatValue]; return old_GetGhostMaxSpeed(this_); } void setup() { //public int GetGhostMaxSpeed(); // RVA: 0x18DFFF4 Offset: 0x18DFFF4 HOOK(0x18DFFF4, GetGhostMaxSpeed, old_GetGhostMaxSpeed); /* [switches addOffsetSwitch:@"kill" description:@"kill" offsets:{0x123456} bytes:{0x00008052C0035FD6}]; */ // Slider Switch - used in hooking [switches addSliderSwitch:@"SpeedHack" description:@"Speed Hack" minimumValue:0.5 maximumValue:100 sliderColor:UIColorFromHex(0xBD0000)]; } void setupMenu() { // If a game uses a framework as base executable, you can enter the name here. // For example: UnityFramework, in that case you have to replace NULL with "UnityFramework" (note the quotes) [menu setFrameworkName:"UnityFramework"]; menu = [[Menu alloc] initWithTitle:@"test" titleColor:[UIColor whiteColor] titleFont:@"AppleColorEmoji" credits:@"test menu message" headerColor:UIColorFromHex(0x8C198C) switchOffColor:UIColorFromHex(0x000000) switchOnColor:UIColorFromHex(0x8C198C) switchTitleFont:@"AppleColorEmoji" switchTitleColor:[UIColor whiteColor] infoButtonColor:UIColorFromHex(0xFFFFFF) maxVisibleSwitches:3 // Less than max -> blank space, more than max -> you can scroll! menuWidth:250 menuIcon:@"iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAIu0lEQVRoge1aS4wlZRX+zvmr7q17+/ZrunsezEwIM1EDRDEIPhY+4oKIEkk0ujC6IhrUKEhijFFXbkgUYuKCjawMmkiMgUQSNoZEXBgfDGEhOIA6DENPd09Pd993Vf3nc1FVt+vevt1zuxnjhMzZdN2qv87/f+d9TrWQxDuB9P99gKtF14Fca3QdyLVG14Fca/SOARLs9uDUZ74EIENq2a0bhLzPyM+ocyckCCIIQmX2XAQQApSdvIqUq6XcS8nuCwASCdOU5v2KijwvIr8w4C9lHq///lcHAzJCX6HZT1xUXarNzr1VmZraRBisikhlzFoiByMooRKANgyzEJKQsSVJ2O90ZuONja+mvf59ovpzAN8DEE9ywCsCMeAh0B6pLxy6EC0tvqDOqRidgQogHVosklU8qVeSIChiAEmBABpVEhAQUgyZVpQARFSrVV+vRau12dmL3bW1w731yw9S5BSALwLoHxiICEDiU6A9Uj+89O/a4tIlmoXmM0MrnMvya6oQnX6l/cKrN3Q2W4Fopg8RiEJEAKmdOLxVveXG5cH7ZVMjIZ4Oqq5+9OiKOhd3VlY/K6oPA/jOgYEAiGj2aDQ3t15bWLxk5sPyQxtdrcr2uYvTNzSmZx74/tcRBA4ucAgChzAI8M/X3sDDjzw+W7npyCXUo3icmRWAYD6MFhc30jhejjc2HxDVXwL4+4GAkLzLBcHNtcWFMwQHTg0MO7YUzg4g7vTcjadP8957P7kjGk4fmqcHSMtcqBREhgRTaIrCsLa4+FbSah+l9/cD+NpeQHYNvzTeHU432q5a8WIcLFYAzA9PDh+Gqdd6NM7/gW63C4AQlYFBFfzK1wNhGeEqFQsbU5eN/MReIPYEAuBUUK9fAhCYbG9gIy+Vr33qtVarjufmLTMbDMfngt+odvLfQVivr0Fw9MBAVKSuYQhwO/4Xm1F2gh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3y3aTARHV9aTVnkq73SCs1WhmUtjv6HCuSJiVSmDLl1t49MV1xM0We5tb6De3kG5tonP+DaT9voSV0Mjs/OPEvO2AyqTTDeN2e15UNw4MBMAL3uye7srq8fDkif+ISDhq30OASIRHF7pbZ15Pn//m/erTxNIkNvNmGohH4Cy66VjLzTV6NMu7y+33UeIlIhCztLe6ciON6lRefTtAnhLVH8ad9mJrebk3dezYRVUNzIbj/2BM5E3dwkw7uvNd/7J2NwwqlTSqhh6V0ETFxKmJKmlZX15+v+x3qkqSafut5SNxu7PoVGHA028HyN9E8LRC7+1tbJ5gmlbqhw9fcFHks70p5Ih5EAhmpzuYn0E2WMgLcwIE82m8ZN7OUtMGQFUIwnyv5zorKyf7rfZhlzVjawAePzCQPE48BODDTvVI0mof3uyem602GmuuMbUVVqsxRaooYVFs55y9aCTyEcZ+Gverabs9EzebS/BWyTUBBR5UYPnAQHJ6nYLPk3hSVY+BrHY3N49jc/O4U80+bUg2mytC9Gi2ZikysbTGC+CysE0hSDPNhxyAapHhvwvgiQlkM1E58ycFPm7A7wwwdYpc5YMBI5DlkmKgPZSdS/eKNeX7QogBKqoQ1eK9MxTcA+Cnk4AAJp9rnVXgcwA+aMSnBXg/BYeEpc8BpU9po1opm9IQyNxB8t8dBV4G8AcAz2KCjztlkuv/VHON0XUg1xq9Y4D8FybHQFj5BlmMAAAAAElFTkSuQmCC"]; setup(); } // If the menu button doesn't show up; Change the timer to a bigger amount. static void didFinishLaunching(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef info) { timer(15) { SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow]; [alert addButton: @"❤️Continue ->❤️" actionBlock: ^(void) { timer(2) { setupMenu(); }); }]; alert.shouldDismissOnTapOutside = NO; alert.customViewColor = [UIColor purpleColor]; alert.showAnimationType = SCLAlertViewShowAnimationSlideInFromCenter; [alert showSuccess: nil subTitle:@"test mode menu" closeButtonTitle:nil duration:99999999.0f]; }); } %ctor { CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, &didFinishLaunching, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); }
This is my tweak.xm
Your hook function is written wrong, it should be;
float(*old_GetGhostMaxSpeed)(void *this_); float GetGhostMaxSpeed(void *this_) { if([switches isSwitchOn:@"SpeedHack"]) { return old_GetGhostMaxSpeed * [[switches getValueFromSwitch:@"SpeedHack"] floatValue]; } // Note I'm closing the if statement here!!!!!!!!!!!!! return old_GetGhostMaxSpeed(this_); }
- 1
-
5 minutes ago, mkaf7 said:
i did bro look the new error
bash-5.0# sh "make.sh" ===> Setting SYSROOT to /var/theos/sdks/iPhoneOS11.2.sdk/... [1;31m> [1;3;39mMaking all for tweak hshs…[m ===> Setting SYSROOT to /var/theos/sdks/iPhoneOS11.2.sdk/... ===> Setting SYSROOT to /var/theos/sdks/iPhoneOS11.2.sdk/... ===> Setting SYSROOT to /var/theos/sdks/iPhoneOS11.2.sdk/... [0;32m==> [1;39mCompiling KittyMemory/KittyArm64.cpp (arm64)…[m [0;31m==> [1;39mPreprocessing Tweak.xm…[m Tweak.xm:85: error: %ctor does not make sense inside a block make[3]: *** [/var/theos/makefiles/instance/rules.mk:271: /private/var/mobile/hshs/.theos/obj/arm64/Tweak.xm.mm] Error 255 make[3]: *** Waiting for unfinished jobs.... [0;32m==> [1;39mCompiling KittyMemory/MemoryBackup.cpp (arm64)…[m [0;32m==> [1;39mCompiling KittyMemory/MemoryPatch.cpp (arm64)…[m [0;32m==> [1;39mCompiling KittyMemory/KittyUtils.cpp (arm64)…[m [0;32m==> [1;39mCompiling KittyMemory/KittyMemory.cpp (arm64)…[m [0;32m==> [1;39mCompiling Menu.mm (arm64)…[m rm /private/var/mobile/hshs/.theos/obj/arm64/Tweak.xm.mm make[2]: *** [/var/theos/makefiles/instance/library.mk:52: /private/var/mobile/hshs/.theos/obj/arm64/hshs.dylib] Error 2 make[1]: *** [/var/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2 make: *** [/var/theos/makefiles/master/rules.mk:119: hshs.all.tweak.variables] Error 2 bash-5.0#
i changed the sdk to 14.1 same error
Your tweak.xm is broken, you forgot to close something.
-
You need to use my template as a theos NIC template.
-
You'll have to write your own Objective-C code, as the menu does not support this by default.
- 1
-
On 2/18/2022 at 8:21 PM, Wwvk said:
after doing that i get 55 errors but i think it might have something to do with me being on ios 13, does that have something to do with it maybe?
It might be that the template I used in this guide is outdated for theos. You could try to make a menu instead with this template:
https://github.com/joeyjurjens/iOS-Mod-Menu-Template-for-Theos
-
15 hours ago, Wowowowww said:
Sorry for the late response this what it said
Exception type: EXC_BAD_ACCESS (SIGSEGV)
Exception subtype: KERN_INVALID_ADDRESS: 0x3f4eebc
Exception codes: 0x0000000000000001, 0x0000000003f4eebc
Culprit: bloons.dylib
VM Protection: 0x3f4eebc is not in any region.Also I change the offset for this one to another bool offset which is 0x175AEBC
Hmm, pretty strange. Could you try and change this "5": https://github.com/joeyjurjens/iOS-Mod-Menu-Template-for-Theos/blob/master/template/Tweak.xm#L111
In your tweak.xm to 15 or something? Maybe the framework isn't properly loaded yet for some reason. Otherwise I've no idea why it wouldn't work tbh.- 1
-
15 minutes ago, Wowowowww said:
Hello Ted this is me on my phone where would I find my crash log for the mod menu? And I tried and still crashed
You can download a tweak called Cr4shed.
-
Don't keep boilerplate patches that come with the template. Only patch the offset you want and check if it's still crashing.
If it is, post a crashlog so we can see what it says. -
11 hours ago, Wwvk said:
I got Theos by following the rook tutorial and using putty on windows and I’m using the iphoneos9.3 sdk
Try these sdks: https://github.com/theos/sdks, download them and extract in the sdks folder. Then run: make clean package and see if that works.
-
8 hours ago, Wwvk said:
How did you install theos? And which SDK did you download?
-
2 hours ago, Wwvk said:
when i try to do make package install in theos i keep getting errors i keep seeing could not build module 'preferences' anyone know a fix for this?
Could you post full stack trace?
-
Hello, see an example below on how you can patch hooks with the Mod Menu:
// Your hooks go above the void setup function %hook GenericShopCardDescription -(bool)hasBike { if([switches isSwitchOn:NSSENCRYPT("Unlock all bikes")]) { return true; } return %orig; } %end // Inside the void setup function you create the switch [switches addSwitch:NSSENCRYPT("Unlock all bikes") description:NSSENCRYPT("") ];
If you still can't get it to work, you can shoot me a PM and I'll try to help your from there!
- 1
-
On 1/8/2022 at 2:26 AM, ZAROS said:
Thank you!
next step will be to figure out how to add currency and possibly moves per round if I can wrap my head around the usage your other functions in Tweak.xm
That and find a way to fix my LLDB.
Lastly, I’m glad to see you’re still around!
Good luck let me know if you need help!
- 1
-
-
Yo, on what phone are you compiling? And what tutorial did you follow to install theos
-
What happens if you type make clean package? Pretty weird it tries to compile armv7 even though u removed it
-
Hello, what does your makefile look like? It looks like you’re trying to build arm32 but a iOS that does not support arm32 anymore.
remove arm7 from makefile and try again
-
4 hours ago, q595585742 said:
@Ted2I'm use your iOS Mod Menu Template for Theos on Jailbroken iPhone usefully, But when I use Sideloadly install game ipa with that deb on Non- Jailbroken,in the game the mod menu can show but when I open the switch, the game the game crash, Can you help me solve the problem~
You can’t do memory patches on NJB phones, so that’s why it’s crashing
-
-
Merry Christmas dude
- 1
- 1
H5GG - error when loading script
in Help & Support
Posted
@Happy Secret Maybe you can help?