Vehicles: the steering lock from the handling records #67

Manually merged
github merged 1 commit from gh-pr/67/head into gh-pr/67/base 2026-11-26 20:07:14 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 18:46 UTC · original
holdmysocks:claude/steer-lock → master · +93 −5 · 4 files · 1 commits · merged 2026-11-23 18:55 UTC

Corrects #63, which said no steering lock was found in the data.

What was wrong

The handling records are in the PSO files of data.rpf (sixng handling already reads them). #63 only searched the 0x7a resources.

Changes

  • vehicles.json: steering_lock per vehicle is fSteeringLock of its handling record in radians, joined by handlingId and taken from the base record where a record has none (format 7).
  • 333 of 373 models have one: 41.3 degrees on comet7, 42.7 on buffalo6, 36.4 on the ambulance, 51 on the sanchez. Most cars are at 39 to 41.
  • Viewer: the steering slider runs to the vehicle's lock instead of a fixed 40 degrees (35 where a model has no handling record). Its hover text says which.

Checked

  • The values in a rebuilt vehicles.json.
  • comet7 in the viewer at its full lock (--steer 0.72).
  • cargo check --release of both binaries on this branch; 137 core tests pass.

Not decoded

  • Whether the game steers both front wheels to exactly this angle. No Ackermann difference is applied.
  • The steering wheel's ratio is still an estimate.
**@⁠holdmysocks** on GitHub · 2026-11-23 18:46 UTC · [original](https://github.com/holdmysocks/SixNG/pull/67) `holdmysocks:claude/steer-lock` → `master` · +93 −5 · 4 files · 1 commits · merged 2026-11-23 18:55 UTC Corrects #63, which said no steering lock was found in the data. ## What was wrong The handling records are in the PSO files of `data.rpf` (`sixng handling` already reads them). #63 only searched the `0x7a` resources. ## Changes - `vehicles.json`: `steering_lock` per vehicle is `fSteeringLock` of its handling record in radians, joined by `handlingId` and taken from the base record where a record has none (`format` 7). - 333 of 373 models have one: 41.3 degrees on comet7, 42.7 on buffalo6, 36.4 on the ambulance, 51 on the sanchez. Most cars are at 39 to 41. - Viewer: the steering slider runs to the vehicle's lock instead of a fixed 40 degrees (35 where a model has no handling record). Its hover text says which. ## Checked - The values in a rebuilt `vehicles.json`. - comet7 in the viewer at its full lock (`--steer 0.72`). - `cargo check --release` of both binaries on this branch; 137 core tests pass. ## Not decoded - Whether the game steers both front wheels to exactly this angle. No Ackermann difference is applied. - The steering wheel's ratio is still an estimate.
The steering PR said no steering lock was found. That was wrong: the
handling records are in the PSO files of data.rpf (`sixng handling`
already reads them), not in the 0x7a resources that were searched.

- vehicles.json: steering_lock per vehicle = fSteeringLock of its
  handling record in radians, joined by handlingId and taken from the
  base record where a record has none ("format" 7). 333 of 373 models
  have one: 41.3 degrees on comet7, 42.7 on buffalo6, 36.4 on the
  ambulance, 51 on the sanchez; most cars are at 39 to 41.
- Viewer: the steering slider runs to the vehicle's lock instead of a
  fixed 40 degrees (35 where a model has no handling record), and its
  hover text says which.

Checked: the values in a rebuilt vehicles.json. 137 core tests pass.
The slider's new range was not looked at in the running viewer.

Not decoded: that the game steers both front wheels to exactly this
angle (no Ackermann difference is applied); the steering wheel's ratio
is still an estimate.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:07:12 +00:00
github manually merged commit db1634969d into gh-pr/67/base 2026-11-26 20:07:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.