Jump to content

17 posts in this topic

Recommended Posts

Posted (edited)

I'm hacking trivia crack and it works when turning on in flex2! But when I ms hook it, it's not working the hack. I have the make file and control properly made 100% but the hack isn't working. Can you please pin point where/why not working?? Mainly WHATS WRONG WITH THE -VOIDS?Here is my tweak.xm:

 

%hook PRQuestionViewController

-(bool) characterWinTutorial {

return TRUE;

}

%end

 

%hook PRAnswersGroupView

-(void) setWrongAnswerSelector:(SEL)arg1 {

return %orig;

}

%end

 

%hook PRPowerUp

-(int) cost {

return 0;

}

%end

 

%hook PRGameViewController

-(bool) shouldShowPowerUpTips {

return TRUE;

}

%end

 

%hook PRGameViewController

-(bool) willShowPowerUpTip {

return TRUE;

}

%end

 

%hook PRQuestionViewController

-(void) showCorrectAnswer {

return %orig;

}

%end

 

%hook PRAccountManager

-(bool) userHasUnlimitedLives {

return TRUE;

}

%end

Updated by Asianplus
Posted

try this

 

%hook PRQuestionViewController
-(bool) characterWinTutorial {
return TRUE;
}
-(void) showCorrectAnswer {
return %orig;
}
%end
 
%hook PRAnswersGroupView
-(void) setWrongAnswerSelector:(SEL)arg1 {
return %orig;
}
%end
 
%hook PRPowerUp
-(int) cost {
return 0;
}
%end
 
%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}
-(bool) willShowPowerUpTip {
return TRUE;
}
%end
 
 
%hook PRAccountManager
-(bool) userHasUnlimitedLives {
return TRUE;
}
%end 
Posted

Looks like you're going off of my patcher in tweak form? :lol:

 

Anyway, is it the entire thing not working, or only the voids?

Posted (edited)

instead of:

%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}
%end

%hook PRGameViewController
-(bool) willShowPowerUpTip {
return TRUE;
}
%end

%hook PRQuestionViewController
-(void) showCorrectAnswer {
return %orig;
}
%end

make it 

%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}







-(bool) willShowPowerUpTip {
return TRUE;
}





-(void) showCorrectAnswer {
return %orig;
}

%end

they have to be in the same class

Updated by Doge Hacks
Posted

Looks like you're going off of my patcher in tweak form? :lol:

 

Anyway, is it the entire thing not working, or only the voids?

Just the voids

Looks like you're going off of my patcher in tweak form? :lol:

 

Anyway, is it the entire thing not working, or only the voids?

  

try this

 

%hook PRQuestionViewController

-(bool) characterWinTutorial {

return TRUE;

}

-(void) showCorrectAnswer {

return %orig;

}

%end

 

%hook PRAnswersGroupView

-(void) setWrongAnswerSelector:(SEL)arg1 {

return %orig;

}

%end

 

%hook PRPowerUp

-(int) cost {

return 0;

}

%end

 

%hook PRGameViewController

-(bool) shouldShowPowerUpTips {

return TRUE;

}

-(bool) willShowPowerUpTip {

return TRUE;

}

%end

 

 

%hook PRAccountManager

-(bool) userHasUnlimitedLives {

return TRUE;

}

%end

 

  

You can't hook the same method twice...

  

Can you show us your makefile?

  

instead of:

 

%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}
%end

%hook PRGameViewController
-(bool) willShowPowerUpTip {
return TRUE;
}
%end

%hook PRQuestionViewController
-(void) showCorrectAnswer {
return %orig;
}
%end
make it 

%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}







-(bool) willShowPowerUpTip {
return TRUE;
}





-(void) showCorrectAnswer {
return %orig;
}

%end
they have to be in the same class

Only the voids are NOT working!

Posted (edited)
#include <substrate.h>

%hook PRQuestionViewController
-(bool) characterWinTutorial {
return TRUE;
}
%end

%hook PRAnswersGroupView
-(void) setWrongAnswerSelector:(SEL)arg1 {
return %orig;
}
%end

%hook PRPowerUp
-(int) cost {
return 0;
}
%end

%hook PRGameViewController
-(bool) shouldShowPowerUpTips {
return TRUE;
}
%end

%hook PRGameViewController
-(bool) willShowPowerUpTip {
return TRUE;
}
%end

%hook PRQuestionViewController
-(void) showCorrectAnswer {
return %orig;
}
%end

%hook PRAccountManager
-(bool) userHasUnlimitedLives {
return TRUE;
}
%end

Add this to your make file:

ARCHS = armv7 arm64

Before you do that are unlimited lives working when you install the tweak?

Updated by Ficgan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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