Find a method that deals with money spending and hook it. Then return a high negative number like -999
Put a negative value to the function brother
Some shit like this for a mod menu or somethingHey dollaz and nowhere222,
Thanks a ton for your quick responses and guidance! Just to clarify, when you mention "hooking" the method that deals with money spending, are you referring to finding the specific function or method responsible for deducting the in-game currency?
If so, do you happen to know of any tutorials or resources that could help me understand the process of hooking and modifying such functions? I'm still relatively new to this, and a step-by-step guide or example would be incredibly beneficial.
Additionally, both of you mentioned returning a high negative number like -999 or putting a negative value to the function. Could you elaborate a bit more on this step?
I appreciate your patience and assistance as I navigate through this learning process. Looking forward to your insights!
int(*old_function)(void *instance);
int function(void *instance)
{
if (instance != NULL)
{
if (boolean)
{
return -99;
}
}
return old_function(instance);
}
Some shit like this for a mod menu or something
Code:int(*old_function)(void *instance); int function(void *instance) { if (instance != NULL) { if (boolean) { return -99; } } return old_function(instance); }
or to return -99 in a hex patch use this shit
6200E0E31EFF2FE1
Firstly, thanks a bunch for sharing that code snippet and shedding some light on the process! I gave it a shot, but unfortunately, it doesn't seem to be working for the game I'm trying to mod, Cyber Dude: Dev Tycoon.
I've tried using offset testers with various coins-related methods, but no luck so far. It seems like the methods might be encrypted or obfuscated in some way, making it challenging to locate the specific function responsible for currency spending.
Considering that someone has already modded an older version of this game with the multiplier, do you think the encryption or protection mechanisms could have been enhanced in the newer version, making it more difficult to locate the relevant methods?
If anyone has experience modding Cyber Dude: Dev Tycoon or dealing with similar encryption challenges, your insights would be highly valuable. I'm determined to crack this and appreciate any guidance you can provide.
Thanks again for your help!
Hello, try to find a similar function that use that currency, for example a spend function or consume function, or any function that spend the currency and freeze it with no operation HEX value
nop
bx lr
in ARM32
nop
ret
in ARM64
Another solution would be to locate a method that use the currency value and return the field offset to a high negative value
If the original method not doing anything, try to debug the game with MatLog and locate the Unity functions that are used when u touch the screen ;)
Here is my HEX CODES thread btw;
Crazy list of HEX CODES
Hi everyone, here is my list of HEX Codes from years of modding and learning :pepe025: Happy modding :pepe019: ARM32 ///// FLOAT INFINITY -> 80 0F 47 E3 1E FF 2F E1 INT INFINITY -> FF 0F 47 E3 1E FF 2F E1 INT NEGATIVE -> 00 00 48 E3 1E FF 2F E1 FLOAT NEGATIVE -> 7F 0F 4F E3 1E FF 2F E1...platinmods.com
Thanks for reply :)
I've made some progress on my modding journey, but I've hit a bit of a roadblock. I found an offset (0x5A9EFC) in the Cyber Dude: Dev Tycoon game that seems to be related to object destruction. When I directly edit this offset with a hex value, the mod works as intended. However, when I try to incorporate it into my LGL menu with a boolean, it doesn't seem to have the desired effect.
Here's the code snippet I've been working with:
PATCH_LIB_SWITCH("libil2cpp.so", "0x5A9EFC", "B2 14 45 E3 1E FF 2F E1", boolean);
The offset itself isn't of type int, bool, or float. It appears to be related to a method DestroyObject(). Directly hex editing works, but when integrated into the LGL MOD Menu with a boolean, it doesn't.
Any ideas on what I might be doing wrong or how to adapt this for use in the LGL menu? I'm open to suggestions and appreciate any insights you can provide.
Thanks in advance!
Thanks for reply :)
I've made some progress on my modding journey, but I've hit a bit of a roadblock. I found an offset (0x5A9EFC) in the Cyber Dude: Dev Tycoon game that seems to be related to object destruction. When I directly edit this offset with a hex value, the mod works as intended. However, when I try to incorporate it into my LGL menu with a boolean, it doesn't seem to have the desired effect.
Here's the code snippet I've been working with:
PATCH_LIB_SWITCH("libil2cpp.so", "0x5A9EFC", "B2 14 45 E3 1E FF 2F E1", boolean);
The offset itself isn't of type int, bool, or float. It appears to be related to a method DestroyObject(). Directly hex editing works, but when integrated into the LGL MOD Menu with a boolean, it doesn't.
Any ideas on what I might be doing wrong or how to adapt this for use in the LGL menu? I'm open to suggestions and appreciate any insights you can provide.
Thanks in advance!
Use LGL Mod Menu 2.9, it's the best version and still have the good things for hex patching, the latest is bad
BTW;
the hex code you're using for a void method is bad, use the nop code instead!
Thanks i figured out the nop code. i used arm to hex converter :)BTW;
the hex code you're using for a void method is bad, use the nop code instead!
Thanks i figured out the nop code. i used arm to hex converter :)
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