This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
Fix steering angle, throttle power, and brake power offsets not found… #153
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.
Related to #148
It's been a while in this repo. Looks like some people are giving you a hard time too badly, so I disassembled the new GTA5.exe to find what to fix and I managed to find one. It would be great if we could find a more stable place to extract the offset, but this change works at least.
The register to read got changed from
rbx
tordi
in the memory pattern74 0A F3 0F 11 B3 ? ? ? ? EB 25
.In b2944:
In b3095:
Even with the register value to read ignored, we can find only one occurrence, even in b372 and b1604.
I know we have to make other memory patterns to patch how vehicle gears work, but still this PR would be a good start to support b3095.