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 


[HELP] Step 7 in Cheatengine Tutorial

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

Joined: 10 Dec 2006
Posts: 21

PostPosted: Sat Apr 14, 2007 9:33 am    Post subject: [HELP] Step 7 in Cheatengine Tutorial Reply with quote

Quote:
Code injection is a technique where one injects a piece of code into the target process, and then reroute the
execution of code to go through your own written code

In this tutorial you'll have a health value and a button that will decrease your health with 1 each time you click it.
Your task is to use code injection to increase the value of your health with 2 every time it is clicked

Start with finding the address and then find what writes to it.
then when you've found the code that decreases it browse to that address in the disassembler, and open the auto
assembler window (ctrl+a)
There click on template and then code injection, and give it the address that decreases health (If it isn't already filled
in correctly)
That'll generate a basic auto assembler injection framework you can use for your code.

Notice the alloc, that'll allocate a block of memory for your code cave, in the past, in the pre windows 2000 systems,
people had to find code caves in the memory(regiosn of memory unusaed by the game), but thats luckely a thing f
the past since windows 2000, and will these days cause errors when trying to be used, due to SP2 of XP and the NX
bit of new CPU's

Also notice the line newmem: and originalcode: and the text "Place your code here"
As you guessed it, write your code here that will increase the health with 2.
a usefull assembnler instruction in this case is the "ADD instruction"
here are a few examples:
"ADD [00901234],9" to increase the address at 00901234 with 9
"ADD [ESP+4],9" to increase the address pointed to by ESP+4 with 9
In this case, you'll have to use the same thing between the brackets as the original code has that decreases your
health

Notice:
It is recommended to delete the line that decreases your health from the original code section, else you'll have to
increase your health with 3 (you increase with 3, the original code decreases with 1, so the end result is increase
with 2), which might become confusing. But it's all up to you and your programming.

Notice 2:
In some games the original code can exist out of multiple instructions, and sometimes, not always, it might happen
that a code at another place jumps into your jump instruction end will then cause unknown behaviour. If that
happens, you should usually look near that instruction and see the jumps and fix it, or perhaps even choose to use a
different address to do the code injection from. As long as you're able to figure out the address to change from inside
your injected code.


I really need help with the part that tells you to
Quote:
Also notice the line newmem: and originalcode: and the text "Place your code here"
As you guessed it, write your code here that will increase the health with 2.
I don't know what to write and I don't know what my code is to increase the health with 2. I don't kno what to write to make the value increase by 2, it only decreases into negative oblivion! Please help me! Thanks.

P.S. I tried searching the forum for help on Step 7, but no luck, I found Step 8 which I will surely use after I pass Step 7!
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Sat Apr 14, 2007 10:34 am    Post subject: Reply with quote

Tutorial section has some, This is not the right thread for this..
Back to top
View user's profile Send private message
applepi
Newbie cheater
Reputation: 0

Joined: 10 Dec 2006
Posts: 21

PostPosted: Sat Apr 14, 2007 11:22 am    Post subject: Reply with quote

No it does not have a tutorial explaining Step 7. If you can help, please do an not just redirect me to someone who can. However if you can't then.. you have no need to involve yourself. Thank you!
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Sat Apr 14, 2007 12:21 pm    Post subject: Reply with quote

applepi wrote:
No it does not have a tutorial explaining Step 7. If you can help, please do an not just redirect me to someone who can. However if you can't then.. you have no need to involve yourself. Thank you!


Yes, it does. Go look.
This is the wrong thread for this.

Redirection> To someone who can help you.
http://forum.cheatengine.org/viewtopic.php?t=56649
http://forum.cheatengine.org/viewtopic.php?p=193121#193121
http://forum.cheatengine.org/viewtopic.php?t=54253
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