Skip to content
Guest Big Announcement

Patcher showing up in settings, but not working ingame..

Featured Replies

Finally my patcher is showing up in settings now! But when I flick the switches and I go ingame. Nothing seems to happen :(. Does anybody know why.

Updated by Gaius

Your title trolled me

Finally my patcher is showing up in settings now! But when I flick the switches and I go ingame. Nothing seems to happen :(. Does anybody know why.

Show tweak.xm, replace anything you dont want people to see with the word REMOVED

  • Author

Show tweak.xm, replace anything you dont want people to see with the word REMOVED

alrighty.

 

/* Generated using http://armconverter.com/codeinjectgenerator/ */
/* To MSHook Offsets, use http://armconverter.com/mshookgenerator/ */

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <substrate.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.postknightgaius.plist"

inline bool GetPrefBool(NSString *key) {
	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
	if(GetPrefBool(@"skillpoints")) {
		writeData(0xoffset, 0xhex);
	} else {
}
	if(GetPrefBool(@"diamonds")) {
		writeData(0xoffset, 0xhex);
		writeData(0xoffset, 0xhex);
	} else {
}
	if(GetPrefBool(@"coins")) {
		writeData(0xoffset, 0xhex);
		writeData(0xoffset, 0xhex);
	} else {
}

} 

I'm using thumb hex for the hex because it was all 2 byte. And for offset I'm using the one you'd type in in a hex editor. I've tried the one next to the instructions too.

alrighty.

/* Generated using http://armconverter.com/codeinjectgenerator/ */
/* To MSHook Offsets, use http://armconverter.com/mshookgenerator/ */

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <substrate.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.postknightgaius.plist"

inline bool GetPrefBool(NSString *key) {
	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
	if(GetPrefBool(@"skillpoints")) {
		writeData(0xoffset, 0xhex);
	} 
	if(GetPrefBool(@"diamonds")) {
		writeData(0xoffset, 0xhex);
		writeData(0xoffset, 0xhex);
	} 
	if(GetPrefBool(@"coins")) {
		writeData(0xoffset, 0xhex);
		writeData(0xoffset, 0xhex);
	} 

} 
I'm using thumb hex for the hex because it was all 2 byte. And for offset I'm using the one you'd type in in a hex editor. I've tried the one next to the instructions too.

Looks fine. And if you used the wrong hex your game would crash so i doubt that's the issue. I also removed the useless else parts of your code.

 

Can i see your prefs plist?

  • Author

Looks fine. And if you used the wrong hex your game would crash so i doubt that's the issue. I also removed the useless else parts of your code.

Can i see your prefs plist?

the one located in resources in your project folder?

the one located in resources in your project folder?

yeah the biggest plist, the one with all your switches and stuff

  • Author

yeah the biggest plist, the one with all your switches and stuff

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Adds instead of subtracting.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>skillpoints</string>
			<key>label</key>
			<string>Unlimited Skill Points</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>diamonds</string>
			<key>label</key>
			<string>Unlimited Diamonds</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>coins</string>
			<key>label</key>
			<string>Unlimited Coins</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Gaius.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>Postknight Cheats</string>
</dict>
</plist> 

I made my hack autolipo too ;-;, while installing it says something about postinst error on line1, but it still installs. But idk I must hve done something wrong.

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Adds instead of subtracting.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>skillpoints</string>
			<key>label</key>
			<string>Unlimited Skill Points</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>diamonds</string>
			<key>label</key>
			<string>Unlimited Diamonds</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>coins</string>
			<key>label</key>
			<string>Unlimited Coins</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Gaius.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>Postknight Cheats</string>
</dict>
</plist> 
I made my hack autolipo too ;-;, while installing it says something about postinst error on line1, but it still installs. But idk I must hve done something wrong.

Looks fine too lol, can you zip up your project folder and send it to me in a PM so I can take a quick look

  • Author

Looks fine too lol, can you zip up your project folder and send it to me in a PM so I can take a quick look

yes

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.postknightgaius.plist"

 

Is there a file under this path with this exact name?

The game wouldn't crash if the data is never written due to GetPrefBool always returning false.

Updated by Bummibaer

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.