Example code for the book http://www.nostarch.com/gamehacking .
C++ C Lua Objective-C
Latest commit edc7d51 Jul 29, 2016 @nickcano nickcano committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
Chapter10_ResponsiveHacks Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter11_SearchAlgorithms Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter11_StateMachines Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter1_BasicMemory Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter1_MemoryPointers Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter2_BasicDebugging Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter3_CloseMutex Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter3_FindingFiles Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter4_CodeToMemory Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter5_AdvancedMemoryForensics_Scanning Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter6_AccessingMemory Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter7_CodeInjection Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter7_CodeInjection_DLL Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter8_AdobeAirHook Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter8_ControlFlow Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter8_Direct3DApplication Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
Chapter8_Direct3DHook Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
LuaScripts Added lua scripts and fixed a typo in state machine code Jun 7, 2016
bin Added binaries and pdb's in case of debug builds Jun 15, 2016
.gitignore Initial commit Apr 20, 2015
GameHackingExamples.sln Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
LICENSE Initial commit Apr 20, 2015
README.md Update README.md Jul 29, 2016
allegro_linkers.h Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
arial.ttf Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016
game.map Merged labs and exmaples binaries, normalized build output directories Jun 15, 2016

README.md

About

Code for the book Game Hacking: Developing Autonomous Bots for Online Games.

Each project in this repository corresponds to a chapter or section in the book. The projects are referenced in the relevant pages.

Purpose

The exact purpose of each binary will be explained in the book. Some binaries are meant to be scanned and debugged, others simply exist as proof-of-concepts for lessons, and a few actually illustrate how certain algorithms look with different inputs.

Compiling

All of the example code should compile out-of-the-box on Visual Studio 2010, and any newer version. The exception is the two practice binaries for Chapter 1, which rely on the Allegro 5.0.10 library to be installed with the bin, lib, and include directories properly set up in your Visual Studio paths for additional include directories and additional linker directories.

If you can't compile yourself, all of the binaries are in the /bin/ directory. Debug binaries are in the /bin/DEBUG_BUILDS/ directory with included debug databases.

Usage

You may need to grab this redistributable package from Microsoft to run the binaries if you don't have Visual Studio. If you get errors about loading fonts or map, move arial.ttf and game.map into the same directory as the binary and try again.