Skip to content

Version 3586 offsets causing CLR exceptions - firstPersonVehicleCam crashes on load #30

@shalinratna

Description

@shalinratna

Hey, getting consistent crashes about 10 seconds after game load with the latest build. Pretty sure the new 3586
offsets are pointing to wrong addresses.

Environment:

  • Game Version: 1.0.3586.0
  • Mod Version: Latest (commit adfcb55)
  • ScriptHookV + ScriptHookVDotNet installed

The mod loads fine initially but crashes with CLR exception 0xE0434352. Exception.log shows it's hitting clr.dll
and System.ni.dll in the stack trace, which makes sense since the corrupted camera metadata is probably getting
accessed by .NET scripts. ExtendedCameraSettings.log shows repeated "Couldn't find camera hash for entity. Base type was
firstPersonVehicleCam" errors right before crash, so it's definitely related to the recent offset changes for
first-person vehicle cam.

Look at changing these offsets I can't see the full logs.
minPitch: 936
minPitchExt: 904
maxPitchExt: 908

These were changed from the old values (+48 bytes) but I'm guessing they weren't verified with a debugger? Seems
like they might be off by a few bytes or pointing to a completely different struct member.

Suggestion:
Either add version detection to disable the mod on 3586+ until offsets are confirmed, or add better bounds
checking before dereferencing those pointers. Right now getCamMetadataForHash dereferences *it before any
validation, so if the pool iterator is corrupted it's an instant crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions