Jump to content

9 posts in this topic

Recommended Posts

Posted

I modified an attack damage of my units on a game. I set it to 65k damage points. But in the game the attack damage reduced to 5 damage points. Here is my modification

 

Push{r4-r7, lr}

Mov r0, #FF

Mov r3, #FF

Muls r0, r3

Pop{r4-r7, pc}

 

I just dont understand why the attack damage got reduced to 5 damage points. Any explanation for this?

Posted

 

Push{r4-r3, lr}

Mov r0, #FF

Mov r3, #FF

Muls r0, r3

Pop{r4-r7, pc}

What is the hex value of push{r4-r3, lr}? My arm to hex converter is unable to convert it

Posted

What is the hex value of push{r4-r3, lr}? My arm to hex converter is unable to convert it

Try looking at what the hex already is for PUSH {R4-R7, LR}. If you see a seven in there, try changing it to three. I use this method when modding instructions with the ".W" suffix :)

brave frontier? i know the max damage is 65335 or something like that :p

Posted

Try looking at what the hex already is for PUSH {R4-R7, LR}. If you see a seven in there, try changing it to three. I use this method when modding instructions with the ".W" suffix :)brave frontier? i know the max damage is 65335 or something like that :p

thanks but it didnt work. I just followed the encoding for PUSH and was able to encode it.
Posted

 

Push{r4-r3, lr}

Mov r0, #FF

Mov r3, #FF

Muls r0, r3

Pop{r4-r7, pc}
it didnt work. Still 5 damage points.
Posted (edited)

Why you use r4 and r7 ? When they are not used

FF * FF= 61665

255 * 255= 65025

Use bx lr or copy result to lr

sorry im a newbie in ida hacking. I just followed a tutorial in the other site. I even tried this:

 

Mov r0, #FF

Mov r1, #FF

Muls r0, r1

Bx lr

 

...but im still dealing 5 damage points per hit. Damage points for unmodified ranges from 500 to 3k damage points per hit

Updated by akosijv
Posted

sorry im a newbie in ida hacking. I just followed a tutorial in the other site. I even tried this:

 

Mov r0, #FF

Mov r1, #FF

Muls r0, r1

Bx lr

 

...but im still dealing 5 damage points per hit. Damage points for unmodified ranges from 500 to 3k damage points per hit

im not sure if you use #0xff instead of #ff, will it work? or you can use #255 if you wanted to

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