Repository navigation
Open
Description
Observed behavior (2026-10-18)
Discord users report inconsistent car names after switching cars (normal freeroam, Extra Options car switching, and entering events). One tester could switch several times before the car disappeared; another lost it on the first swap and recovered temporarily after restarting the game.
A supplied standalone 0.9.9 log provides stronger evidence: CarProbe=invalid-character occurs even before subsequent vehicle changes, and CarId=none throughout the available session.
Sanitized observations
- 64 snapshot diagnostic records in the supplied (truncated) log; 55
CarProbe=invalid-character, 3CarProbe=empty, 0CarProbe=ok. Discord=Connected, supported FH2 image mapped (0x140000000).- Hooks installed, live speed continues to update;
FreeRoamandEventactivity detected. - Thus this is not primarily a Discord IPC connection failure and not exclusively proven to be caused by a car swap.
Source investigation
- Managed:
src/AzimuthRPC.Core/Game/GameSnapshotReader.csreads 64 bytes fromAudioEngine+0x278and requires 5–63 ASCII characters ([A-Za-z0-9_], underscore included). The result is absent whenever the parser rejects this field. - Native FH2ML DLL uses the same
+0x278car ID field, so merely switching EXE→DLL is not a verified fix. - Extra Options uses
GET_LOCAL_PLAYER(0x21e0c0) andGET_PLAYER_CAR(0x2da060) to resolve and validate the current player car object (seefeatures/autodrive_game.c,game_addresses.h). This can provide a separate source for vehicle identity research; it does not establish a safe name/ID pointer chain for the standalone process yet.
Proposed next steps
- Capture two or more controlled sessions with and without Extra Options, on identical Azimuth/FH2 versions; annotate initial car, freeroam swaps, garage swaps, racing load and return.
- Add privacy-preserving probe metadata indicating where validation fails (invalid-character index, printable/binary class, NUL position) and/or whether the sampled 64-byte region changes on swaps, without dumping raw heap contents.
- Investigate stable current-car object metadata and name/ID access through validated player/car references. Do not assume
AudioEngine+0x278always holds the current car. - Implement candidate fixes behind build/structure guards, with synthetic tests covering car swaps, missing IDs, loading and reattach; require live validation before production use.
- Avoid retaining a stale car after the source becomes invalid.
Privacy: The submitted log contains a local Windows profile path; no raw log, profile name, raw memory or Discord identifiers are posted here.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Refilewski commentedon Oct 18, 2026
Additional live tester evidence — 2026-10-18 (21:46–22:12 local)
Three shared log screenshots and the testers' Discord observations give a useful lifecycle comparison. Sanitized excerpts, with no raw memory or user paths:
CarProbe=okforBMW_M5E39_03and thenHON_CivicR_04; the displayed car changes correctly. Around 21:47:07, still inFreeRoamwithEventContext=2andHooksInstalled=True, it switches toCarProbe=invalid-character; CarId=none. The speed is still populated and briefly reaches 60 km/h after the failure.RaceLoadingthenFreeRoam,CarProbe=invalid-charactercontinues while telemetry activity can become true and Discord still reports speeds of 5, 40, 65, 95 km/h. This rules out Discord IPC itself as the car-ID failure point.CarProbe=empty; after race loading,CarProbe=invalid-characterpersists through return to free roam. Hooks remain installed andEventContext=2.Interpretation / test target
The two concrete successful IDs are 12 (
BMW_M5E39_03) and 13 (HON_CivicR_04) characters. This is compatible with the suspected 15-character MSVC small-string threshold: longer identifiers may put a pointer, not an ASCII string, atAudioEngine+0x278. However, the actual IDs at failure were not captured, so this remains a hypothesis rather than proven correlation. The transient/persistent invalid field and race-loading lifecycle are important additional test dimensions.PR #5 already adds a guarded heap-string reader for standalone + FH2ML, and its head
cf92fcaf7021a95034a94940544d0e0019e81bc8passed CI (workflow run 39142951675); this does not mean the live bug is fixed. The run contains theAzimuthRPC-0.9.9-win-x64artifact for controlled tester use. Please test the CI artifact from PR #5, not the unchanged v0.9.9 release asset. CaptureCarProbestatuses (ok,ok-heap,heap-*,invalid-character) and the real selected vehicle before and after at least five swaps and a race return. Do not merge until verified.No production offset changes are inferred from these logs.
Refilewski commentedon Oct 18, 2026
New tester regression candidate: modded BMW M5 E39 (2026-10-18 22:27–22:28 local)
User reports that a modified BMW M5 E39, which was previously identified successfully, is now missing from Rich Presence. Screenshot shows a continuous single session (
PID=6736), including FreeRoam -> Event -> RaceLoading -> Event -> RaceLoading:CarProbe=invalid-character; CarId=nonein free roam at 22:27:29, then during racing/event at 22:27:31 / 22:27:40 and loading at 22:27:31 / 22:27:40 / 22:28:18.HooksInstalled=True,EventContext=2in free roam and1during events;TelemetryActive=Truewhile racing. Discord stays connected and speed reaches 250 km/h.CarProbe=ok; CarId=BMW_M5E39_03before detection failed in that session, but we cannot confirm the modified vehicle's exact runtime ID from the new screenshot.Important for v1.0.0: do not treat one successful test as universal validation. Release candidate is currently being prepared on PR #5, but hold the production merge until the reporter confirms whether the affected session used
v0.9.9-carprobe-test.1(downloaded pre-release EXE) or the oldv0.9.9official EXE, plus mod name and whether stock M5 reproduces. If the test EXE reproduces, add a guarded diagnostic that reports metadata/invalid-character index and field consistency without exposing raw memory, then investigate the current-car object independently. Keep PR #6 experimental and off by default.