PDA

View Full Version : Trainer 1 - Obscure v1.1 - Part 2


DABhand
27-04-2005, 08:52
Here we go, again been busy in real life, but here is how to build your trainer.

http://www.vwaskar.pwp.blueyonder.co.uk/asm4FF/tr1d2.txt as always for a better version.


Part2
=====


Ok so we have our options for our trainer, so how to make a trainer, a good place
to start is using Trainer Maker Kit, which can be found on the web freely.


Remember I told ya to mark down your changes and addresses etc, well I hope you did
because you will need them here. Especially the Hex values and the addresses.


Ok this is what has to be done.

1. Make sure the game is running and ALT+TAB out of the game to the desktop
2. Run TMK


Ok you have TMK running now, now what to do


Ok give the project a name and click on create.


Ok first off we have to tell the trainer which game its going to patch when its built
you will see a Tab on the left middle window entitled "Build Settings" click here and
you will be presented with a few options, the top being the most important, called
Process name, find the game running in the process list above and select it and make
sure it is moved into your Process name field. Done? Good

Now the field below entitled Exe name, is the name of the trainer your going to make
and NOT the game itself. So type here c:\mytrain this will save your trainer to C:
and call itself mytrain.exe (you dont have to add the .exe at the end TMK will do it
for you).

Ok lets get back to the Objects menu. Click this.

Ok we are back to the objects menu, and we have a very dull looking trainer so far.
Nothing there. First right click on the dialog box shown on the right screen. And
goto properties, here you can change the title of the trainer and some other options.

Just change the Trainer title to "Obscure v1.1 +x Trainer" x is the number of options
you have, bear in mind that all ammo options you have count as one and should be placed
under the same option.

Lets add a Button, you can use the insert menu or the button icon on the top row, a
button will be used to either...

1. Be pressed to start and option
2. Or have a shortcut key assigned to it so when you press the key in the game, it will
do the same thing as pressing the button.


Ok we have a button, what you can do is move the button around to be placed where you
like wherever is fine, its up to yourself.

Now right click the button, and goto properties and here you can change the button name,
say if ammo call it "Ammo" (without the "") or if health call "Health". Other Tabs on
this window will allow you to do certain other things.

Lets go through them.


1. FCT - this will be where you will tell TMK the function of the button, since its for
changing game code, we will click on Poke (which it should be by default).

2. Ttip - This is for a mouse over event, when you move the mouse over the button you can
display a small information window saying what it does, but it isnt really needed so
leave blank.

3. Color - Obviously to change the colour of the button and the text inside it.

4. BMP - This is when you have picture buttons, one for normal, one for over the top
(maybe a light added) and one for when clicked (for example a pressed in button).
We wont bother with this at this time. The more of this you add the more bytes the
trainer will take up.

5. Key - An important one, here you can specify the hotkey for when you press the key in
game, the trainer will know what to do. Just make sure you dont use a button that is
used in the game itself.

6. Misc - If you want to add a sound when a button is pressed so to let people know they have
activated a cheat. Again not necessary and will take up more space.


Ok so the important ones is FCT, Color and Key for now. Set to what you want then close the
window.

Now right click again on the button, and choose Write Memory Actions. This is where we will
add our code for the game :)


Ok ill use my ammo information as shown in part 1.

When I load up the Write Memory Actions I have been presented by a white box in which I can
type, and some other buttons, dont use wizzard its a pain in the backside for this.

Just to recap here is my code injection for the ammo from part 1.


6AE3C8 - C7 85 54 01 00 00 63 00 00 00 - mov [ebp+00000154],00000063
6AE3D2 - C3 - ret
6AE3D3 - 90 - nop

4EE369 - E8 5A 00 1C 00 - call 006ae3c8
4EE36E - 90 - nop


In our little window we will do this

Type in this

POKE Address_used Hex_values

Note, that addresses must be in 8 bits, the addy in my example above is 6 bits, so add 00
at the start so 6AE3C8 becomes 006AE3C8.

Also uses CAPS LOCK its much easier ;)

In my case it will look like this


POKE 006AE3C8 C7 85 54 01 00 00 63 00 00 00 C3 90
POKE 004EE369 E8 5A 00 1C 00 90


If just used the first address noted, and just typed out each individual hex values, they
will be placed in the correct place. As long as the address is correct!

You will know if you did it right, as Poke will be blue colored, address black, and each
individual hex value is light blue.

Once done hit apply.


There you go one option done.


It is the same for each other button, just use a unique key for each button, and type in the
correct addresses used and hex values.


When you have done all this, remember to SAVE the project, there is nothing worse than
quiting TMK only to go back maybe because of a mistyped value to find its not there anymore.

So save after each button made to be sure ok.

Once saved, you can build your trainer, just goto build menu at the top and select
Build Your Project, it will be saved to disc, so you can run it and test it.

It is best to test from a clean load of the game, so you can see the options at work if they
are working or not. If the game crashes, you may have made a mistake somewhere, go back to
check whats been done.


For further fun, you can add a picture to your trainer, change its icon etc.


Once you build your trainer, have a look at the options and have fun.


There ya go, well done your first trainer, which you can be proud of showing or showing off
to your friends.

paraidy
27-04-2005, 16:43
Oh Great!! when you Have some time, can you make a tutorial for some stuff more complex than Ammo and healt?
thx :)