Navigation
Browse the developer docs

FH2 Modding Guide

Start here

By Trinculo54: everything the community has learned about modding Forza Horizon 2 on Azimuth, from your first mod to hooks, file formats and crash debugging. Written for programmers who know some C or C++.

Where to start

New to FH2 modding? Read chapter 1, then the one for your route, then hooking (5) and the game loop (16). Keep the hook references, file formats, structures and cars chapters for when you need them, and go to troubleshooting (13) when something breaks.

Platform mod
A DLL in fh2-mods. Read chapter 2 next to the platform docs.
Extra Options plugin
A DLL inside an Extra Options mod package. Read chapter 3.
Data-only mod
Cars, text, database rows and replaced files, no code. Read chapters 4 and 14.
The game build
Every address is for forza_durango_release_final.exe of 24 Nov 2015, written as game+0x….

The ground rules: never edit saves, change the database with UPDATE and INSERT only, hook only after Extra Options has finished patching, byte-check every site, and make every feature switchable.

Chapters

  1. 01Getting startedAlways first: the one game build, Azimuth, folders, the three ways to make a mod, tools and a safe test routine.
  2. 02The FH2 Mod PlatformYou are writing a platform mod: a DLL in fh2-mods with settings on the in-game MODS page.
  3. 03Extra OptionsYou are writing an Extra Options plugin or package, or your mod has to live alongside it.
  4. 04Game files and dataYou want to change cars, events, text, UI pages, audio or the game database.
  5. 05Hooking the game safelyBefore your first hook: byte checks, chaining and turning a feature off instead of crashing.
  6. 06Hook reference: the worldTracks, streaming, switching worlds, collision and breakable objects.
  7. 07Hook reference: races, AI and carsDrivatars, events, the player's car, physics and pedestrians.
  8. 08Hook reference: camera, UI and inputCameras, the HUD, pages and menus, and the controller.
  9. 09Hook reference: audio, weather and liveriesThe radio, sounds, weather and time of day, liveries and game events.
  10. 10File formatsYou are reading or writing the game's own files.
  11. 11Game structuresYou need an object's layout: game manager, cars, cameras, input or the STL.
  12. 12Online play and FH2MPYour mod might run online, or you work on multiplayer.
  13. 13Troubleshooting, fixes and lessonsSomething broke, or you are about to release.
  14. 14Cars in depthYou are adding or converting a car: files, materials, lights, animation, driver and sound.
  15. 15Debugging and finding your own hooksYou need a hook the guide doesn't list, or one misbehaves. Also how to load the game symbols.
  16. 16The game loop, threads and timingWhat runs where and when, before you call game code from a hook.
  17. +Game symbols (PDB)Names for the game's functions in debuggers, crash dumps and disassemblers.

Copied from the original repository on 4 Dec 2026; each chapter links to its original, which may be newer. Each fact is marked as proven in game, offline only or unconfirmed.

Game symbols

The guide also builds a PDB for the game exe, with hundreds of thousands of names, so debuggers, crash dumps and disassemblers show CollisionWorld::GetPolys+0x70 instead of a bare address. Azimuth maps the game by hand, so give the game a module entry first; the symbols page and chapter 15 show how.

Download the latest symbols

Conventions and glossary

The one game build

Every address in this guide is for forza_durango_release_final.exe of 24 Nov 2015 (PE TimeDateStamp 0x565501ED, SizeOfImage 0x3A18000), preferred image base 0x140000000. Addresses are written as an RVA, game+0x12CC730, and the first time in each table as the absolute address too, 0x1412CC730. Byte-check every site before you use it: see chapter 5.

How sure is each fact?

Entries are marked:

MarkMeaning
proven in gamea released or tested mod uses it, and it was seen working
offline onlyworked out from the exe, files or a test harness, not yet seen in game
unconfirmedthe best reading so far; check it before you rely on it

Where sources disagreed, the chapters say so and give the value proven in game.

Glossary

TermMeaning
Azimuththe loader that maps the Xbox One exe into azimuth.exe and translates its Xbox calls
game:\the game's view of the Mount folder
T:\the game's temporary drive, data\titles\1A96545B\tmp in the Azimuth folder
mediaMount\media, the game's data; mediaoverride and mediapc override it
Anthemthe mainland map (track id 542)
Test03Storm Island (track id 549), shipped as a DLC package
RVAan address relative to the image base: game+0x...
EOExtra Options (winmm.dll), by Arthur (RokkuDayo)
the platformthe FH2 Mod Platform (DWrite.dll / d3dcompiler_47.dll)
detour / originalyour hook function, and the pointer that leads on to the next hook or the game
byte checkcomparing a site's bytes with what you expect before touching it
drivataran AI driver modelled on a player
FH2MPthe community multiplayer project for FH2 on PC

Projects referred to

Reading their source next to this guide is the quickest way to see each technique in working code.

Ground rules for every mod

  • Never edit saves, and never tell players to delete mediaoverride\Stripped\gamedbRC.slt.
  • Change the database with UPDATE and INSERT statements only, so other mods' changes survive.
  • Hook only after Extra Options has finished patching; byte-check everything; turn a feature off rather than crash.
  • Make every feature switchable, and log what you change in plain sentences.
  • Mark mods that would be cheats online as offline-only.

Licence

Copyright (c) 2026 Trinculo54.

  • The text (the chapters and the READMEs) is under Creative Commons Attribution 4.0. Copy it, translate it and build on it, as long as you credit "The FH2 Modding Guide" by Trinculo54 and link back to this repository.
  • The code is under the MIT licence: the code samples in the chapters, and everything in symbols (the scripts and the name lists). You can paste the samples into a mod under any licence.

These licences cover only what was written for this guide. They don't cover Forza Horizon 2, which is Microsoft's, or the names in the PDB that come from the game's own exe (its RTTI, exports and strings). The projects referred to above keep their own licences.

For AI agents

Using Claude Code, Codex or another coding agent? Give it the FH2 modding skill: the game build, the three routes, the rules every mod follows, and where to look things up instead of guessing.

For Claude Code, save it as .claude/skills/fh2-azimuth-modding/SKILL.md in your mod's repository. Other agents can read it as plain instructions.

“The FH2 Modding Guide” by Trinculo54 is licensed under CC BY 4.0 (the text) and the MIT licence (the code samples and symbols). FH2Mods shows an unchanged copy of commit bb10508; the original on GitHub is the authoritative version. See also the FH2 Mod Platform documentation and Extra Options.