| View previous topic :: View next topic |
| Author |
Message |
Varstal Newbie cheater
Reputation: 0
Joined: 14 Jun 2014 Posts: 20
|
Posted: Mon Jun 23, 2014 9:56 am Post subject: What's crashing the game? |
|
|
So originally I was using the register at the health address and that worked for a while, but I was having an issue that on some boots the register I was using was changing so I decided to go back to looking into data dissection and find a static offset (which I found). I altered the code to cmp the offset instead of what I was using before. Thankfully, Methos++ showed me how to use an offset that is under a pointer so this is what I currently have:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(exit)
label(aob)
label(zombie)
label(friendly)
registersymbol(aob)
aobscan(aob1,F3 0F10 40 24 F3 0F 5A C0 F2 44 0F5A F8 F3 44 0F11 3C 24)
newmem:
push ebx
mov ebx,[rax+70]
mov ebx,[ebx+70]
cmp ebx,(float)1
pop ebx
je friendly
jmp zombie
friendly:
mov [rax+24],(float)100.0
movss xmm0,[rax+24]
jmp returnhere
zombie:
movss xmm0,[rax+24]
jmp returnhere
exit:
jmp returnhere
aob1:
aob:
jmp newmem
returnhere:
[DISABLE]
dealloc(newmem)
aob:
db F3 0F 10 40 24
unregistersymbol(aob)
The issue that I'm having is that I load the code and within 30 seconds.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Jun 23, 2014 1:12 pm Post subject: |
|
|
| Probably because your offset is no good. You need to compare as many structures as you can to ensure that your pointer tree is reliable. If you see ?? in any of the structures at that pointer location, the game will crash when trying to compare what the value is at that location. Either try a different pointer tree, and/or inject at a different instruction that ONLY accesses health addresses.
|
|
| Back to top |
|
 |
Varstal Newbie cheater
Reputation: 0
Joined: 14 Jun 2014 Posts: 20
|
Posted: Mon Jun 23, 2014 1:51 pm Post subject: |
|
|
| ok, but other than that it looks good?
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Jun 23, 2014 2:30 pm Post subject: |
|
|
| Looks okay to me.
|
|
| Back to top |
|
 |
|