@nekrasov I don't create separated featureToggle(s), it works just fine with every other hook I currently have.
I've (theoretically) determined that the cause of the unability to hook the ObscuredInt methods is basically that I'm not using the correct field location to deobfuscate the original methods' location (maybe I'm wrong, I'm still learning
).
I don't exactly know what you mean by this, but I have a feeling that's what could fix the hooks if I do it properly. Please, explain to me what you mean.
I already tried to hook other related methods to currencies in order to mod it, but I have to properly bypass CodeStage or my game will freeze every time the currency method hook gets called. I already tried doing NOP to all methods on classes except the main CodeStage class, and still freezes. The problem relays on the fact I don't know how to figure the offsets for the CodeStage's main class methods, and they won't show up in dnSpy.
I've heard I'm able to do so with IDA, but need to figure out exactly how. Do you have any reference or can teach me how?
As soon as I get to bypass CodeStage, I should be able to create all currency cheats with related methods to the original Obscured ones.
I'm still learning hooking, I started creating my first hooks with this same game I'm dealing with. Please keep this in mind.
And I don't know what you mean by learning how to hook Obscured methods and not just fields. Am I not hooking Obscured methods with the required field offsets (BackingFields)?