Skip to content

Migrate AzimuthRPC to FH2 Mod Platform + HUD-based car identification - #12

Draft
Refilewski wants to merge 14 commits into
mainfrom
fix/azimuth-102-fh2-mod-platform
Draft

Refilewski wants to merge 14 commits into
mainfrom
fix/azimuth-102-fh2-mod-platform

Conversation

@Refilewski

@Refilewski Refilewski commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Implementation

  • Native DLL migrated from FH2ML to Trinculo54's FH2 Mod Platform 2.7.3 (fh2mod_init, registration/logging/game base).
  • New preferred native car source: platform instruction hook at the FH2 HUD update (GameBase+0x783E67). Capture HUD's current vehicle pointer from RDI+0xE8, verify its player-car vtable (GameBase+0x2C5CB80), decode the native car media-name string at Car+0x350 (inline/heap forms), and reject invalid/stale samples. Falls back safely to the existing audio-field reader when HUD data is unavailable.
  • Both EXE and DLL retain guarded, bounded AudioEngine+0x278 parsing and ambiguity-checked fallback. The EXE does not have the new HUD hook.
  • Windows CI and release packaging adapted for platform's fh2-mods/AzimuthRPC.dll layout; pinned official platform package and license notices.
  • Updated diagnostics, tests, docs and version metadata.

Research evidence

Before merging

  • Confirm Windows CI builds both targets.
  • Live test with Azimuth 1.0.2 is still required. Drive two different cars, change vehicles in Garage, test Photo Mode/race/loading, restart Azimuth and Discord; check AzimuthRPC.log and fh2-mods/platform.log.
  • The fallback audio scan is heuristic, while the HUD offset is grounded by another mod but has not yet been verified in AzimuthRPC.
  • Preserve newer platform loader if one is installed. Keep EXE and DLL separate to prevent competing updates.

Not merged to main.

@Refilewski Refilewski changed the title Migrate AzimuthRPC to FH2 Mod Platform and add Azimuth 1.0.2 car fallback Migrate AzimuthRPC to FH2 Mod Platform + HUD-based car identification Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant