Calibrate and install GPS lane weighting archive

This commit is contained in:
2026-06-19 20:24:27 -05:00
parent 85d1e326ee
commit 20daac34e5
10 changed files with 407 additions and 31 deletions
+13 -6
View File
@@ -33,8 +33,8 @@ python3 tools/patch_traffic_lanes.py exported-json-dir patched-json-dir
The patcher recursively scans WolvenKit JSON exports for `lanes` arrays that look
like `worldTrafficLanePersistent` data and applies configurable speed weighting:
- highways get boosted toward a preferred GPS speed
- regular roads get a moderate speed floor
- highways get boosted toward a preferred GPS speed in the game's lane scale
- regular roads keep a moderate speed floor
- pavement, crosswalk, and disabled traffic lanes are left alone
- optional non-highway speed caps can make highways more attractive
@@ -48,10 +48,17 @@ toolbox run --container 2077 bash -lc '$HOME/.dotnet/tools/cp77tools --help'
```
See [docs/tooling.md](docs/tooling.md) for the end-to-end archive build flow.
See [docs/traffic-system-debrief.md](docs/traffic-system-debrief.md) for the
detailed feasibility and traffic graph notes.
## Status
This is not yet a packaged playable mod because this workspace does not contain
the Cyberpunk archive resources. The toolbox has the required CLI tooling now, so
the next step is running the archive build script against a local Cyberpunk 2077
install path.
A test archive was built from the local Flatpak Steam Phantom Liberty install and
installed to:
```text
Cyberpunk 2077/archive/pc/mod/zz_edge_weight_gps.archive
```
Build outputs are ignored by git. The installed archive should be treated as
experimental until route behavior is checked in game.