Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


What's crashing the game?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Varstal
Newbie cheater
Reputation: 0

Joined: 14 Jun 2014
Posts: 20

PostPosted: Mon Jun 23, 2014 9:56 am    Post subject: What's crashing the game? Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Jun 23, 2014 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Varstal
Newbie cheater
Reputation: 0

Joined: 14 Jun 2014
Posts: 20

PostPosted: Mon Jun 23, 2014 1:51 pm    Post subject: Reply with quote

ok, but other than that it looks good?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Jun 23, 2014 2:30 pm    Post subject: Reply with quote

Looks okay to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites