Jump to content

36 posts in this topic

Recommended Posts

Posted

i was wondering, how can make a tweak that calls  and modify functions from an app, like for example in minecraftpe binary file,  there is a function called "Pig::getMaxHealth(void)", it returns "0xA" , i know how to mod it using hex editor, but how can you make a tweak that modifies this function return?

 

extra info :

 

* Here is an image of the function that i want to modify:

r10uaw.jpg

* Im using IDA to disassemble minecraftpe binary file.

* minecraftpe version: 0.9.5

Posted

Actually, binary and tweak are different. :D

Binary can only be modify using IDA.

Tweak, can be add using 'code' which you will find it from FLEX.

I don't know if you can modify it from a tweak, but I'm pretty sure it can't :)

Posted (edited)

Ok I'll show u :)

YAYYAYAY!!! ufff , i was so disappointed, i tought you couldn't.   :)

 

Actually, binary and tweak are different.  :D

Binary can only be modify using IDA.

Tweak, can be add using 'code' which you will find it from FLEX.

I don't know if you can modify it from a tweak, but I'm pretty sure it can't  :)

Thanks for tha info thou   :) .

Updated by CosnotraLF
Posted

#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

 

int (*old__ZN3Pig12getMaxHealthEv) ();

 

int $__ZN3Pig12getMaxHealthEv()

{

return 99999; //Any Number

}

 

MSInitialize {

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN3Pig12getMaxHealthEv")),(int*)$__ZN3Pig12getMaxHealthEv,(int**)&old__ZN3Pig12getMaxHealthEv);

}

Posted (edited)


#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

 

int (*old__ZN3Pig12getMaxHealthEv) ();

 

int $__ZN3Pig12getMaxHealthEv()

{

return 99999; //Any Number

}

 

MSInitialize {

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN3Pig12getMaxHealthEv")),(int*)$__ZN3Pig12getMaxHealthEv,(int**)&old__ZN3Pig12getMaxHealthEv);

}

I don't know what to say.

THANK YOU,  ill try it out!!

I'M SO EXCITED!!   :)

 

Updated by CosnotraLF
Posted (edited)

It didn't work :(, but your speed mod did. I don't get the code thou so idk if is correct or not. Whenever a Pig spawns, the game clashes and closes. Any fix for this?

Updated by CosnotraLF
Posted

It didn't work :(, but your speed mod did. I don't get the code thou so idk if is correct or not. Whenever a Pig spawns, the game clashes and closes. Any fix for this?

I don't know :(

Posted

It didn't work :(, but your speed mod did. I don't get the code thou so idk if is correct or not. Whenever a Pig spawns, the game clashes and closes. Any fix for this?

Try setting another number instead of 99999..

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