Repository navigation
Research: opt-in Extra Options-style local car object probe for FH2ML - #6
Draft
Refilewski wants to merge 11 commits into
Draft
Refilewski wants to merge 11 commits into
Refilewski wants to merge 11 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Experimental opt-in native FH2ML in-process current-vehicle detector following the car getter path used by Extra Options. This is a stacked draft on top of #5; it currently includes #5's guarded heap-backed car ID reader.
CarObjectProbe.{h,cpp}:PlayerManager -> GetLocalPlayer -> GetPlayerCar, verifies car vtable, readsmodelIdatcar + 0x118, releases the owned game-car reference through validated virtual method, catches access violations.AZIMUTH_RPC_EXPERIMENTAL_CAR_OBJECT=1(inherited by FH2ML process); automatically quarantines probe after a fault/unsafe release.Vehicle model #IDonly if the audio car name is unavailable; learns a friendly name for the observed model ID only after two matching model+name snapshots; no unsupported model-name assertions.Risks / validation blockers
Calling FH2 game methods from the existing RPC worker thread is NOT verified thread-safe. This does not become a production default until live Azimuth 0.9.9+ testing proves safe access to the player/car getter, correct reference release, model IDs and consistency during loading/car changes. An FH2ML game-thread callback API would be preferable when available.
Data_Car.MediaNamemapping before shipping namesPlease do not merge #5 or this PR into main until the live tests pass.
Related: #4, #5.