Learn How to Make a Trainer for a Game

Select your platform and your letter

Learn How to Make a Trainer for a Game

Complete Guide to Creating Game Trainers

Learn how to create your own trainers, memory editors, and find cheat codes for video games. Tutorials for all skill levels, from beginner to advanced.

About These Tutorials

Do you know how to make a trainer, an editor, or find cheat codes? Can you use programs to create trainers, editors, and find memory zones to modify? Do you have programming and/or graphic design skills related to trainers?

If you want to share your talents and knowledge (like Magic King, GnaGna, Pharaonix, and many others) with the rest of us, don't hesitate to send us your creations! Thanks to all contributors who make this section possible.

Looking for tools?

Tools for creating trainers can be found in the Tools for Trainers section.

Share your creations!

If you've created a tutorial explaining how to make trainers, editors, or find values, feel free to send it to us!

Available Online Tutorials

GameHack & Trainer Maker Kit By Magic King - Finding memory values and creating trainers
Trainer Spy By Magic King - Analyzing existing trainers
Winsock Packet Editor (WPE) By Rodre - Intercepting and modifying network packets
TSearch - Delta Force Black Hawk Down By hErectus - Memory scanning for multiplayer games
C++ Trainer Programming By NiCk.Ø - Complete 3-part tutorial
Getting Started with Game Hacking By Xylitol - Complete Dead Space reverse engineering (2021)
Video Tutorials By XoR - Visual step-by-step guides

PDF & Word Tutorials

Here are downloadable text files (Word and PDF formats) to help you understand how to create trainers. These comprehensive guides cover everything from basic concepts to advanced techniques.

Cheat Always Prosper (English) By Mike Mee - 176 KB - Word format
Download
Cheat Always Prosper (English PDF) By Mike Mee - 238 KB - PDF format
Download
Cheat Always Prosper (French Translation) French translation of Mike Mee's guide - 269 KB
Download
Trainers for (not too) Dummies (French) By Gnagna2000 - 172 KB - PDF format
Download
Interactive Tutorial (English) By TEKZ - 697 KB - Executable format
Download
Trainer Tool - Practice Software By hErectus - Practice finding memory values
Download
Trainer Creation Guide (French) By Majene - 1 MB - Comprehensive PDF guide
Download
The Trainer Book v1.12b (French) By Pharaonix - 441 KB - HTML format - Updated 20/10/2004
Download

External Resources

CoSMOS by Cheat Happens Official tutorial on using CoSMOS trainer creation software
Visit

Data Types Reference

When searching for values in memory, you need to know the data type. Here's a reference table showing the value ranges for different byte sizes:

Data Type Value Range Common Uses
1 Byte 0 - 255 Small values, percentages, lives
2 Bytes 0 - 65,535 Medium values, ammo, health
4 Bytes 0 - 4,294,967,295 Large values, money, experience
8 Bytes 0 - 18,446,744,073,709,551,615 Very large values, 64-bit games
Float Decimal numbers Health bars, coordinates, speeds

GameHack & Trainer Maker Kit

Tutorial by Magic King

This tutorial will teach you how to find memory values using GameHack and then create a trainer using Trainer Maker Kit. We'll use the game Bricks '2000 as our practice example.

Required software

Download Bricks '2000 to follow this tutorial. GameHack is available in the Tools section.

Part 1: Finding Values with GameHack
  1. Launch both programs

    Start Bricks '2000 and GameHack side by side. In GameHack, select Bricks'2000 from the process list.

    GameHack and Bricks 2000
  2. Search for the initial value

    You start with 25 points. Click "Search", enter 25, select "4 bytes" as type, and click OK. GameHack will find multiple addresses with value 25.

    First search
  3. Change the value and search again

    Play the game to change your score (e.g., to 54 points). Use "Next Search" with the new value. The list will narrow down to the real address.

    Narrowing results
  4. Modify the value

    Double-click on the found address, then double-click on the value. A "Poke" window appears where you can enter any value (e.g., 100).

    Modifying value
Part 2: Creating Trainer with TMK
Download required

Download Trainer Maker Kit v1.51 from GameCopyWorld.

The following images show the step-by-step process for creating a trainer with TMK:

Trainer Spy

Tutorial by Magic King

What is Trainer Spy? Trainer Spy is a utility that allows you to see which values are modified by a trainer in a program. This is useful for understanding how existing trainers work.

Ethics Notice

It is frowned upon in the trainer community to copy values from other people's trainers to make your own. This tool is meant for learning and understanding how trainers work, not for stealing others' work.

  1. Launch all programs

    Start the game, the trainer you want to analyze, and Trainer Spy. In Trainer Spy, click the play button (small arrow) to start monitoring.

    Trainer Spy interface
  2. Use the trainer

    When you activate cheats with the trainer, you'll see the green bar increase and the "Nbr chain(s) write in memory" counter change.

    Monitoring changes
  3. View the captured values

    Press pause to see the captured values in hexadecimal (base 16). These are the values used by the trainer that you could use with Trainer Maker Kit.

    Captured values

Trainer Spy is available in the Tools section of the site.

Winsock Packet Editor (WPE)

Tutorial by Rodre

This tutorial explains how to use Winsock Packet Editor (WPE) to intercept and modify network packets in online games. We'll use Helbreath as an example. Note that not all modifications will work, as server-side validation may reject changes.

  1. Select the game process

    Launch WPE and click on "Select Game" menu. Choose the game process (helgame).

    WPE Select Game
  2. Configure options

    In Filter options, set maximum values. Check "Special mode", set packet trace to 256 or 128, and Winsock to version 2.

    WPE Options
  3. Start packet trace

    Go to a merchant in-game, start the "Trace" function in WPE, then sell an item (e.g., a dagger for 12 gold = 0C in hex).

    WPE Trace
  4. Analyze and find gold value

    Stop the trace and search for "Gold" in the captured packets. You'll find the gold value that can be modified using the Filter.

    WPE Analysis
  5. Create the filter

    In the Filter menu, copy the search string from the captured packet. At offset 28 (where 0C = 12 gold is), replace with FF (255 gold). Enable the filter to apply changes automatically.

Once you have your filter working, you can save it and use WPE's Trainer Maker feature to create a standalone trainer:

This is an example and does not work on Helbreath. Server-side validation prevents most modifications. Download WPE here.

TSearch - Delta Force Black Hawk Down

Tutorial by hErectus

This advanced tutorial teaches you how to use TSearch to find dynamic memory addresses in multiplayer games. Delta Force Black Hawk Down changes memory locations each time, making traditional trainers impossible - but we can still cheat!

Why dynamic addresses?

Some games randomize memory addresses to prevent cheating. We need to find values in real-time rather than using fixed addresses.

  1. Setup: Host a solo game

    Create a multiplayer game with: Server Type = "Serve and Play", Max Players = 1, Map = TDMM_01a. This way you're the server and can cheat!

  2. Open TSearch and attach to game

    Press ALT+TAB to switch to TSearch. Click "Open Process" and select the game. You start with 100% health (shown as "100" then a green bar then "Damage").

    TSearch Open Process
  3. First search: value 100

    Click "Init new search", set: Search = Exact Value, Value = 100, Type = 1 Byte (since 100 is between 0-255). Click OK.

    TSearch First Search
  4. Damage yourself and search again

    Throw a grenade near yourself (don't die!). Check your new health (e.g., 71%). Use "Search Next" with new value. Repeat until only 2 addresses remain.

    TSearch Narrowed Results
  5. Test and freeze the value

    Double-click addresses to add to Cheats List. Change value to 100 and check the freeze box (blue smiley). Change Type to 4 Bytes and set value to 5000 for god mode!

    TSearch Freeze Value

The process is similar for ammo. Close everything, restart, and search for the pistol's 7 bullets:

  1. Search for 7 (1 Byte), shoot once, search for 6, repeat until you find the address.

  2. Test by changing values: set one address to 7 and the other to 2 to identify which is correct.

    Testing ammo values
  3. Set to 10 and freeze - you can now see bullets floating outside the magazine!

Download TSearch from the Tools section or directly: TSearch 1.6

C++ Trainer Programming

Tutorial by NiCk.Ø

This comprehensive 3-part tutorial teaches you how to create a trainer from scratch using C++. We'll use Tom Clancy's H.A.W.X as our target game. You'll learn to find memory addresses with TSearch, understand how trainers work, and write the actual code.

Introduction

C++ is a programming language. Every program, including games, is coded in some language. Trainers work by modifying variables in the game's memory.

To illustrate: H.A.W.X at the profile selection screen contains roughly 360,594,088 variables! Finding the right one is like finding a needle in a haystack - that's why we use tools like TSearch.

Prerequisites

  • Basic C++ knowledge (includes, cout, functions, namespaces)
  • TSearch (available in Tools)
  • Visual C++ Express (free from Microsoft)
  • Tom Clancy's H.A.W.X game

The Process

  1. Find memory addresses using TSearch
  2. Understand how trainers work
  3. Write the C++ code

Finding Memory Addresses with TSearch

Finding addresses takes 90% of trainer creation time! Let's find the missile count in H.A.W.X:

  1. Start a mission

    Create a profile, start the first mission. You have 240 Jstrike missiles. Press ESC before switching to TSearch!

  2. First search

    In TSearch: Process > Open > HAWX.exe. Search for 240, Type = 4 Bytes. Found ~25,000 results!

    First search
  3. Narrow down

    Fire 2 missiles (238 left). Use second magnifier, search 238. Down to 2 values!

    Narrowed results
  4. Find the right address

    Click green arrow to copy to Cheats List. Freeze one (checkbox = blue smiley), fire missiles. If count drops, try the other.

  5. Use AutoHack

    Enable debugger (AutoHack > Enable debugger), open AutoHack window. Click skull icon on your address, fire a missile. Two lines appear - we want the "add" instruction, not "mov".

    AutoHack results
  6. Get the patch data

    Select the correct line, click Tmk > Button Script. You get:

    Patched script: Poke 7C8F77 90 90 90 UnPatched script: Poke 7C8F77 01 6E 28

    Save these values! They're essential for the code.

How the Trainer Works

  1. Wait for game to open
  2. Open memory access
  3. If access fails → stop with error
  4. Try to read memory
  5. If read works → try to write
  6. Loop: check if value changed, rewrite if needed, continue while game runs

The Code

Create a new Win32 Console Application in Visual C++, add a main.cpp file:

#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    LPCTSTR Titrefenetre = (L"Tom Clancy's H.A.W.X");
    HWND Handlefenetre = 0;
    BYTE patch[] = "\x90\x90\x90";
    int Adressememoire = 0x7C8F77;
    DWORD Pid = 0;
    int Valeurlue = 0;
    HANDLE Handleprocess = 0;

    SetConsoleTitleA("Tom Clancy's H.A.W.X V 1.02 trainer");
    cout << "Launching trainer..." << endl;
    cout << "Waiting for game..." << endl;

    // Wait for game window
    do {
        Sleep(500);
        Handlefenetre = FindWindow(0, Titrefenetre);
    } while (Handlefenetre == NULL);

    cout << "Window found!" << endl;
    
    // Get process ID
    GetWindowThreadProcessId(Handlefenetre, &Pid);
    
    // Open process with read/write access
    Handleprocess = OpenProcess(0x10+0x20+0x8, true, Pid);
    
    if (Handleprocess == NULL) {
        cout << "Error opening process: " << GetLastError() << endl;
        system("pause");
        return 0;
    }
    
    cout << "Process opened!" << endl;
    
    // Verify memory address (check for correct game version)
    if ((ReadProcessMemory(Handleprocess, 
         reinterpret_cast(Adressememoire),
         &Valeurlue, 3, 0) != 0) && (Valeurlue == 0x286e01))
    {
        cout << "Memory readable!" << endl;
    } else {
        cout << "Error: Wrong game version or trainer already running" << endl;
        system("pause");
        return 0;
    }
    
    // Write patch
    if (WriteProcessMemory(Handleprocess,
        reinterpret_cast(Adressememoire),
        &patch, sizeof(patch), 0) != 0)
    {
        cout << "Injection successful!" << endl;
    } else {
        cout << "Injection failed: " << GetLastError() << endl;
        system("pause");
        return 0;
    }
    
    // Monitor and maintain patch
    do {
        ReadProcessMemory(Handleprocess,
            reinterpret_cast(Adressememoire),
            &Valeurlue, 3, 0);
            
        if (Valeurlue != 0x909090) {
            cout << "Value changed, reinjecting..." << endl;
            if (WriteProcessMemory(Handleprocess,
                reinterpret_cast(Adressememoire),
                &patch, sizeof(patch), 0) != 0)
            {
                cout << "Reinjection successful!" << endl;
            } else {
                cout << "Reinjection failed" << endl;
                system("pause");
                return 0;
            }
        }
        Sleep(500);
    } while (FindWindow(0, Titrefenetre) == Handlefenetre);
    
    cout << "Game closed. Stopping trainer..." << endl;
    CloseHandle(Handleprocess);
    system("PAUSE");
    return 0;
}
Key Functions Used
  • FindWindow() - Find game window by title
  • GetWindowThreadProcessId() - Get process ID
  • OpenProcess() - Open process with access rights
  • ReadProcessMemory() - Read from game memory
  • WriteProcessMemory() - Write to game memory

Game Hacking with Dead Space

Tutorial by Xylitol - Updated May 2021

This modern tutorial covers complete game reverse engineering using Dead Space v1.0.0.222. You'll learn to use Cheat Engine, OllyDbg, create codecaves, and build a functional trainer in assembly.

Required Tools
  1. Launch Dead Space and Cheat Engine. In CE, select the Dead Space process.

    Open Process
  2. Search for your current ammo count (e.g., 10). After shooting, search for new value. Repeat until one address remains.

    Scan results
  3. Change the value to 1337 to verify it's the correct address.

    1337 ammo
  4. Right-click the address → "Find out what accesses this address". This attaches the debugger and shows which instructions read/write the value.

    Opcodes

    Key finding: 004F9101 - mov ecx,[eax+00000684] constantly reads the ammo value.

What's a codecave? In game hacking, we often need to add code rather than just replace it. A codecave redirects execution to empty memory space where we have room for our modifications, then returns.

  1. In OllyDbg, find empty space (search for zeros). I chose 011F631D.

  2. At 004F9101, replace the original instruction with a JMP to our codecave.

    JMP instruction
  3. In the codecave, write:

    MOV DWORD PTR DS:[EAX+684],539 ; Set ammo to 1337 MOV ECX,DWORD PTR DS:[EAX+684] ; Original instruction JMP 004F9107 ; Return

Result: Unlimited ammo!

Unlimited ammo

Health is typically stored as a float. We don't know the exact value, but assume full health = 100.

  1. Search for 100 as Float. Take damage, search "Decreased value". Heal, search "Increased value". Repeat until you find the address.

  2. Found: 00526FE9 - comiss xmm0,[eax+00000120] constantly reads health.

  3. Codecave at 011F6332:

    MOV DWORD PTR DS:[EAX+120],44A72000 ; 1337.0 in float hex COMISS XMM0,DWORD PTR DS:[EAX+120] ; Original JMP 00526FF0 ; Return
Unlimited health
  • No collision with enemies - Disable hit detection code
  • No recoil - Disable recoil code after shooting
  • Unlimited oxygen - Disable atmosphere timer
  • One hit kill - Set enemy health to 0 or increase damage
  • Freeze enemies - Disable movement or alert code
  • Fly hack - Modify player Y coordinate
  • Wallhack - Find collision boolean (walk into wall, search, walk out, repeat)

Video Tutorials

Video tutorials by XoR

These French video tutorials provide visual step-by-step guidance for creating trainers. Perfect if you prefer learning by watching!

Part 1: Prologue

Part 1: Prologue

Introduction to trainer creation concepts

Part 2: Finding Values

Part 2: Finding Values

How to search for numeric values in memory

Part 3: Creating the Trainer

Part 3: Creating the Trainer

Building the actual trainer executable

Note: Additional planned tutorials by XoR were never produced. For more video tutorials, visit Trainers City Videos.