Docs

These docs follow the dev branch and can describe changes newer than v0.9.4. The release notes list what the download contains.

Game objects#

Nearly everything a mod reads in the running game is reached from one global, the game holder at 0x832DF024 (v4 0x833CAAE4). From it a few pointer loads lead to the world, the user and the component list; from those, to the game mode, the clock, the free-roam activities and the career profile. The offsets below are stable enough that the mod API names them, so a mod asks find_offset("time_of_day.seconds") rather than hard-coding 10488.

0x832DF024global, v4 0x833CAAE4game holder+4 handle+108 userhandle+4 world+76 component listworld+124 session+232 time of daysession+56 game mode:17 free roam, 3 eventtime of day+10488 seconds (f32)+10505 script holdcomponent listarray by type index;index at 0x832FEE8Cactivity manager+4 begin, +8 endvector of activitiesactivity+8 revealed (u8)+16 name (std::string)discount sign+56 marker+96 collected marker+136 object (+112 pos)+140 smashed+148 saved recordbarn find+112 position+320 marker+360 collected marker+424 saved recordrecord +56 statusprofile.from_user()sub_824F04B0, r3 usercareer profile+32 value tree(Main/Credits, ...)+40 loaded (v4 +44)profile.credits() reads itsaved records: +40 revealed, +44 found; std::string is inline under 16 bytes
The paths from the game holder to the objects mods use. Offsets are in bytes; every arrow is a 32-bit pointer load. Only the profile's loaded flag moves in v4.

This mod logs the game mode, the clock and how many free-roam activities are revealed every 300 frames. It only reads, so it can run from the frame tick without a guest task:

#include "pinyon_mod.h"
#include <stdio.h>
#include <string.h>

/* Base-game globals; v4 moves them to 0x833CAAE4 and 0x833EDA1C. */
#define GAME_HOLDER 0x832DF024u
#define ACTIVITY_MANAGER_INDEX 0x832FEE8Cu

static const PinyonModApi* api;
static unsigned frames;

static uint32_t load_u32(uint32_t address) {  /* guest memory is big-endian */
  uint8_t b[4] = {0};
  if (!address || api->read_guest(address, b, 4)) return 0;
  return (uint32_t)b[0] << 24 | (uint32_t)b[1] << 16 | (uint32_t)b[2] << 8 | b[3];
}

static uint8_t load_u8(uint32_t address) {
  uint8_t value = 0;
  if (address) api->read_guest(address, &value, 1);
  return value;
}

static float load_f32(uint32_t address) {
  uint32_t bits = load_u32(address);
  float value;
  memcpy(&value, &bits, sizeof value);
  return value;
}

static uint32_t field(const char* name) { return (uint32_t)api->find_offset(name); }

static void report(void) {
  uint32_t handle = load_u32(load_u32(GAME_HOLDER) + 4);
  uint32_t world = load_u32(handle + 4);
  if (!handle || !world) return;

  /* Game mode and time of day hang off the world. */
  uint32_t mode = load_u32(load_u32(world + field("world.session")) + field("session.game_mode"));
  uint32_t clock = load_u32(world + field("world.time_of_day"));
  float seconds = load_f32(clock + field("time_of_day.seconds"));

  /* The activity manager is one entry of the component array. */
  uint32_t array = load_u32(load_u32(handle + field("game.components")));
  uint32_t index = load_u32(ACTIVITY_MANAGER_INDEX);
  uint32_t manager = array && index < 4096 ? load_u32(array + 4 * index) : 0;
  uint32_t begin = load_u32(manager + field("activity_manager.begin"));
  uint32_t end = load_u32(manager + field("activity_manager.end"));
  unsigned total = 0, revealed = 0;
  for (uint32_t slot = begin; manager && slot < end && total < 4096; slot += 4, ++total) {
    revealed += load_u8(load_u32(slot) + field("activity.revealed")) != 0;
  }

  char text[128];
  snprintf(text, sizeof text, "mode %u, %02d:%02d, %u of %u activities revealed", mode,
           (int)(seconds / 3600) % 24, (int)(seconds / 60) % 60, revealed, total);
  api->log(PINYON_LOG_INFO, text);
}

static void on_frame(void* user, const PinyonHookEvent* event) {
  (void)user;
  (void)event;
  if (++frames % 300 == 0) report();  /* FRAME_TICK runs on the main thread */
}

PINYON_MOD_EXPORT uint32_t rex_mod_abi_version(void) { return PINYON_MOD_ABI_VERSION; }
PINYON_MOD_EXPORT int rex_mod_create(const PinyonModApi* host, PinyonMod* mod) {
  api = host;
  api->subscribe(PINYON_HOOK_FRAME_TICK, on_frame, NULL);
  mod->self = NULL;
  return 0;
}

The two globals are written as base-game addresses because the symbol table names only functions, hook sites and offsets; the comment gives their v4 addresses. Calling guest functions instead (world.game_mode, profile.credits, activities.reveal_all) needs a guest task; Methods and tools shows one. The full list of named functions and offsets is on Address index.

Game and world#

AddressFindingConfidence
0x832DF024
sub_8247FC10
sub_824AFB20
sub_825F6FB0v40x833CAAE4
sub_824AF1E8
sub_82E55D58
sub_8269B4F8
game holder, world, user and components The global at 0x832DF024 points at the game object, the root of most run-time state. From it: [[[0x832DF024] + 4] + 4] is the world (as sub_8247FC10 and the reference copy in sub_824AFB20 reach it), [[0x832DF024] + 108] is the user, and [[[0x832DF024] + 4] + 76] is the component list, an array indexed by a component type's index (sub_825F6FB0). The world in turn holds the time-of-day object (+232), the session with the game mode (+124) and the car vector (+128/+132).

Established by Followed from the title's own setters (time of day, credits, activity reveal); every trainer feature and mod symbol reads through this chain.
Detail config/mod/fh1-symbols.toml game.components, game.user; src/pinyon_shift_runtime_hooks.cpp PinyonShiftHoldTimeOfDay, PinyonShiftApplyCredits; src/dlc_treasure_map.cpp

Confirmed
0x832DF00Cv40x833CAACCapplication object Global pointer to the application object. Its word at +896 is the selected event ID and +948 the event hub ID; the UI flow's movie string lives at [0x832DF00C] + 32 + 3176. Selecting an event through +896 works without the event loader's name.

Established by Read while tracing event entry and the wristband ceremony; writing +896 and +948 opened the event hub on a chosen event.
Detail src/pinyon_shift_runtime_hooks.cpp RallySeriesLoader, RallyNativeHubEnter; docs/NATIVE_PORT_BACKLOG.md NP-2.9

Confirmed

Session and game mode#

AddressFindingConfidence
sub_824878D0v4sub_824B75E8game mode sub_824878D0(world) returns the game mode, the word at +56 of the session object at world + 124. It is 17 in free roam (also inside Dak's Garage) and turns 3 as an event is entered (between the event's first and third menu steps); it stays 3 through the race, pause, results and quit, and is 17 again once a retire returns to free roam. The wristband action also accepts 18, whose meaning is not known; v4 adds 20 for its Rally stages. There is no null check: the session pointer at +124 is null while free roam loads or unloads. Colorado is track 317, and v4's Rally ColoradoDirt world track 1148.

Established by Logged on every change over the fh1-race-retire route; found through the wristband action's mode check; world fields read during route runs; crash analysis of a host query during loading. The offsets are unchanged in v4.
Detail docs/NATIVE_PORT_BACKLOG.md NP-8.4; config/mod/fh1-symbols.toml world.game_mode; docs/DLC_BACKLOG.md Fourth stages and save migration; docs/ANDROID_PORT_BACKLOG.md The 0x38 stop was a host query

Confirmed
0x828BC9D8
0x832DF024v40x8296E780
free-roam collectibles live sub_828BC9D8 returns non-zero while free-roam collectibles are live: in free roam, and not during the first-time career. It ignores its argument (r3). It reaches the world as [[[0x832DF024] + 4] + 4] and reads the game mode through sub_824878D0 without a check, so a call while free roam loads or unloads reads guest 0x38 and stops the game. The discount signs' reveal checks it.

Established by Reading the generated code; used to gate collectible changes and as the readiness gate for host-run unlocks; crash analysis on Android (a host query landing during loading).
Detail config/mod/fh1-symbols.toml activities.live; src/dlc_treasure_map.cpp; src/cheats_map.cpp; docs/ANDROID_PORT_BACKLOG.md The 0x38 stop was a host query

Confirmed

Audio child dispatch#

A counted child list can contain empty slots during construction and teardown. The base audio dispatch now skips those slots as v4 already does, preserving the previous result and the normal unlock. This addresses the null read seen in the traffic/event reports; the vehicle disappearance and the transition that exposes the empty slot still need route qualification. The investigation records the Windows/Linux evidence and the separate stock/XE acceptance requirements.

AddressFindingConfidence
sub_82FFD980
0x82FFD9E0
0x82FFD9C4
0x8227E680
sub_82FFD460
sub_82FFCB20v4sub_830BEAF8
0x830BEB68
0x830BEB78
0x822918A0
sub_830BE5D8
sub_830BDC68
counted empty audio children The audio container has a count at +124 and child pointers from +128. Construction sets count one with an empty slot; teardown clears slots without reducing the count. Its +48 virtual method locks, dispatches to each child's +48 method, unlocks and returns the last result (zero if none). Base dereferences empty slots; v4 already skips them and preserves the previous result. #703 and #715 both show the base loop's first slot empty, not a proven freed traffic vehicle. The logged LR 0x82FFD9C4 is the preceding lock's return; the failing read is at 0x82FFD9E0. The base hook supplies v4's empty-slot behavior without changing ownership or accepting invalid nonzero pointers.

Established by Compared both loaded images, the corresponding vtable slot and neighbouring methods, constructor and teardown writes, and the Windows/Linux fault registers. The v4 null branch prevents a whole-function normalized match.
Detail docs/research/TRAFFIC_EVENT_NULL_DISPATCH.md; src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardEmptyAudioChild; issues #703 and #715

ConfirmedThe short base routes did not emit an empty-child event; the zero-slot comparison uses the actual generated methods with controlled memory. Native v4's initial sign-up timeouts were fixture-position failures, not guest faults. Holding the handbrake keeps the car at the event marker; holding the service brake selects reverse.

Time of day#

AddressFindingConfidence
sub_82486CF0
sub_825CB718
0x8200E704v40x824B6990
0x8265A428
time-of-day object The world's +232 is the time-of-day object (sub_82486CF0 returns it). Its float at +10488 is seconds since midnight, advanced each frame by sub_825CB718, which also lights the scene from it. A set byte at +10505 means a script holds the time, and the title's setters (sub_82943D00, sub_8290D2A8) then leave it alone. In free roam the clock ran at 28 game seconds per real second (a 51-minute day); the seed's daytime free roam sits around 40,000-50,000 s, and holding +10488 at 79,200 (22:00) every frame renders free roam at night.

Established by FirstTimeCareer.xml gives time as hr * 60 * 60; a route scan for values in the seconds range rising steadily (five copies at 46,729 s; poking them to 79,200 turned free roam to night), then xrefs from the 86,400.0 constant at 0x8200E704 back to its users. Earlier scans for a rising day fraction or hour count found nothing.
Detail docs/NATIVE_PORT_BACKLOG.md NP-8.4; config/mod/fh1-symbols.toml time_of_day.*; src/pinyon_shift_runtime_hooks.cpp PinyonShiftHoldTimeOfDay; docs/NATIVE_PORT_BACKLOG.md NP-8.5; docs/native-renderer/FH1_RENDER_TEST_AUTOMATION.md

ConfirmedThe object is on the heap, so its address differs between runs.
sub_825C7DD0v40x82656D40time-of-day request sub_825C7DD0 requests a time-of-day transition: r3 is the time-of-day object, f1 the target seconds (add 86,400 to pass midnight) and f2 the rate in game seconds per real second.

Established by Traced from the title's own time setters; argument use read from the generated code.
Detail config/mod/fh1-symbols.toml time_of_day.request; docs/REVERSE_ENGINEERING.md Developer options and leftover systems

Confirmed

Vehicles, camera and crowd#

AddressFindingConfidence
sub_8248BAE8
sub_8249E570
sub_828FEAF8v4sub_824BB8F8
sub_8250B050
player car and AI control sub_8248BAE8(world) returns the player's car slot (a pointer to the car) from the world's car vector at +128/+132 (one entry in a solo world). sub_8249E570(car, mode) sets the car's control mode, 0 for the player and 1 for AI, as CDisableAIPlayerCarControls (sub_828FEAF8) uses it: it hands the car to AI driving with normal physics and route tracking, and returns it to the player. Car fields: +0x3B70 and the control mode word +0x3B78 (read by the setter), race serial +14564, an ended flag +14603, driver type +11728 (0 for the player, 1 for a festival race's AI cars, 4 for the cars around the player in free roam) and a control object +15216. In the base game's render-test drive the word at +0x3B78 reads 1 while the player drives, so it does not tell the player's car from an AI one there; the driver type does, at the same offset in v4 (read at run time in both builds). Car fields after about 0x3B00 move by 16 bytes in v4 (+0x3B80/+0x3B88). The car vector holds every car in the world, not only the race field: in free roam it grew to 24 cars as the player drove, in a festival race it holds the player and the seven AI cars, and its order changes as cars join (the player's car was added after the AI's). The AI does not finish every route: on Rally route 10 it stops against a barrier at 41 %, and in v4's scripted first-run Rally stage it fights the intro's own control (stopped at 19 %) or, engaged later, ends in the trees at 22 % as with no input.

Established by Calling the setter handed the player car to the title's AI for whole stages; fields read in race traces; the car vector and driver types read every 6 frames by pinyon_shift_physics_trace in fh1-race-sustained (2026-11-12); v4 render-test runs with and without it, with the v4 mapping verified (identical code apart from the moved field).
Detail src/pinyon_shift_runtime_hooks.cpp QueueTitleUpdateRaceTask, QueueRallyRaceTrace, QueuePhysicsTrace; docs/TITLE_UPDATE_V4_BACKLOG.md TU-4; docs/TITLE_UPDATE_V4_BACKLOG.md TU-6; docs/DLC_BACKLOG.md Diagnostic AI control handoff and final-stage return

ConfirmedWhy the AI stalls on those routes is unknown.
0x82BC5A3C
sub_82BC5870v40x82C84424
vehicle presentation transform At 0x82BC5A3C, the instruction after sub_82BC5870 returns, a vehicle slot's pose is final and stored: the owner (r31) has the active slot index at owner+1500, slot stride 1056, float4 position at slot+15120 and forward vector at slot+15184. The site is shared by the player's car, traffic and other vehicles. It is the presentation transform, rewritten from the physics body every frame, so writing it can neither freeze nor teleport a car. During a world-cell rebase the title exposes the new local pose two or three frames before the camera and world basis follow (a 31-33 unit mismatch).

Established by Runtime write-watch, then a midasm hook at the store identifying generation, source, owner and slot; telemetry and discontinuity logs; freeze and teleport attempts failed.
Detail docs/NATIVE_PORT_BACKLOG.md NP-8.1; docs/native-renderer/RESEARCH.md Vehicles and shadow epochs; config/mod/fh1-symbols.toml vehicle.pose_written; config/rexglue/analysis/main-xex.toml midasm_hook 0x82BC5A3C

Confirmed
sub_82486C40
sub_82486C70
sub_82858638
sub_82486B40
sub_825A86F8; 0x8324BB08v4sub_824B68E0
sub_824B6910
sub_82908AC0
sub_824B6758
sub_826207B0
camera controllers and free camera The world has several camera controllers: sub_82486C40(world) counts them and sub_82486C70(world, i) returns one. sub_82858638(controller, mode) sets a controller's mode; mode 6 is the free camera. sub_82486B40(world, i) returns a player camera and sub_825A86F8 resets it to the player. The script actions CChangeToFreeCamera (sub_828F2DB0) and CResetCameraToPlayer (sub_82937158) are built from these calls. The 24-entry mode table at base 0x8324BB08 names 0 FollowCam, 1 FollowCam2, 2 DriverCam, 3 Hood, 4 BumperHigh, 10 WheelCam and 15 CarRelativeCams. The controller stores its mode at +8, its active camera at +20, and the mode-n camera pointer at +24+4n. Set-mode initializes that camera with the active camera's car (+16). Table names alone do not qualify a replay mode for driving; Windows disc/v4 pinned-seed routes also confirmed driving in modes 10 and 15 and restoring the player view.

Established by Script functors are registered by name (sub_828F7180 for CChangeToFreeCamera); following their vtables gave the calls, and calling them from a host task switches the camera. Mode-table analysis and disc/v4 fh1-camera-editor pinned-seed captures establish the additional driving modes.
Detail docs/NATIVE_PORT_BACKLOG.md NP-8.4; config/mod/fh1-symbols.toml camera.*; docs/MODDING.md Camera editor (#487)

Confirmed
sub_82E08A00
0x82E08A30
0x82E09140
0x82E09144
0x82E09458
0x82E0945Cv40x82ECAB68
0x82ECB27C
0x82ECB594
trackside procedural crowd The start-line spectators are about 280 12-byte instance records (u32 0, an f16 near 1, a u16 animation frame, a clip index). sub_82E08A00 on the render thread (proceduralGeometry; r29 is the procedural models object after the prologue) advances each visible instance by a step loaded from +0x3EAE4 of the render context, which the title keeps at one per frame, so the crowd animates at the render rate rather than at 30 Hz. At the end of a clip, after 190-370 frames, it picks a new random clip (0x82E09140, step added at 0x82E09144) or loops (0x82E09458, step added at 0x82E0945C in r10).

Established by Memory snapshots at frame limits 120 and 30; a page-access probe naming the reader; midasm hooks at 0x82E08A30 and the two add sites giving each call real-time 30 Hz steps (16 frames per 60 at 120 fps); a play-test report of a fast race crowd at high frame rates.
Detail docs/DESKTOP_RENDERER_BACKLOG.md DR-1.5 crowd disposition; src/pinyon_shift_runtime_hooks.cpp PinyonShiftCrowdStepBegin; docs/NATIVE_PORT_BACKLOG.md NP-3.7

Confirmed
sub_82DE2130CCrowdPresentation is not the race crowd CCrowdPresentation::Update (sub_82DE2130) advances by the simulation delta in 25 ms frames, but it is never called in the car purchase, race start or race routes, and CAnimatedModelPresentation's fixed step never fired in a race either. The start-line spectators are the procedural crowd.

Established by Probe hooks at function entry on three routes.
Detail docs/DESKTOP_RENDERER_BACKLOG.md DR-1.5 crowd disposition, DR-1.5 high-frame-rate steppers

Confirmed Negative

Car dynamics#

The player's car keeps its physics behind an ICarDynamics interface. The game's own dashboard and rumble read the engine, gear, speed, ABS and per-wheel slip from it, and so do the DualSense trigger effects (see Playing). A reader goes from the world to the player's car slot, then to the car, then to the interface:

world    = [[[0x832DF024] + 4] + 4]
car      = [sub_8248BAE8(world)]          player car slot -> car
dynamics = [car + 11664]                  ICarDynamics
wheel w  = dynamics + 3936 + 1024 * w     0, 1 front; 2, 3 rear
AddressFindingConfidence
sub_8249E4B8
0x8223759Cv4sub_8250AF98
car dynamics interface [car + 11664] (0x2D90) is the car's ICarDynamics, the interface to its physics (vtable 0x8223759C, 339 slots). It is a subobject of CCarDynamics at +0xAD0, so a CCarDynamics offset is the interface offset plus 0xAD0. The car's own code reaches it through sub_8249E4B8 (returns car + 11664) about 220 times. The engine, gear, speed, ABS and wheel fields in this group are offsets from it; the CCarDynamics layout is the same in v4.

Established by Getter and vtable calls in the car code; every getter below matched in v4 with the same offsets; read each frame at run time for DualSense trigger effects, in the base and v4 builds with the same values.
Detail docs/DUALSENSE_BACKLOG.md DS-3; src/pinyon_shift_runtime_hooks.cpp QueueCarTelemetry

Confirmed
sub_82D1D078engine speed, redline and limiter Engine speeds are floats in rad/s; the getters multiply by 9.5493 (60/2π) for RPM. +324 is the engine speed, +452 the redline (the dashboard shift light comes on at 0.9 × it), +456 the limiter the engine speed is clamped to, +1228 idle and +2244 the transmission. The guest's rumble uses (RPM − idle) / (limiter − idle) as its engine channel. In the render-test car: 700 to 800 RPM at idle, a 7300 RPM redline and about 7900 RPM on the limiter.

Established by The tachometer and telemetry getters; read at run time on a launch, through the gears and in reverse.
Detail docs/DUALSENSE_BACKLOG.md DS-3

Confirmed
sub_82D1D868v4sub_82DDF7C8gear and shift state +2240 is the gear as a byte: 0 reverse, 1 to 8 forward, 9 neutral (the dashboard prints the reverse and neutral strings for 0 and 9). +3932 reads 4 while a shift is in progress, which drives the rumble's shift pulse.

Established by Dashboard getter and its strings; at run time the byte went 1, 2, 3 through the gears and 0 in reverse. The shift-state value is from the rumble builder only.
Detail docs/DUALSENSE_BACKLOG.md DS-3

ConfirmedThe shift-state value 4 is probable: not checked at run time.
sub_82D1CE38v4sub_82DDED78vehicle speed +3128 is the car's speed as a float in m/s: the speedometer converts it through the unit table, and the rumble scales it by 1/22.352 (22.352 m/s is 50 mph). At run time it read 22 m/s at 6200 RPM in second gear.

Established by Speedometer and rumble getters; run-time reads on a launch.
Detail docs/DUALSENSE_BACKLOG.md DS-3

Probable
sub_82D1D880
sub_82D365B0v4sub_82DDF7E0
ABS, traction and stability flags The cockpit ABS light is [+3020] != 0 && [+3436] != 0. +3020 is the ABS-active flag: the brake model sub_82D365B0 clears it on every physics step and sets it on the steps where it releases a wheel whose slip ratio is past its threshold, so it flickers during an ABS stop rather than staying on. +3436 is the ABS assist setting. The TCS light is [+3004] > 0.1 (a float intervention amount) and the STM light [+3016] != 0.

Established by The cockpit-light update in CDigitalGauge; at run time +3436 read 1 with the seed save's assists, and +3020 set on scattered steps of each hard stop (seen as the DualSense ABS effect switching on and off).
Detail docs/DUALSENSE_BACKLOG.md DS-3

ConfirmedTCS and STM are from the light update only, not checked at run time.
sub_82D2F348
sub_82D36DF8v4sub_82DDFD20
wheel blocks and slip ratio Four 1024-byte wheel blocks start at +3936: wheels 0 and 1 are the front axle, 2 and 3 the rear (left and right order is a guess). In a block, +496 is the smoothed slip ratio divided by the tyre's peak slip ratio, so 1 is peak grip and beyond it the wheel spins or locks; +492 is the raw value the tyre model sub_82D2F348 writes each step. The sign follows the car's forward axis: positive when the wheel turns faster than the ground (wheelspin going forward), negative when slower (locking going forward, and also wheelspin in reverse). +12 is the wheel speed in rad/s, +337 the surface index (a byte into the physics surface table), +796 nonzero while the wheel touches the ground.

Established by The tyre model and the ABS model that releases a wheel past the threshold; at run time on a rear-drive launch the rear wheels read +4 to +12 spinning in first, about +0.4 accelerating cleanly in second, −2.75 at the front locking under braking, and −6 to −14 spinning in reverse.
Detail docs/DUALSENSE_BACKLOG.md DS-3

ConfirmedThe surface index was not enumerated at run time.
sub_82D2EC70v4sub_82DF0DA0suspension position and spring Each wheel's suspension model reads its block's +0 as the suspension position and +860 as the spring's rest point: the spring force is (+0 − +860) × the rate at +828, added to a preload at +716, so the suspension compresses as +0 rises past +860. The damper multiplies the suspension velocity (from a virtual call) by the bump (+832) or rebound (+840) rate by its sign and clamps it between +836 and −+844; the total goes to +676 (Ty Crowther's normal-load field, with the anti-roll bar at +700). sub_82D1D7B0 copies +864 into +0, which looks like a reset to a target position. Telemetry out sends +0 − +860 as the suspension travel.

Established by Static reading of the generated suspension model and the wheel getters (sub_82D1E058 returns +0).
Detail src/pinyon_shift_runtime_hooks.cpp (car_dynamics, QueueCarTelemetry); src/telemetry/telemetry_probe.cpp
Issue #481

ProbableThe sign, the units (assumed metres) and the travel limits are not checked at run time; telemetry_probe records them for that.
sub_82D46EF8
sub_82D3A528
sub_82D38A68
sub_82D1E268
sub_82D0C078v4sub_82E08FF8
sub_82DFC608
sub_82DFAB90
sub_82DE01B0
sub_82DCDEE0
per-body physics step and its two paths The physics-world step calls sub_82D46EF8(world, body, dt, ..., r6) once per car body per simulation tick: 8.33 ms steps at 120 fps on the desktop, one 16.67 ms step a frame at 60 fps on the Deck (so there are no substeps to drop). A car's ICarDynamics (car+0x2D90) is body+0xAD0. The step clears bit 1 of byte body+2731, runs sub_82D0C078(body), then takes one of two paths on the word at body+2756: zero runs the full dynamics step sub_82D3A528 (the 77-function subtree under it is most of physics); non-zero runs the light step sub_82D38A68 only if the byte at body+20520 (read by sub_82D1E268) is set, otherwise nothing. The player's body always takes the full step; AI bodies move between the two during a race (2 to 6 of 7 on the full step on the Deck). The word is written from many places, so it is a state, not a simple flag. Running the AI bodies' full step on alternate ticks with the summed dt (staggered) skipped 9 % of body steps on the Deck, about 0.7 full steps a frame, and changed no thread's CPU beyond the A/A spread (simulation thread +0.1 ms, workers within noise); the physics harness still passed on desktop and Deck (AI mean distance +2.0 % and -1.6 %).

Established by pinyon_shift_physics_body_probe (src/guest_native/car_physics.cpp) logging bodies, calls, path and dt each second beside the car vector; pinyon_shift_physics_ai_step_interval in-run A/B on the Deck and tools/physics-behaviour.py on the sustained race (2026-11-13).
Detail GitHub issue #1071 P1; src/guest_native/car_physics.cpp

Confirmed NegativeThe AI lower-rate step is kept default-off; it does not reach #1071's 0.5 ms gate because few AI bodies take the full step at once.

Activities and collectibles#

Free roam's collectibles and points of interest are activities: discount signs (CActivityFlyers), barn finds, speed cameras, average speed zones, gas stations and the rest. Discount signs and barn finds also keep a saved record in the profile, which is how the game remembers what was found and revealed.

AddressFindingConfidence
0x832FEE8C
sub_828A52F0v40x833EDA1C
sub_82956A20
activity manager The activity manager is a game component: its entry in the component list is at the index stored in 0x832FEE8C. Its activities are a vector of pointers at +4 (begin) and +8 (end). Each activity has a name at +16 (an MSVC std::string such as flyer_001, length +32, capacity +36) and a revealed byte at +8. sub_828A52F0 is the shared start of every activity's reveal (vtable +72): it sets the revealed byte and, once, the revealed byte (+40) of the activity's saved record.

Established by Reading the generated code of the Treasure Map purchase completion; host reads while applying the reveal.
Detail src/dlc_treasure_map.cpp; config/mod/fh1-symbols.toml activity.reveal

Confirmed
sub_828AF6F8
sub_828A52F0
sub_828AF780
sub_828B99C8
sub_828BC658v4sub_829613C8
sub_82956A20
sub_82961450
Treasure Map reveal Buying the Treasure Map token calls sub_828AF6F8 on the activity manager, which runs the reveal (vtable +72) of each discount sign, barn find, speed camera, average speed zone and gas station. The reveal sets the activity's revealed byte (+8) and its saved record's (+40), so the profile keeps it; until then an unfound marker is not drawn. At load a revealed record re-runs the reveal (sub_828B99C8), and a barn find whose rumour starts later shows its exact location (sub_828BC658, at status 5). There is no other entitlement: the map screen offers the purchase while sub_828AF780 finds an unrevealed activity (it returns 1 when all are revealed, and also for an empty list while free roam loads). A mid-career save already has all 22 speed cameras, 9 zones and 10 gas stations revealed.

Established by Following the reveal's callers (sub_82560B80) and vtables; host-run reveal in free roam, then save and reload; collectible logs from a save.
Detail src/dlc_treasure_map.cpp; src/cheats_map.cpp

ConfirmedHow speed cameras, zones and gas stations get revealed in normal play is not traced.
0x82078E54
sub_828BA0C0
0x828D94FCv40x820892CC
sub_8296BE38
0x8298B244
CActivityGeneric Generic activity: vtable 0x82078E54, name at +16, a state byte at +44, trigger embedded at +48, X and Z at +112 and +120. The trigger's position is at trigger+64..76, and its byte at +192 carries a position-set flag (0x20). Its base parser binds triggers only to named GameObjs. sub_828BA0C0(activity) enters the activity and owns loading, game control and the return anchor.

Established by Hook at 0x828D94FC after the trigger attributes are read, reading the X/Z keys through the reader's float reader (vtable +180); calling the enter function started Rally stages.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftReadRallyEntryPosition, QueueRallyRaceTrace

Confirmed
0x82078DE4
sub_828C3460
sub_828C0C80v40x8208925C
sub_82972A38 (smash)
CActivityFlyers A discount sign: vtable 0x82078DE4 (set up by sub_828C3460), revealed byte +8, name +16, map marker handle +56 (tag "flyer"), collected marker +96 ("flyer_collected"), gameplay object +136 (its float4 world position at +112), smashed byte +140 and its saved CFlyerState record through +148. sub_828C0C80(sign, notify) smashes it: it sets the smashed byte, sets the record's found byte (+44) and swaps the marker for the collected one.

Established by Reading the smash and setup functions; offsets checked on v4.
Detail src/cheats_map.cpp; config/mod/fh1-symbols.toml flyer.*

Confirmed
0x82078B5C
sub_828B99C8
sub_828A5BF8
sub_828A78B0v40x82088FD4
sub_829573F8 (show location)
CActivityBarnFind A barn find: vtable 0x82078B5C (set up by sub_828B99C8), discovered byte +44 (set by sub_828B9448), float4 position +112, marker handles +320 ("barnfind") and +360 ("barnfind_collected"), CBarnFindState at +424 and a collected byte at +513 (the record's +45). The record's status at +56 is 3 before it spawns, 4 while the spawn is pending (sub_828BC5E0), 5 once spawned with its rumour running (sub_828BC658; only then can it be discovered), 1 when discovered (sub_828B9BF8) and 0 once collected (sub_828BC3B0). sub_828A5BF8(barn find, show) toggles its exact-location marker, and the collected marker once found; sub_828A78B0 is its reveal.

Established by Reading the state functions; showing locations through the title's own call.
Detail src/cheats_map.cpp; config/mod/fh1-symbols.toml barn_find.*

Confirmed
sub_828E9EC0
sub_828E6028
sub_828E3580
sub_828E4ED8
sub_828E4F58v4sub_8299BDC8
sub_82995330
sub_82996C98
sub_82996D18
map markers Activities show on the map through marker handles. sub_828E9EC0 creates one (r3 handle, r4 activity, r5 type tag such as "flyer" or "barnfind", r6 description, v1 world position); the activity_type tag is what the map profiles (MapProfileFullscreen.xml, MapProfileMinimap.xml) draw. sub_828E3580 (the handle's vtable +12) puts its entity on the map and minimap, sub_828E4ED8 does so with flags to mark the activity changed for the map UI or to add it again, and sub_828E4F58 removes it. The handle (constructor sub_828E6028) holds its map entity at +4; the entity's byte at +52 is set while it is on the map. The map's own FILTER still applies.

Established by Reading the marker calls made by the activities' setup and smash functions; calling them from host tasks showed and hid discount sign and barn find markers.
Detail config/mod/fh1-symbols.toml map_marker.*; src/cheats_map.cpp

Confirmed

Profile#

AddressFindingConfidence
sub_824F04B0
sub_824F2850
0x82142440v4sub_8255C600
sub_8255E5B8
career profile value tree sub_824F04B0(user) returns the user's career profile, 0 when there is none. The profile's values (Main/Credits, Main/XP, Main/TotalWinnings and the rest) form a tree at +32; a byte at +40 is set once they are loaded, and the generic accessors skip a profile without it. sub_824F2850(profile, path, amount) adds to the u32 field named by a path string. Each value is a typed object (vtable 0x82142440, the value at +8, type 3 at +16 for a u32) in a heap below 0x40000000.

Established by Traced from the CGivePlayerMoney script action (sub_825AD820); a scan of guest memory for the saved credit value at each save.
Detail config/mod/fh1-symbols.toml profile.*; src/pinyon_shift_runtime_hooks.cpp ScanLiveProfile, PinyonShiftApplyCredits; docs/NATIVE_PORT_BACKLOG.md NP-8.3

ConfirmedAn earlier conclusion that money is kept encoded in memory came from a scan that missed the heap below 0x40000000.
sub_824F04B0
sub_824E4F78
sub_824F2FA0
sub_825AD820v4sub_8255C600
sub_82553558
sub_8255ED08
credits sub_824F04B0(user) returns the career profile. sub_824E4F78(profile) reads Main/Credits; sub_824F2FA0(profile, credits) sets it, clamped to 999,999,999, tells the balance's listeners (the HUD) and marks the field for the next save. The CGivePlayerMoney script action (sub_825AD820) uses the pair. A byte at profile +40 (v4 +44) is set once the profile's values are loaded; the generic accessors skip a profile without it.

Established by Traced from the CGivePlayerMoney script action; the trainer sets credits through the same calls from a host guest task, and the HUD and later saves show the new balance.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftApplyCredits; config/mod/fh1-symbols.toml profile.credits, profile.set_credits

Confirmed

Lifetime and containers#

Small helpers that turn up in many call stacks: reference counting, handles and container growth. Knowing them saves time when reading a crash or a profile.

AddressFindingConfidence
sub_826E1B10
0x826E1B3Cv40x8247184C
intrusive pointer assignment The shared (intrusive) pointer assignment helper sub_826E1B10, called for nearly every intrusive pointer copy: it AddRefs the source, stores it and releases the old one. At 0x826E1B3C it loads the source's AddRef from vtable +8. Runs have reached it with a freed source object whose vtable word was heap data (ending 487C).

Established by Midasm hook that assigns null for non-image vtables; crash reports and dump analysis.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftTraceRetainVtable; config/rexglue/analysis/main-xex.toml midasm_hook 0x826E1B3C
Issue #371

Confirmed
sub_824E81A8
0x824E81D4
0x824E81F4v4sub_82E180E0
0x82E1810C
0x82E1812C
second intrusive pointer assignment A second assignment helper with the same contract as sub_826E1B10: AddRef the new object through vtable +8 (loaded at 0x824E81D4), store it, then Release the old one through vtable +12 (loaded at 0x824E81F4). #584 reached its Release with the freed object the sub_826E1B10 guard had refused a moment earlier, still held in another slot, and faulted reading the heap word 0x07E0487C + 12. A midasm hook at each load skips the call when the vtable is outside the title image: a dangling new object is stored as null, and a dangling old one is not released. Either case is logged once as object.assign.stale_addref or object.assign.stale_release (16 at most).

Established by Crash report #584 (guest lr 0x824E81E0, the event object.retain.stale_source for the same object just before); the only function in either build with this instruction pattern, found by a scan of the generated code.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardAssignAddRef, PinyonShiftGuardAssignRelease; config/rexglue/analysis/main-xex.toml
Issue #584

Confirmed
sub_823F3048
0x823F3108
0x823F3110
allocator out-of-space stop sub_823F3048 asks each heap in a chain for a block (virtual +80, then sub_823F2ED8). When none can serve it and the heap's flag at +372 is set, it stops the game on purpose with a store to guest address 4 (when the request is larger than the heap's remaining space, +340 minus +68) or 5 (otherwise). A crash report with a write to guest 0x00000004 and lr 0x823F30B4 is this stop: a game heap ran out, not an emulation fault. #602 hit it after 31 minutes with the Forza Horizon XE mod at 2x resolution, #921 (0.7.1) ran XE 1.0 at 1x, and #1055 (0.8.2) hit it after 59 minutes with XE at 2x, changing rims in a garage. #1059 (0.8.2, no log) faulted at the same executable offset as #1055 after 58 seconds.

Established by Crash reports #602, #921 and #1055 (write of guest 0x00000004, lr 0x823F30B4); reading the generated code of sub_823F3048.
Detail site/findings/executable.toml (sub_823F3048 and r6)
Issue #602 #921 #1055 #1059

ProbableWhich heap ran out, and whether XE's extra cars cause it, is not known; every report with a log ran XE, two of them at 2x.
0x82C222EC
0x82C222F0
0x82C22308
0x82C22318
0x82C2231Cv40x82CE2A5C
0x82CE2A60
0x82CE2A78
0x82CE2A88
child release through parent+64 A parent's pending child pointer is at parent+64; a wrapper takes it and releases it through the child's vtable slot 3 at 0x82C22318. Freed or reused children have been seen there; skipping to 0x82C2231C avoids the release.

Established by Trace and guard midasm hooks before and after the child dispatch.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardChildDispatch; config/rexglue/analysis/main-xex.toml pending child hooks
Issue #327 #359 #366 #368 #373 #376

Confirmed
sub_82E48938
0x82E48980
sub_82D842F8v40x82F0A3B0
queue vector append sub_82E48938 queues an item under a lock: after reading the queue's +96 and its pending head at +76, it appends to a vector at queue+80 (begin, end, capacity) through sub_82D842F8. Runs have reached it with a corrupt vector, which produced a write to guest 0x2F.

Established by Crash reports and a midasm hook at 0x82E48980.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardQueueAppend; config/rexglue/analysis/main-xex.toml midasm_hook 0x82E48980
Issue #343

Confirmed
sub_82F9F130
0x82F9F338
0x82F9F36Cv4sub_830603D8
0x830605E0
null output handle sub_82F9F130 can be reached with a null output handle, or a handle whose owner at +68 is null: it reads the object at +68 and then that object's +208 without a null check. Its normal exit returns 0, and returning 0 through the exit at 0x82F9F36C is safe.

Established by Crash report and a midasm hook at 0x82F9F338.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardNullOutputHandle; config/rexglue/analysis/main-xex.toml midasm_hook 0x82F9F338
Issue #367

Confirmed
sub_8248F8F0
0x8248F914
read through a bad object at +0x10 in sub_8248F8F0 Crash reports #801, #848 and #849 fault with guest lr 0x8248F914, which sits in sub_8248F8F0: it reads a field at +0x10 of an object that is null or corrupt, and the call target then (ctr 0x881F0E10) lies in the range the loaded media facade module occupies. #700 (a run with the Forza Horizon XE mod) also names 0x8248F914. The address matches the facade-lifetime reports in docs/FACADE_LIFETIME_FAULTS.md, but nothing ties the cause to a facade object being freed; the object that was read is not identified. #897 and #998 (0.6.1 and 0.7.1, the same registers and ctr) faulted there when a car was selected in a garage; #897's log and two of #998's three record XE 1.0 without its 1.01 hotfix, which corrects XE's car data (the third doesn't record the version). No report with a log from 0.8.0 on, which requires the hotfix, names this address.

Established by Link register and ctr from the crash reports, and the XE version in #897's and #998's session events; the function containing the link register from the generated code. No trace or hook has been run on it.
Detail docs/FACADE_LIFETIME_FAULTS.md
Issue #801 #848 #849 #700 #897 #998

GuessThe location is probable (the same lr in five independent reports); the cause is a guess, and XE 1.0's car data is the likeliest trigger. Not a fix target until a run shows which object is read. The v4 address is not known.
sub_82E48AE0
0x82E48B58
sub_82E48938v40x8247184C
queue consumer reaches a freed object Crash reports #737, #843 and #844 fault with guest lr 0x82E48B58 in sub_82E48AE0, the code that takes items off the queue sub_82E48938 appends to (see "queue vector append"). Each report's log has object.retain.stale_source or object.assign.stale_release events just before the fault, so an intrusive object the queue holds had been freed while still queued. This is the same family as #371 and #584 (the two assignment helpers above); the guards stop the assignment helpers but not this consumer, which reads the freed object directly. #711 is the v4 build's counterpart, with the stale-source event at 0x8247184C. #1083 (0.8.2, after 105 minutes; v4 going by that address, since its report records no build) logged the same stale-source event at 0x8247184C for object 0x2F264F50 and then made an indirect call to 0x00000001 from lr 0x82E18138 with that object in r3, so in v4 the freed object's vtable is read and called.

Established by Link register and the event log lines in the crash reports; the neighbouring function from the generated code. No hook on 0x82E48B58 yet.
Detail src/pinyon_shift_runtime_hooks.cpp PinyonShiftGuardQueueAppend
Issue #737 #843 #844 #711 #1083

ProbableWhich owner frees the object while it is queued is not found. A guard at the consumer would only hide the freed object, so the producer or the owner's release is the place to look. The v4 address of the consumer is not known.