Disable unstable traffic scorer hook

This commit is contained in:
2026-06-26 20:49:47 -05:00
parent eebd857f41
commit d68a8745f0
6 changed files with 287 additions and 14 deletions
+25 -4
View File
@@ -26,6 +26,21 @@ and test which fields the native planner actually consumes.
## Current Implementation
Current active work is a RED4ext shim under `red4ext/EdgeWeightGPS`. It has
confirmed the world-map GPS route path runs through the native async traffic
route pipeline, not the script-facing `RunGPSQuery`/`UpdateGPSQuery` helpers.
The shim can log the query lifecycle, async traffic result handoff, and route
postprocess stages.
An experimental traffic candidate scorer hook at RVA `0x8d46cc` proved the game
does consult traffic lane flags while selecting route/projection candidates:
highway, road, and pavement flags were visible live and the hook changed their
scores. That detour currently crashes during load, so it is disabled by default
in source and disabled in the local game install as `EdgeWeightGPS.dll.disabled`.
It should be treated as evidence and an RE lead, not a playable mod.
The older data-only tooling remains in the repo for reference:
This repo currently contains WolvenKit-export patchers:
```bash
@@ -49,8 +64,8 @@ weighting.
`patch_lane_connections.py` patches `all.lane_connections` by raising
highway-enter/stay edge probabilities and lowering competing non-highway exits.
That candidate is staged as an experimental archive but has not yet been proven
to affect GPS routing.
That candidate loaded in game, but live testing did not show a GPS routing
change.
After patching, deserialize the JSON back into CR2W and pack the resulting
resources into an archive.
@@ -71,9 +86,15 @@ A conservative speed archive, an aggressive speed archive, and a connection
probability archive were built from the local Flatpak Steam Phantom Liberty
install. All `zz_edge` archives are currently disabled in the game folder.
The RED4ext plugin is also currently disabled for normal play:
```text
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.dll.disabled
```
```text
Cyberpunk 2077/archive/pc/mod/zz_edge_weight_gps_highway_probability.archive.disabled
```
Build outputs are ignored by git. Experimental archives should be enabled one at
a time and tested from a cold boot.
Build outputs are ignored by git. Experimental archives and RED4ext DLL builds
should be enabled one at a time and tested from a cold boot.