Skip to content
Guest Big Announcement

Attack damage modification

Featured Replies

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?

  • Author

 

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

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

  • Author

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.
  • Author

 

Push{r4-r3, lr}

Mov r0, #FF

Mov r3, #FF

Muls r0, r3

Pop{r4-r7, pc}
it didnt work. Still 5 damage points.
  • Author

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

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.