Jump to content

Creating Tweak Help


Go to solution Solved by Amuyea,

20 posts in this topic

Recommended Posts

Posted
#include <substrate.h>
#include <Foundation/Foundation.h> 

static int __ZN10GlobalData8addMoneyEi() 
{
return 99999;
} 

%ctor{
MSHookFunction(MSFindSymbol(NULL, "__ZN10GlobalData8addMoneyEi"),(int*)__ZN10GlobalData8addMoneyEi, NULL);
}
Your whalecum.

 

If changes don't take effect you must've hacked something useless or something wrong.

 

Thank you much...I'll try it now!

Posted

Try this mate.

int (*old__ZN10GlobalData8addMoneyEi)();

int $__ZN10GlobalData8addMoneyEi() { 

 return 9999; 

 }

%ctor { 

MSHookFunction(((int*)MSFindSymbol(NULL, "__ZN10GlobalData8addMoneyEi")),(int*)$__ZN10GlobalData8addMoneyEi,(int**)&old__ZN10GlobalData8addMoneyEi);

}

I'll try this now, the other one had no effect. Could be useless though...nothing to hack maybe.

Posted

I'll try this now, the other one had no effect. Could be useless though...nothing to hack maybe.

there is always something to hack you just have to find the right function.
Posted

there is always something to hack you just have to find the right function.

Well the function I used was not right lol. There are some others, I'll try those. Incidentally, in IDA, when I double click the function it takes me to IDA view and arm instructions. For that particular one it's something like MOV R1, (here it refers to the function name followed by lua state*)

Posted

Are you new to it? (MSHook) or you have knowledge with Flex and mobile substance etc

 

What I am wondering is how to create a tweak when there are several functions that contain coins, add coins, add money, get money, set money, etc...BUT after dumping the binary there no headers that contain said functions? Like...what do you hook them to?

Posted

It's better to know how to use mobile substance /flex before doing it

I know how to use Flex but the games I play...there isn't anything useful in Flex. Nothing about money, coins, levels...

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