Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TuT]How To Make A Game Trainer[TuT]

Hello, Today i am going to show all of you how to make a basic game trainer.

Necessary Equipment:

1. A .swf decompiler. I recommend using SoThink SWF DeCompiler

2. A web browser that allows you to view the page information such as firefox.

3. Basic Knowledge of visual basic programming.

4.Obviously, Visual Basic. I will be using Visual Basic 2008

Step 1: Getting the SWF from your game.

First, find a game you want to make a trainer for. I will be using Electric Man 2 Right click the page and select "View page info" like this-
Spoiler (Click to View)

Then, Click media and find the SWF for the game you are making a trainer for like this-
Spoiler (Click to View)
It should say embed under the type but sometimes it says object under type.

Step 2: Selecting The Variable
Now you must open the swf in SoThink. If you downloaded sothink correctly it should look like this-[IMG]http://i.min.us/jkjSKQ.jpg[/IMG]

Now click the maximize button next to electricman2.swf and select action and go to MainMovie like his-
Spoiler (Click to View)

Now find a variable. Most variables start with Root and look something like "root.life" Or something similar. I am going to use root.username to change my username in the game. The variable you pick should look like this-Spoiler (Click to View)

Step 3: Making The Trainer
Open visual basic and create a new windows application. Name it anything you like. Now go to solution explorer and click show all files like this-
Spoiler (Click to View)

Now, Right click references and click add reference and go to the COM tab and look for flash or FlashAccessibility like this-
Spoiler (Click to View)
Now,Right click Toolbox -> Click "Choose Items", in COM Components tab, choose Shockwave Flash Object, then you can see the control in the Toolbox.Now in your toolbox you should find something called Shockwave Flash Object. Drag one of those onto your form and resize it to the size you are comfortable with. Right click it and click properties and look for where it says "Movie". under movie put the link of the swf you downloaded. In this case it would be-http://www.andkon.com/arcade/adventureaction/electricman2/electricman2.swf

Put that into movie and add a button and a textbox to your form.
Double Click the button and add this-
Code
Call AxShockwaveFlash1.SetVariable("your variable here", TextBox1.Text)

Since im using the Username variable my code is this-
Code
Call AxShockwaveFlash1.SetVariable("username", TextBox1.Text)

Now when you debug the game should load normally. Select what username and electricity color you want and start playing. Play through the first round with your username then in the text box change your username to anything you want and it will become that username.
Example-

Spoiler (Click to View)

Conclusion:
Now you have a simple trainer for electric man 2! That's the end of my tutorial! I hope you all enjoy it an make some pretty cool trainers with it!
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS
Not a bad tutorial, good job.
Bookmarked. I can make money with this, thanks
(Mar 12, 2011 03:48 PM)Cody8295 Wrote:  Not a bad tutorial, good job.

It was pretty simple and i tried to make it as organized as possible but it got a bit messy.

(Mar 12, 2011 03:48 PM)Ace of Sp♠des Wrote:  Bookmarked. I can make money with this, thanks

No problem. I hope you make some money!
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS
First thing I though was Zynga Poker hacks then I realized this will not work for that :(
Bitcoin Address: 1KQCBvevk1sA4wSj7gugv3sf5yjUygAzcv
(Mar 12, 2011 03:48 PM)Ace of Sp♠des Wrote:  Bookmarked. I can make money with this, thanks

You probably won't make money with this, there's a hundred other tutorials similar to this one and trainers for hundreds of flash games.
(Mar 12, 2011 04:22 PM)Vysse Wrote:  First thing I though was Zynga Poker hacks then I realized this will not work for that :(

I tried to make a trainer for the Zynga Poker but to no avail. I could not do anything.

(Mar 12, 2011 04:24 PM)Cody8295 Wrote:  You probably won't make money with this, there's a hundred other tutorials similar to this one and trainers for hundreds of flash games.

Now im sad. I thought I had actually helped someone. I also thought I was the first to post a tutorial of this kind here.
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS
What is the page is just the .swf file? It doesn't let you view the page source if it's just the .swf file. I'll show an example.

Spoiler (Click to View)
(Mar 12, 2011 05:59 PM)Emily Wrote:  What is the page is just the .swf file? It doesn't let you view the page source if it's just the .swf file. I'll show an example.

Spoiler (Click to View)

I don't use Firefox, but I believe it's in Tools > Options.
I was hoping for a literal game trainer, Not flash. Misleading title :<
(Mar 12, 2011 05:59 PM)Emily Wrote:  What is the page is just the .swf file? It doesn't let you view the page source if it's just the .swf file. I'll show an example.

Spoiler (Click to View)

If the entire page is a swf then i'm not sure what you must do to get the swf.

(Mar 12, 2011 10:01 PM)ɪɴғɪɴɪᴛʏ Wrote:  I was hoping for a literal game trainer, Not flash. Misleading title :<

What do you mean "literal"? Most games that have trainers are flash. Also, At least be happy you learned something. This title is not misleading. It is just what it says, A tutorial on how to make a game trainer. So before you go around saying the title is misleading, Think about how it is not misleading in a general sense.
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS
Think in a sense that a literal game trainer = A .exe Game such as the Call of Duty series , Cs:s HL2 TF2 FPS's and such.
This is a FLASH Game Trainer. Rename the thread to FLASH Game trainer. >_> This IS misleading.
(Mar 12, 2011 11:29 PM)ɪɴғɪɴɪᴛʏ Wrote:  Think in a sense that a literal game trainer = A .exe Game such as the Call of Duty series , Cs:s HL2 TF2 FPS's and such.
This is a FLASH Game Trainer. Rename the thread to FLASH Game trainer. >_> This IS misleading.

I'm pretty sure that cheats for games like Counter Strike are called hacks or mods, Not trainers.
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS
I was making examples, Of course for MP it is hacks, But for single player they are referred to as Trainers.
(Mar 12, 2011 11:34 PM)ɪɴғɪɴɪᴛʏ Wrote:  I was making examples, Of course for MP it is hacks, But for single player they are referred to as Trainers.

Wouldn't it be considered a mod?
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Louis VuittonOct 9, 2021 02:23 PM 0 331 Oct 9, 2021 02:23 PM
Last Post: Louis Vuitton
[C#] by spαcєmαnJan 3, 2017 06:43 PM 8 427 Jan 3, 2017 06:43 PM
Last Post: SIM-1984933
[C#] by eithan1231Oct 3, 2016 01:41 AM 0 168 Oct 3, 2016 01:41 AM
Last Post: eithan1231