Jump to content

29 posts in this topic

Recommended Posts

Posted

This is the offset code I found from lldb. This code does not lose character blood. I do not know how to change it. I tried changing the value of 00000001001F202C STR, but the HP returned to zero. help me.

 

PFvvm2v.png

  • Replies 28
  • Created
  • Last Reply

Top Posters In This Topic

Posted
1 minute ago, vinhthai222006 said:

This is the offset code I found from lldb. This code does not lose character blood. I do not know how to change it. I tried changing the value of 00000001001F202C STR, but the HP returned to zero. help me.

 

PFvvm2v.png

U say value changed to 0?

see the CMP & MOVI, they both return 0 too. Might change that.

 

or try change CMP to 1

Posted (edited)
23 minutes ago, Ted2 said:

U say value changed to 0?

see the CMP & MOVI, they both return 0 too. Might change that.

 

or try change CMP to 1

change FCMP            S0, #1 error convert arm to hex :( 

i using arm64

Updated by vinhthai222006
Posted
Just now, vinhthai222006 said:

FCMP            S0, #0.0 change to cmp w0, #1???

Yea try, might crash dunno

Btw, try use breakpoints to know what the registers hold xD

Posted

Ok, here is the breakdown of what the code is doing:

FCMP S0, #0.0 <-- this is comparing the health to see if your health (S0) is equal to 0.0

B.LS loc__ <-- B.LS (Branch if Less) means that if the value in S0 is less than 0.0, it will branch to this loc__

STR XZR <-- If the value is not less than 0.0, then the health is stored in XZR register

 

At loc__1001F2040 we see this:

STR WZR  

MOVI V0, #0

This moves the value of 0 into the health register, thus making the player dead

Posted
8 hours ago, vinhthai222006 said:

hp = 0. Character is dead

@DiDA @K_K @cz1993  help me plz

Change the FCMP S0, #1.0

You have to have the .0 on the end. 

The most you can change it to is 31.0

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