// Hook Method
int (*old_CoinMod)(void *instance);
int CoinMod(void *instance)
{
if(instance != nullptr)
{
if(HackCoin) // Toggle
{
// COIN
/// => I need to return a obscuredint value
// Tried with UnityStuff ( not work) because work just for field
SetObscuredIntValue( instance, 999);
}
}
return old_CoinMod(instance);
}
// Hook
// public static ObscuredInt get_Coin
A64HookFunction((void*)getAbsoluteAddress(targetLibName, DataManager::get_Coin) , (void*)CoinMod, (void**)&old_CoinMod);
NullReferenceException: Object reference not set to an instance of an object.
at CodeStage.AntiCheat.ObscuredTypes.ObscuredInt.InternalDecrypt () [0x00000] in <00000000000000000000000000000000>:0
Show the method from dnSpy?
public static ObscuredInt Coin
{
[Token(Token = "0x6003528")]
[Address(RVA = "0x26C5238", Offset = "0x26C5238", VA = "0x26C5238")]
get
{
return default(ObscuredInt);
}
}
I already tried with static but it doesn't work for me either
I faced the same problem, did you manage to solve it somehow?on ARMv7 it work perfect for me, but not on ARM64, why i dont know, because for BoolObscured, not problem, but for Int, not work
I faced the same problem, did you manage to solve it somehow?
Maybe it will help you
Hook not working on ARM64v8
Good evening. I ran into a problem, I'm modifying the game Jurassic World Alive, the previous version worked on ARMv7 and there were no problems, after updating ARMv7 it stopped running. Therefore, I began to make hooks on ARM64v8, everything works fine on Nox x64, and as soon as I launch...platinmods.com
I missed that you have a static method, everything is simple, there is no instance in static methods, so skip the first argumentC#:public static ObscuredInt Coin { [Token(Token = "0x6003528")] [Address(RVA = "0x26C5238", Offset = "0x26C5238", VA = "0x26C5238")] get { return default(ObscuredInt); } }
// Hook Method
static int (*old_CoinMod)();
static int CoinMod()
{
if(HackCoin) // Toggle
{
//SetObscuredIntValue( instance, 999); //Set static??
SetObscuredIntValue(999); //I think that the set is also static
}
return old_CoinMod();
}
// Hook
// public static ObscuredInt get_Coin
A64HookFunction((void*)getAbsoluteAddress(targetLibName, DataManager::get_Coin) , (void*)CoinMod, (void**)&old_CoinMod);
Info from another programming language, but the essence is the sameI already tried with static but it doesn't work for me either
I will test :)I missed that you have a static method, everything is simple, there is no instance in static methods, so skip the first argument
Try like this
C++:// Hook Method static int (*old_CoinMod)(); static int CoinMod() { if(HackCoin) // Toggle { //SetObscuredIntValue( instance, 999); //Set static?? SetObscuredIntValue(999); //I think that the set is also static } return old_CoinMod(); } // Hook // public static ObscuredInt get_Coin A64HookFunction((void*)getAbsoluteAddress(targetLibName, DataManager::get_Coin) , (void*)CoinMod, (void**)&old_CoinMod);
Info from another programming language, but the essence is the same
View attachment 475876
tested not work, same problem for "I missed that you have a static method, everything is simple, there is no instance in static methods, so skip the first argument
Try like this
C++:// Hook Method static int (*old_CoinMod)(); static int CoinMod() { if(HackCoin) // Toggle { //SetObscuredIntValue( instance, 999); //Set static?? SetObscuredIntValue(999); //I think that the set is also static } return old_CoinMod(); } // Hook // public static ObscuredInt get_Coin A64HookFunction((void*)getAbsoluteAddress(targetLibName, DataManager::get_Coin) , (void*)CoinMod, (void**)&old_CoinMod);
Info from another programming language, but the essence is the same
View attachment 475876
u can show dump?tested not work, same problem for "
NullReferenceException: Object reference not set to an instance of an object.
at CodeStage.AntiCheat.ObscuredTypes.ObscuredInt.InternalDecrypt () [0x00000] in <00000000000000000000000000000000>:0
"
// Hook Method
static void* (*old_CoinMod)();
static void* CoinMod()
{
if(HackCoin) // Toggle
{
//SetObscuredIntValue( instance, 999); //Set static??
SetObscuredIntValue(999); //I think that the set is also static
}
return old_CoinMod();
}
// Hook
// public static ObscuredInt get_Coin
A64HookFunction((void*)getAbsoluteAddress(targetLibName, DataManager::get_Coin) , (void*)CoinMod, (void**)&old_CoinMod);
codestage is bypaased bro :)Its anticheat.. disable
Do you find the way how to do it? I mean hook obscured method like ObscuredInt?codestage is bypaased bro :)
C#:
return 99l;
ARMv7:
63 00 A0 E3 00 10 A0 E3 1E FF 2F E1
ARM64:
60 0C 80 52 C0 03 5F D6
Can you share obscured bool hook?on ARMv7 it work perfect for me, but not on ARM64, why i dont know, because for BoolObscured, not problem, but for Int, not work
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies