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 


PLLLLEASE help me in code injection

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Spark2893
How do I cheat?
Reputation: 0

Joined: 10 Dec 2007
Posts: 7
Location: Malaysia(luv it)

PostPosted: Mon Dec 31, 2007 12:24 am    Post subject: PLLLLEASE help me in code injection Reply with quote

Hey ,i think i need your help,guys
I am playing ALien Shooter and try to inject some code
The opcode for decreasing my health is mov [esi+54],edi.
I will try to make my health stays 100 all the time

Code:


[ENABLE]
alloc(newmem,2046)
label(newmem)
label(exit)
label(returnhere)

0047a33:
jmp newmem
nop
returnhere:

newmem:
mov [edi],100
mov [esi+54],edi
pop esi
pop edi
jmp returnhere

exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
0047a33:
mov [esi+54],edi
pop esi
pop edi



When i enabled it after assigning it to the cheat table....
BOOM!
the game crash
Where i got it wrong and how to fix it

Help me i'm a noobie in code injecting so good replies will mean so much to me
Back to top
View user's profile Send private message Send e-mail
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Dec 31, 2007 12:19 pm    Post subject: Reply with quote

Now try this.
You was moving 100 to [edi] but should be edi only.
newmem:
mov [edi],100 <--- edi does not need [ ]
Also, 100 is not 100 health as your thinking.
That is changing health to 256.
It should be: mov edi,64
64 hexa = 100 decimal
100 hexa = 256 decimal
decimal = visual HP in game.
Code:
[ENABLE]
alloc(newmem,2046)
label(newmem)
label(exit)
label(returnhere)

0047a33:
jmp newmem
nop
returnhere:

newmem:
mov edi,64
mov [esi+54],edi
pop esi
pop edi
jmp returnhere

exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
0047a33:
mov [esi+54],edi
pop esi
pop edi
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