NotAWeeb!
1/3 Games Approved
As resumed as possible:
Been dealing with a il2cpp game with particular protections. Pairip and codestage. Bypassed pairip for various reasons (mainly converting from XAPK to APK). Codestage doesn't seem to be stopping me from modding (or so it seems). Game has worked before with various hex patches, and also does with the Menu.
So the problem is probably at my hook code. I just don't know where or how.
Been learning hooking intensively and creating my first hooks, for the sake of modifying 3 different currencies from the game that are stored in public ObscuredInt types.
These are the ObscuredInt methods and its field offsets:
Technically talking, offsets and field offsets seem to be the correct ones.
Down below, at the Spoiler, you'll find the screenshots of all my Main.cpp code.
I don't have much hooking experience. I don't know much about hooking Obscured types. I also don't have much experience with the LGL Menu, so I've been figuring new things out lately, now that I'm learning hooks.
My hooks just won't work to change the currencies. Game doesn't crash or anything after enabling the toggles of the currencies' hooks. Hooks apparently work fine, lib loads fine, toggling the hooks doesn't cause errors or related messages in the game... Everything seems fine, according to the logcat.
Don't really know why it doesn't work. Maybe it's just a dumb ass mistake, or the entire hooking code is wrong. I don't know C++ yet, but I can kind of understand what it does. I normally learn and copy code from various examples around sites like this forum, GitHub, YouTube tutorials and so on, and try to adapt it to my needs.
Please, help me out and teach me the ways. I'll seriously appreciate it.
P.D: Only the hex patch for Damage works. Not even the health (GodMode) float hook works.
Here's my code:
(...)
(...)
Been dealing with a il2cpp game with particular protections. Pairip and codestage. Bypassed pairip for various reasons (mainly converting from XAPK to APK). Codestage doesn't seem to be stopping me from modding (or so it seems). Game has worked before with various hex patches, and also does with the Menu.
So the problem is probably at my hook code. I just don't know where or how.
Been learning hooking intensively and creating my first hooks, for the sake of modifying 3 different currencies from the game that are stored in public ObscuredInt types.
These are the ObscuredInt methods and its field offsets:
Code:
// RVA: 0x983F90 Offset: 0x983F90 VA: 0x983F90
public ObscuredInt get_Pickles() { }
// RVA: 0x85E1E4 Offset: 0x85E1E4 VA: 0x85E1E4
public ObscuredInt get_CurrentGold() { }
// RVA: 0x85E204 Offset: 0x85E204 VA: 0x85E204
public ObscuredInt get_CurrentGems() { }
//Fields
private ObscuredInt <Pickles>k__BackingField; // 0x18
private ObscuredInt <CurrentGold>k__BackingField; // 0x88
private ObscuredInt <CurrentGems>k__BackingField; // 0x98
Technically talking, offsets and field offsets seem to be the correct ones.
Down below, at the Spoiler, you'll find the screenshots of all my Main.cpp code.
I don't have much hooking experience. I don't know much about hooking Obscured types. I also don't have much experience with the LGL Menu, so I've been figuring new things out lately, now that I'm learning hooks.
My hooks just won't work to change the currencies. Game doesn't crash or anything after enabling the toggles of the currencies' hooks. Hooks apparently work fine, lib loads fine, toggling the hooks doesn't cause errors or related messages in the game... Everything seems fine, according to the logcat.
Don't really know why it doesn't work. Maybe it's just a dumb ass mistake, or the entire hooking code is wrong. I don't know C++ yet, but I can kind of understand what it does. I normally learn and copy code from various examples around sites like this forum, GitHub, YouTube tutorials and so on, and try to adapt it to my needs.
Please, help me out and teach me the ways. I'll seriously appreciate it.
P.D: Only the hex patch for Damage works. Not even the health (GodMode) float hook works.
Here's my code:
(...)
(...)