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 


Issue with Health code!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Sun May 29, 2016 5:30 pm    Post subject: Issue with Health code! Reply with quote

Code:
cmp [rsi+68],33
jne originalcode
nop
nop
nop
nop
nop
nop
jmp exit


Full Code injection:

Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,46934CBB)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
cmp [rsi+68],33
jne originalcode
nop
nop
nop
nop
nop
nop
jmp exit

originalcode:
movss [rsi+2C],xmm15

exit:
jmp returnhere

46934CBB:
jmp newmem
nop
returnhere:



 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
46934CBB:
movss [rsi+2C],xmm15
//Alt: db F3 44 0F 11 7E 2C



What could be the issue ? - I tried many other Offsets and nothing works, maybe i'm doing it wrong ?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Sun May 29, 2016 5:55 pm    Post subject: Reply with quote

This is a dynamic address so every time you restart the game you'll have to adjust the script's injection location. Use Templates->AOB Injection instead.

Btw: All the "nop"s in your newmem-part are not necessary.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Sun May 29, 2016 5:57 pm    Post subject: Reply with quote

Those nop instructions are pointless.

You should be using an AoB scan if you intend to use this script after restarting the game.

What's going wrong? Does the game crash? Does the health never change? Does it always change?

Does that instruction even access multiple addresses?

Are you sure that's a 4 byte value in the structure at +68? Use cmp byte ptr [rsi+68],33 if it's only one byte long.

_________________
I don't know where I'm going, but I'll figure it out when I get there.


Last edited by ParkourPenguin on Sun May 29, 2016 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Sun May 29, 2016 5:58 pm    Post subject: Reply with quote

Ehm I see, I just followed a video tut, Thank you i'll just try other stuff Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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