Jump to content

51 posts in this topic

Recommended Posts

Posted

I have been trying to get this working for days and I can't seem to understand why it's not working.

 

Basically, I'm trying to make a flex patch into a patcher. This is what it looks like it flex :

lvLwVCn.jpg

 

I tried many things, exemple, doing this : #typedef id _MAIN_STRUCT*

 

-(int)SYS_GetRemainderJewel:(_MAIN_STRUCT*)fp8 {

if(GetPrefBool(@"kJewels")) {

return 999999999;

}

return %orig;

}

 

 

Will give me errors stating that (_MAIN_STRUCT*) is an unknown type.

 

 

Sorry for the long topic :3

Posted

I think u shall change the return value or change the target method it may work

Changing the return value won't really fix it since it work in flex. For the method I tried to change it in soooo many ways but it still didn't work :( sometimes it compiles but the hack doesn't work

Posted

change this tweak (ms hook) in to patcher ;)

Like this?

 

%hook MyMainGame

 

(int)SYS_GetRemainderJewel:(_MAIN_STRUCT*)fp8 {

if(GetPrefBool(@"kJewels")) {

return 999999999;

}

return %orig;

}

 

%end

 

Thanks for the help, you the best! :)

Just use flexconvertor and chill!In putty or mterminal

FlexConverter PatchName

Where to I type that? In Mterminal?

Posted

Like this?

%hook MyMainGame

(int)SYS_GetRemainderJewel:(_MAIN_STRUCT*)fp8 {

if(GetPrefBool(@"kJewels")) {

return 999999999;

}

return %orig;

}

%end

Thanks for the help, you the best! :)

 

Where to I type that? In Mterminal?

Search for FlexConverter on this forum

Follow the forum

Its easy asf and yes in Mterminal

Posted

Search for FlexConverter on this forum

Follow the forum

Its easy asf and yes in Mterminal

I'll check it out but I still want to understand why my patcher isn't working and what kind of method this game uses. I'm learning obj c and it would be too easy using the flexconverter :)

Posted

I'll check it out but I still want to understand why my patcher isn't working and what kind of method this game uses. I'm learning obj c and it would be too easy using the flexconverter :)

Good for u (y)

Btw use MSHOOK for tweak.xm

And just look at my post for target and arch error if needed

Posted

Good for u (y)

Btw use MSHOOK for tweak.xm

And just look at my post for target and arch error if needed

I thought I already was :p what am I using? MS?

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