Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #153 from kagikn/b3095-fix-vehicle-data
Browse files Browse the repository at this point in the history
Fix steering angle, throttle power, and brake power offsets not found…
  • Loading branch information
ikt32 authored Dec 23, 2023
2 parents 9618fca + 4e0ead4 commit edf609a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gears/Memory/VehicleExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void VehicleExtensions::Init() {
logger.Write(lightStatesOffset == 0 ? WARN : DEBUG, "Light States Offset: 0x%X", lightStatesOffset);
// Or "8A 96 ? ? ? ? 0F B6 C8 84 D2 41", +10 or something (+31 is the engine starting bit), (0x928 starting addr)

addr = mem::FindPattern("\x74\x0A\xF3\x0F\x11\xB3\x1C\x09\x00\x00\xEB\x25", "xxxxxx????xx");
addr = mem::FindPattern("\x74\x0A\xF3\x0F\x11\xB3\x1C\x09\x00\x00\xEB\x25", "xxxxx?????xx");
steeringAngleInputOffset = addr == 0 ? 0 : *(int*)(addr + 6);
logger.Write(steeringAngleInputOffset == 0 ? WARN : DEBUG, "Steering Input Offset: 0x%X", steeringAngleInputOffset);

Expand Down

0 comments on commit edf609a

Please sign in to comment.