Jump to content

7 posts in this topic

Recommended Posts

Posted

So I found this function which handles the subtracting coins from player wallet every time they purchase.

__text:0000000101D17A3C                 SUB             W8, W8, W24
__text:0000000101D17A40                 STR             W8, [X0,#0x38]

0x101d17a3c being the one that's doing the subtracting the cost from the player wallet and putting the difference back into the wallet im guessing. When I look @ my watch points 0x101d17a40 is the address that shows the value in the wallet before then the value in the wallet after the previous function.

Basically, my question why when I make the SUB an ADD it still subtracts cost instead of adding it?

Posted

try mov w8, #0xffff if it doesn't work maybe your offset is wrong

Posted
38 minutes ago, tien0246 said:

try mov w8, #0xffff if it doesn't work maybe your offset is wrong

didnt work :/

Posted
18 hours ago, o_0 said:

didnt work :/

So changing the function to ADD W8, W8, W24 isn't working? if not try to run the entire sub_x under MOV W8, W29 and then RET so your patch would look like this E8031D2A
C0035FD6. If doesn't do anything (even a crash on the app) then the sub_x may not be the correct one you're looking for.

Posted
10 minutes ago, Crimson said:

So changing the function to ADD W8, W8, W24 isn't working? if not try to run the entire sub_x under MOV W8, W29 and then RET so your patch would look like this E8031D2A
C0035FD6. If doesn't do anything (even a crash on the app) then the sub_x may not be the correct one you're looking for.

Not working not even a crash. Is it possible it's not working because that function is server sided or even if it was it still would've at least crashed 

Posted
1 hour ago, o_0 said:

Not working not even a crash. Is it possible it's not working because that function is server sided or even if it was it still would've at least crashed 

If i'm not mistaken, as long as you're getting an offset when debugging you should be able to at least produce a crash to make sure the offset is effective. I would have to guess that the offset you're looking into may not be the one you want.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines