Hello to all!
I'm new to making mods, and I'm currently trying to make a mod for one game. I'm doing everything according to this guide and encountered a problem that after applying the patch the currency does change to the new currency, but only after purchasing an item, the balance becomes negative. Items can still be bought, but while the patch is enabled, after it will write that there are not enough funds. How can I avoid that the balance becomes negative ?
this is what I'm patching:
public int money
{
[Token(Token = "0x600034E")]
[Address(RVA = "0x25C9E88", Offset = "0x25C9E88", VA = "0x25C9E88")]
get
{
return 0;
}
}
with this value 00F0271EC0035FD6
Literally below in the code there is also refresh:
[Token(Token = "0x1700003B")]
public int refresh
{
[Token(Token = "0x600034F")]
[Address(RVA = "0x25D0B40", Offset = "0x25D0B40", VA = "0x25D0B40")]
get
{
return 0;
}
}
I tried changing it to the same value I change the amount of balance to, but it didn't work