Documentation

Legal notice and contents

FM4 Recomp is an unofficial fan project. It is not affiliated with, endorsed by or sponsored by Microsoft, Xbox Game Studios or Turn 10 Studios. "Forza", "Forza Motorsport" and "Xbox 360" are trademarks of Microsoft Corporation; all other trademarks belong to their respective owners.

To use FM4 Recomp you need your own legally obtained Xbox 360 copy of Forza Motorsport 4 (USA, title ID 4D530910). Please do not request or share game files or disc images.

What this repository contains

Source code, build scripts, tests and documentation, under the GPL-3.0-or-later (COPYING, NOTICE, THIRD_PARTY_NOTICES.md).

It contains no game assets (textures, models, audio, movies or disc files), no disc images, no game executables (original or decrypted) and no recompiled game code. The recompiled C++ (ppc/) and the native build are produced from the disc and are git-ignored: the recompiled C++ is never committed to this repository or published. Never commit either, and never share the recompiled C++ or a build you made yourself; the released app is the only place the native build is distributed.

To recompile the supported disc, the repository includes data from analysing that disc's executable:

  • Guest addresses: function bounds and entry points, the 394 switch tables of config/switch_tables.toml, and the opt-in hooks of config/title_hooks.toml. Each hook carries the SHA-256 of the function bytes it replaces, so it never applies to another build.
  • Hashes: SHA-256 of the disc's executable, of the Disc 2 packages and of a Disc 2 file map, so setup can confirm your discs are the supported version.
  • Observations: register values, shader hashes and short descriptions of a few game functions, observed on the developers' own copies and quoted in comments, tests and reference/.

What the macOS DMG contains

The 0.3.0 DMG contains the macOS launcher and disc setup tools, the FM4 Static Recomp host and ShiftGlue runtime, Vulkan/Metal graphics libraries, replaceable audio and compression decoders and their licences. The engine program contains code translated by machine from the game executable. It requires the game data supplied from your own supported disc. The DMG includes no disc image, original executable, game artwork, tracks, movies or audio.

Use the matching 0.3.0 source archive for the pinned host and SDK revisions, project changes, third-party sources and rebuild instructions. The translated sources must be generated from your own disc. The archive and DMG each have a SHA-256 file on the release page. Detailed component terms and decoder replacement instructions accompany the app under Contents/Resources/kit/licenses/. See Third-party notices.

Warranty

FM4 Recomp is provided "as is", without warranty of any kind, under the GNU General Public License version 3 or later.