Jump to content

10 posts in this topic

Recommended Posts

Posted

Hi Guys,

 

i create succesfully my first debian file,

i see also the Preference Menu on my IPAD, i can switch GOD MODUS, LevelSkip etc.

 

But the game are not affected if i change the code with HEX Editor manually they works perfect.

 

Tweak.xm CODE :

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

BOOL GOD;

%ctor
{
GOD = [[[NSDictionary dictionaryWithContentsOfFile:@"var/mobile/Library/Preferences/com.Zagor1979.plist"] valueForKey:key@"GOD"] boolValue];
if(GOD)
{
	writeData(0x1C2064,0x3501); //------> new  adds r5 , r5 , #0x1)
}

{
	writeData(0x1C2064,0x002E); old
}

}

I try more things but unfortunally they dont work great..

 

I need you Help Master DIDA :)

 

Thanks for your Support

 

Posted

You have the if statement but no else statement.

 

And also the comments need to be removed when compiling because they can cause issues.

 

Your correct tweak.xm should be this:

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

BOOL GOD;
%ctor
{
GOD = [[[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.Zagor1979.plist"]valueForKey:@"GOD"]boolValue];
if(GOD)
{
writeData(0x1C2064, 0x3501);
}
else
{
writeData(0x1C2064, 0x002E);
}

}

Try it and let me know if it works. :)

Posted

I tried but unfortunately won't work, I did exactly this that you writes

Check your offsets and make sure your plist name is "com.Zagor1979.plist" and make sure you have hooked the right key to your preference plist.

Posted (edited)

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

#import "writeData.h"

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

%ctor {

if(GetPrefBool(@"kGOD")) {

writeData(0x1C2064,0x3501); //hack here

}

else

{

writeData(0x1C2064,0x002E); //old hex here

}

}

Updated by Kenny808
Posted

actually:

 

 

#import "writeData.h"
 
#define PLIST_PATH @"/var/mobile/Library/Preferences/PLISTNAMEHERE.plist"
 
inline bool GetPrefBool(NSString *key)
{
         return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
if(GetPrefBool(@"kGOD")) 
{
      writeData(0x1C2064,0x3501); //hack here
} 
 
}

 

if and only if the plist key kGOD is on, does anything actually happen. if switch is off, why write to memory when the memory is exactly what it needs to be?

Posted

I try now to create simply a tweak without button, i like to remember you that i have a Ipad Air ,

i change also the Make file for 64 Device, the creation work fine, but if the game are still not affected, if a change this manually with hex editor they work perfectly.

 

I dont know if the problem are the code:

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


%ctor{
	writeData(0x29E0CC,0x8042);

}

Please help me :wallbash: :wallbash: :wallbash: :wallbash: :wallbash:

Posted

DiDA, please look on my Picture i prepare all the information that you need for a diagnose, @

http://imgur.com/45D...WuIR81Z,uMEhVW1

 

Its really crazy i tried to create a new Tweak with a simply Game, but again the same problem, also i tried to created a Packed on my Iphone 6 Plus ios 8

 

I wait of your Support Guys smile.png

 

Thanks

Posted

Hi DiDA i check the folde avery single file, i found one interesting differetnt beetween my Plist struct and this of Zahir Folder, but this are generate auotmatically from $THEOS.

and an other difference are in the structure, he has one folder more there as me.

 

http://imgur.com/4xLEkPz

 

My Plist content: dungeon.plist

{ Filter = { Bundles = ( "com.orca.dungeonm" ); }; }

Zahir Plist content: dh4.plist

<?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>Filter</key>
	<dict>
		<key>Bundles</key>
		<array>
			<string>com.gameloft.DungeonHunter4</string>
		</array>
	</dict>
</dict>
</plist>

Posted

 

Hi DiDA i check the folde avery single file, i found one interesting differetnt beetween my Plist struct and this of Zahir Folder, but this are generate auotmatically from $THEOS.

and an other difference are in the structure, he has one folder more there as me.

 

http://imgur.com/4xLEkPz

 

My Plist content: dungeon.plist

{ Filter = { Bundles = ( "com.orca.dungeonm" ); }; }

Zahir Plist content: dh4.plist

<?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>Filter</key>
	<dict>
		<key>Bundles</key>
		<array>
			<string>com.gameloft.DungeonHunter4</string>
		</array>
	</dict>
</dict>
</plist>

Can you send me your project folder so I can take a look?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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