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 


trainer creation help - pointer/offsets?

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

Joined: 01 Sep 2011
Posts: 2

PostPosted: Thu Sep 01, 2011 12:51 pm    Post subject: trainer creation help - pointer/offsets? Reply with quote

First time poster here guys.
I have used cheat engine for around a year or two now and have had little problems searching for addresses and modifying them, and creating trainers that work as long as i don't close the game I'm playing when I create the trainer.
The problem I'm having is that the trainer doesn't work when I close the game and reopen it.

The typical way I make a trainer is I search for a value, say handgun ammo and when I find it, i enter a new value to make sure its going to work, then after I am sure I right click on the address and click 'what writes to this address'.

I attach a debugger and then go in game and shoot my handgun or pickup bullets depending on how i want my trainer to work. When I find the register that writes to the address, I add it to my trainer as handgun ammo, and click freeze amount or increase and assign it a button, lets say F1.
I save the trainer, curse at AVG for being horrid, run the trainer with the game and f1 does just what I want it to do. As soon as I close the game and reopen it the trainer does nothing.

Some codes aren't hard to find, like ammo, but other times when health/shield don't have a numeric value it is annoying to have to find these each time I run the game.

Please share with me the wealth of your knowledge and help me to find what I am doing wrong that these trainer makers do so awesomely.

Thanks
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Thu Sep 01, 2011 12:56 pm    Post subject: Reply with quote

In some games, not even the code addresses are static. Check that your script is modifying the correct code before you activate it.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
paroxysmal
How do I cheat?
Reputation: 0

Joined: 01 Sep 2011
Posts: 2

PostPosted: Thu Sep 01, 2011 1:01 pm    Post subject: scripts Reply with quote

I read a little bit about scripts since you mentioned it.

I have very little programming background and that is what scripts look like to me.

Is there a faq or guide somewhere for script creation? I can probably figure it out if I see what I am supposed to do.
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Thu Sep 01, 2011 1:13 pm    Post subject: Reply with quote

The Code Injection step of CE shows how to make a script.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
gameplayer
Advanced Cheater
Reputation: 2

Joined: 26 Jun 2011
Posts: 97
Location: Vietnam

PostPosted: Sun Sep 11, 2011 2:39 am    Post subject: Re: scripts Reply with quote

paroxysmal wrote:
I read a little bit about scripts since you mentioned it.

I have very little programming background and that is what scripts look like to me.

Is there a faq or guide somewhere for script creation? I can probably figure it out if I see what I am supposed to do.

You seem not to know anything about scripts. I can't explain a lot. But you should do the tutorial. Run Tutorial-i386.exe for win 32 bits or Tutorial-x86_64.exe for win 64 bits. Search in this forum with keywords "auto assembler", "code injection" and read what you are interested in. Download a table with some scripts about any games that you've ever played, try to learn from them as examples. Right click on the scripts and select "change script" to read and write on them. Create a simple script by click memory view to show a new window. At menu bar, select tool -> auto assembler to open a new script. In memory view window, select an address then return to auto assembler window select template -> Cheat Table framework code, and template -> code injection to cheat at the selected address. Click file -> assign to current cheat table to add the script into your table for saving purpose. You must know assembly language to do this action because the game may crash if there's something wrong.
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