Skip to content

dev(0.9.9): standalone car ID recovery after invalid reads - #10

Draft
Refilewski wants to merge 5 commits into
mainfrom
dev/0.9.9-standalone-car-recovery
Draft

Refilewski wants to merge 5 commits into
mainfrom
dev/0.9.9-standalone-car-recovery

Conversation

@Refilewski

Copy link
Copy Markdown
Owner

Scope (development only)

Standalone AzimuthRPC for Azimuth 0.9.9; no release, no merge to main, version remains 0.9.9. The native FH2ML implementation is unchanged.

Changes

  • Port the guarded MSVC-style long/heap-backed car identifier decoder from existing experimental PR Fix candidate: guarded heap-backed car ID decoding after car swaps #5 to the managed standalone core; reject malformed/inconsistent objects rather than showing stale vehicles.
  • On invalid car ID probes (invalid-character, short/unterminated/malformed IDs, heap read failures, torn inline/heap snapshots), retry once using a new complete snapshot and refreshed roots. No unbounded loops, no cached vehicle fallback.
  • Double-check the inline car string field to reject reads torn across garage/race/car swap transitions.
  • Add standalone diagnostics CarRetry=not-needed|recovered:<first>-><second>|failed:<first>-><second>.
  • Add synthetic tests for long ID swaps, heap mutation, retry success, permanent invalid ID and inline swap mid-read.

Validation

  • Windows CI build + managed regression tests
  • Live Azimuth 0.9.9 testing: 5+ garage switches, event start/end, long IDs, with/without Extra Options
  • Check no stale vehicle IDs or incorrect model names

This is a dev experiment, not a shipping fix. See PR #5 for the underlying heap-string hypothesis; only live gameplay can validate the game-memory layout. Keep PR as draft and do not merge or publish a release.

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