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 


Code injection and trainer

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

Joined: 17 Feb 2007
Posts: 10

PostPosted: Sat Feb 24, 2007 2:38 pm    Post subject: Code injection and trainer Reply with quote

how do i put something i did with code injection into a trainer (with CE)

in this case step 7 of the tutorial
Back to top
View user's profile Send private message
Hans Henrik
Expert Cheater
Reputation: 0

Joined: 18 Feb 2007
Posts: 178

PostPosted: Sat Feb 24, 2007 4:00 pm    Post subject: Reply with quote

i uploaded a full movie, where i went thought all steps from 1-8

download here Wink http://www.MegaShare.com/117425

_________________
Im not around.

im almost never checking the forum anymore
Back to top
View user's profile Send private message MSN Messenger
knill23
Newbie cheater
Reputation: 0

Joined: 17 Feb 2007
Posts: 10

PostPosted: Tue Apr 03, 2007 6:20 am    Post subject: Reply with quote

Thanks for the video, finally downloaded it, but its not what i was asking.


What i wanted was to do this (download this trainer to get the idea)

http://www.megaupload.com/?d=5DO46UDO

or

http://www.MegaShare.com/142456


if someone can help me out on, how to put code injection into a trainer
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Apr 03, 2007 10:31 am    Post subject: Reply with quote

Hans Henrik wrote:
i uploaded a full movie, where i went thought all steps from 1-8

download here Wink http://www.MegaShare.com/117425



That video is not real good, all you did was run through the tutorial and not explain anything. But at least you took the time to make one for someone to watch. He wants to see how to make a trainer not hack the steps.

Also just to help you out a bit, Having a ass load of icons on your desktop uses valuable system resource. Thus is wasting [Ram]. Doesnt matter if you are sitting with 2 gigs of it, just silly to waste ram because you think you have enough.
=================================================
Back on topic:

When you find the address for health in step 7:
Right click it and "Find what writes to it"
Go back to the tut and click the button.


You will now see this in the debugger window. This instruction is decreasing the health by 1 every time you push the button.
The tut wants you to make it increase by 2 every button press.
It can be done several ways depending how fancy you want to get.


Click the add to codelist button and click ok:


Now click the show disassembler button and we land here:


Now we make sure to Highlight the instruction, and click tools > Auto Assemble:


Then we will get the assembler box, and click Template>Code Injection


You should get this: It is the original code. We will alter it.


Now for the injection: Im going to do the most simple one so not to lose anyone who may be gaining something from this:
We already know that dec [ebx+0000030c] is a decrease of one each press. So what we want is it to add 2 not take away, lets do this injection.
add [ebx+ooooo30c],3 Now we had put this instruction in so the code will now add 3 to the instruction then dec it by 1. So when the button is pressed now you will see it increase by 2.
Another simple way would be to do it would be to change the original instruction to this: add [ebx+0000030c],2 But we will stick with the tutorial for now. Ok after you got the script written, click ok to inject it. If everything goes well you can go to the tut and click the button and watch it increase by 2.


No go to the codelist:


You will see this box: Select the code you see and click the Disk button:


Next you will get this box: Click the bullets that you see:


Now you will see the trainer template:
Click this button:


You will see this box, click the code tab and highlight the code and add the hotkey.


You will see it add to the template:


Now finish out the trainer and click generate and your done.
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