Jump to content

Need some help for modding this instruction for one hit kill


13 posts in this topic

Recommended Posts

Posted

I set my watchpoint, continued the game, and damaged an enemy. The watchpoint hit and GDB gave me an offset with the instruction VSTR S0, [R10, #204]. So logically I thought that I would NOP it to make one hit kill work. But of course I get EXC_BAD_ACCESS. But a NOP would be the only thing that would give me EXC_BAD_ACCESS. Here is what I have tried so far:

 

VSTR S7, [R10, #204]
I only did that because it would make the zombies in Dead Trigger a one hit kill, but in this game, it just made the health infinite.

 

VSTR S18, [R10, #204]
I did that because I saw somewhere that S18=80.0, but enemy heath was still infinite.

 

VMOV S0, R0
I did that because when GDB gave me the address R0 held something like -30. But enemy health was still infinite.

 

VMOV S0, R1
Same logic used with the one above. R1 held -100 or something like that, but it didn't work.

 

MOV R0, #0
VMOV S0, R0
I thought that if I moved 0 into R0 and then moved R0 into S0 enemy health would be zero, but it was still infinite.

 

MOV R0, #0
STR R0, [R10, #204]
Same logic as above, but I did not include S0 at all. Did not work.

 

If anyone can help me with this, it would be greatly appriciated :)

Posted

Like MOV R7, #data has 0x7F

Still not really sure what you mean, the original instruction was VSTR S0, [R10, #204] and there was not anything like VMOV S0, #x

Posted

u had to find the highest float value but forgot how :facepalm:

I think I know what you mean. There are different enemies in this game so I'll just get get an offset from the biggest one.

Posted

@KingRalph

 

The arm converter does not support VSUB, so I'm going have to figure out the hex myself. It might take a while, but I'll be sure to get back to you :)

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