Thread: Making Game Trainers

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Question Making Game Trainers

    Hey,

    Im interested in how trainers for games are made.

    Say your in this situation, you have a game and you want to make a trainer that gives you X amount of ammo in your gun. The game probably has a varible like int ammo = 25 or somthing similar, my first question is how would you find the varible name, would you need another prog to find out all the varibles used by the game, then find the one with a value of 25, hence finding the name of the varible?.

    Then once you have the name, how would you code your program to find this varible in the ram and set it with a new value. Becasue every time the game launces i assume the ammo varible will go to a different location in the ram. So would you have to code your program to find the location of the varible then set up a pointer to it or somthing and set its value?

    If anyone has any code for finding and setting the value of a varible in another program then i would it

    Thanks for any help,
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    You need a disassembler/debugger and plenty of patience. Do a search for W32Dasm.

  3. #3
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    no disassembler/debugger is required. Trainers are In-memory patches that must be run during a game in which it temporarily changes values in the game. You will need a program like GamHack. GameHack is a program that lets you select a running application and search for data. It gives you memory address in which you can use in a later program. You then use some API functions in your trainer to change the value at a certain point in memory.
    Link: http://www.yates2k.co.uk/trainer1.html

    Unfortunately, I don't know how to freeze the value at the address just yet. So infinate ammo is something I don't know yet. If you find that out in your work, I would appreciate any info.

    -nean
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  4. #4
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Post ...

    I beleive he is asking how it works... tho im sure thats a great program... I think that the program you are giving a link to uses disassembling and searching routines... either that or the game jsut saves it all in a file.

    SPH

  5. #5
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hi,

    Thanks thats been helpful, i need softice though i cant find it anywhere. I need it for some dissambly and testing. Also i need an edition that will work on win xp.

    Thanks if anyone has this or knows where it is.

    Cheers
    TNT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  3. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-22-2006, 12:23 AM
  4. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  5. Lets Play Money Making Game
    By ggs in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-04-2001, 08:36 PM