Skip to content
Guest Big Announcement

Tweak.xm & Preferences Plist somebody to insert for me...

Featured Replies

Tweak.xm & Preferences Plist somebody to insert for me... i need that so i can understand...

and after that i will try to make deb and see what errors i get, so i can fix errors... but firs to make sure that this two files are good...

Here is my project folder located in /var/mobile/projectname in this case is /var/mobile/00

i will upload project and tweak and plist txt files so someone can put that in my project and upload so i can examine and try to make deb...

thanks you...

p.s. also, if you change any other file that this two please make a note...

here is link what need to be modified and reuploadeed for me..

https://www.dropbox.com/s/v5fnjyry6tno6s8/Project 00.zip?dl=0

game is of course Trigger Fist :)

Solved by Ted2

  • Author
5 minutes ago, Ted2 said:

The whole project is f**ked up.

 

Create a new project & follow this tutorial:

 

how do you mean fuked up, when i created from ground so i can upload.. i tried that tutorial, but that does not help me to understand, that is why i asked for help about this to files, so i can examine....

6 minutes ago, Goran said:

how do you mean fuked up, when i created from ground so i can upload.. i tried that tutorial, but that does not help me to understand, that is why i asked for help about this to files, so i can examine....

I'm not gonna fix your files, it's a total mess. Start for scratch

  • Author
Just now, Ted2 said:

I'm not gonna fix your files, it's a total mess. Start for scratch

man, i do that from scratch.... that is why i ask for help...

i only created over terminal and copied, nothing touched...

2 minutes ago, Goran said:

man, i do that from scratch.... that is why i ask for help...

i only created over terminal and copied, nothing touched...

You didn't. The tweak.xm is renamed to tweak.xm.text, the plist inside there is the plist which should be in the resources folder.

You did touch it.

  • Author
13 minutes ago, Ted2 said:

You didn't. The tweak.xm is renamed to tweak.xm.text, the plist inside there is the plist which should be in the resources folder.

You did touch it.

oh maaan, that is created from http://armconverter.com/codeinjectgenerator/ and in txt, everything else is GENUINE...

i created everything, just to implement inside... that is why is like that....

Just now, Goran said:

oh maaan, that is created from http://armconverter.com/codeinjectgenerator/ and in txt, everything else is GENUINE...

i created everything, just to implement inside... that is why is like that....

you implented it totally wrong. 

Still means you touched the files, even replaced them.

  • Author
Just now, Ted2 said:

you implented it totally wrong. 

Still means you touched the files, even replaced them.

man, sorry but you did not read my first post... i said there thet i just created project folder, and i just created txt with codes that need to be implemented... :)

i just need that from txt files to be in project thats all... so i can understand....

thanks for help mate... <3

1 minute ago, Goran said:

man, sorry but you did not read my first post... i said there thet i just created project folder, and i just created txt with codes that need to be implemented... :)

i just need that from txt files to be in project thats all... so i can understand....

thanks for help mate... <3

I can't help with a project that has been totally wrong changed by you.

As I said, start from scratch & I'll help.

 

Upload the files you get when you created the template.

  • Author
Just now, Ted2 said:

I can't help with a project that has been totally wrong changed by you.

As I said, start from scratch & I'll help.

 

Upload the files you get when you created the template.

Here you go, i swear in god that nothing is touched....

https://www.dropbox.com/s/7jjx6g3vkgqwqnw/007.zip?dl=0

 

game is Trigger Fist

Ammo              001527D4        0000A0E3

Grenades         0015370C        000040E2

  • Solution

Read what I wrote after // in both the tweak.xm & preferences.plist

 

Tweak.xm

Spoiler

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

/* To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-tweakpatcherfunction-tweakpatcher-withwithout-psedittextcellpsslidercell-generator-online/ */
/* To Easily Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject-generator-online-tweakxm-preferencesplist/ */

#define PLIST_PATH @"/var/mobile/Library/Preferences/001.plist"

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

%ctor {
	if(GetPrefBool(@"key1")) { //ammo, key1 is used in 'yourprojectfolder/007/Resources/007.plist
		writeData(0x1527D4 0xA0E3); //You had 0x001527D4, the 00 before 152... is NOT needed Also 0000A0E3 can be just 0xa0e3
	} else {
}


	if(GetPrefBool(@"key2")) { //grenadesm key 2 is used in 'yourprojectfolder'/007/Resources/007.plist
		writeData(0x15370C, 0x40E2);//here counts the same from what I wrote above, in the ammo hack.
	} else {
}
}

 

 

007.plist (in /'yourprojectfolder/007/Resources/007.plist

Spoiler

<?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>This text will appear under your first switch.</string> // This is the text under your first switch, which is ammo.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you  named it this but doesn't matter, mormally: com.Goran.nameofapp
			<key>key</key>
			<string>key1</string> //key1 = Ammo from your tweak.xm
			<key>label</key>
			<string>Switch Text 1</string> // Switch Name for Ammo, rename it to 'Ammo'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>This text will appear under your second switch.</string> // This is the text under your second switch, which is grenades.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you named it this but doesn't matter, normally: com.Goran.nameofapp
			<key>key</key>
			<string>key2</string> // key2 = Grenades from your tweak.xm
			<key>label</key>
			<string>Switch Text 2</string> //Switch Name For Grenades, Rename it to 'Grenades'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Goran.</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>007 Cheats</string> //The title you want, which is probably 'Trigger Fist Cheats'
</dict>
</plist>

 

 

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.