Skip to content
Guest Big Announcement

Breakpoint doesn't hit when enemy attacks

Featured Replies

Hey,

 

So I've found one hit kill, problem is it's linked.

I know I'll need to set breakpoints, but the breakpoints doesn't hit when I get hit by enemy. Only when I hit a enemy.

I'm not sure what I can do next to unlink, anyone does? :eyes: 

 

This is the code;

loc_495852
LDR             R6, [SP,#0xA8+var_58]
VLDR            D8, =100.0
LDR             R5, [R6,#0x14]
LDR             R0, [SP,#0xA8+var_58]
VMOV            S2, R5
VLDR            S0, [R0,#0x18]
VCVT.F64.S32    D16, S2
VCVT.F64.S32    D17, S0
VDIV.F64        D16, D16, D17
VMUL.F64        D16, D16, D8
VMOV            R0, R1, D16
BLX.W           j__ceil
VMOV            D16, R0, R1
MOV.W           R0, #0xFFFFFFFF
SUBS            R1, R5, R4 <----> R4 to r7 = ONE HIT KILL, why: R4 = damage & r5 = current health
MOV             R2, R5 <-----> R5 to R8 = die, why: R5 = current health, r8 holds the value of 0
VCVTR.S32.F64   S0, D16
MOVS            R3, #0
VSTR            S0, [SP,#0xA8+var_54]
STR             R0, [SP,#0xA8+var_48]
MOVS            R0, #0
BL.W            sub_CD6928
STR             R0, [R6,#0x14]
CMP             R0, #0
BGT             loc_4958FC

 

Updated by Ted2
Added my code

7 minutes ago, Ted2 said:

Hey,

 

So I've found one hit kill, problem is it's linked.

I know I'll need to set breakpoints, but the breakpoints doesn't hit when I get hit by enemy. Only when I hit a enemy.

I'm not sure what I can do next to unlink, anyone does? :eyes: 

some game cant be unlinked.....

57 minutes ago, Ted2 said:

Hey,

 

So I've found one hit kill, problem is it's linked.

I know I'll need to set breakpoints, but the breakpoints doesn't hit when I get hit by enemy. Only when I hit a enemy.

I'm not sure what I can do next to unlink, anyone does? :eyes: 

 

This is the code;


loc_495852
LDR             R6, [SP,#0xA8+var_58]
VLDR            D8, =100.0
LDR             R5, [R6,#0x14]
LDR             R0, [SP,#0xA8+var_58]
VMOV            S2, R5
VLDR            S0, [R0,#0x18]
VCVT.F64.S32    D16, S2
VCVT.F64.S32    D17, S0
VDIV.F64        D16, D16, D17
VMUL.F64        D16, D16, D8
VMOV            R0, R1, D16
BLX.W           j__ceil
VMOV            D16, R0, R1
MOV.W           R0, #0xFFFFFFFF
SUBS            R1, R5, R4 <----> R4 to r7 = ONE HIT KILL, why: R4 = damage & r5 = current health
MOV             R2, R5 <-----> R5 to R8 = die, why: R5 = current health, r8 holds the value of 0
VCVTR.S32.F64   S0, D16
MOVS            R3, #0
VSTR            S0, [SP,#0xA8+var_54]
STR             R0, [SP,#0xA8+var_48]
MOVS            R0, #0
BL.W            sub_CD6928
STR             R0, [R6,#0x14]
CMP             R0, #0
BGT             loc_4958FC

 

Use the backtrace feature or bt that will give you a list which you'd have to go through to find the function :)

  • Author
Just now, K_K said:

Use the backtrace feature or bt that will give you a list which you'd have to go through to find the function :)

But the breakpoint doesn't get hit when I get damaged, while when change the code it does :/. So when I do BT, I can't compare the enemy output with mine :/

3 minutes ago, Ted2 said:

But the breakpoint doesn't get hit when I get damaged, while when change the code it does :/. So when I do BT, I can't compare the enemy output with mine :/

It works when you hit enemy?... 

  • Author
16 minutes ago, K_K said:

It works when you hit enemy?... 

yes, the breakpoint gets hit & game freezes.

When I get hit, breakpoint doesn't get hit & doesn't freeze.

 

When I change the code, like I wrote. It apparently is my health function too, so I find it strange xD 

1 minute ago, Ted2 said:

yes, the breakpoint gets hit & game freezes.

When I get hit, breakpoint doesn't get hit & doesn't freeze.

 

When I change the code, like I wrote. It apparently is my health function too, so I find it strange xD 

you need to check places where is goes in ida to compare.... and then try that to watch....

4 minutes ago, Ted2 said:

yes, the breakpoint gets hit & game freezes.

When I get hit, breakpoint doesn't get hit & doesn't freeze.

 

When I change the code, like I wrote. It apparently is my health function too, so I find it strange xD 

What you need to do is use the backtrace function and check the functions even though you hit the enemy ;)

9 minutes ago, K_K said:

What you need to do is use the backtrace function and check the functions even though you hit the enemy ;)

what is backtrace function? when we are using this and how?

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.