Streamline GPS momentum plugin

This commit is contained in:
2026-06-27 04:36:28 -05:00
parent 83cf10495e
commit 78520ee48f
8 changed files with 176 additions and 6184 deletions
-25
View File
@@ -1,25 +0,0 @@
EdgeWeightGPS RED4ext package
Install:
Copy the red4ext folder from this package into the Cyberpunk 2077 game folder.
The final layout should include:
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.dll
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/momentum_weights.bin
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/solver_weights.bin
Default tuning:
momentum_weights.bin = 80.0 fixed ordinary-edge penalty
solver_weights.bin = 1.0 neutral highway multiplier
Notes:
The plugin changes player GPS route scoring by adding a fixed cost to ordinary
edge expansion in the native GPS solver. This favors smoother routes with fewer
short-segment stair-steps and was validated in-game on long highway routes,
City Center routes, and local Watson/Westbrook routes.
Tuning:
momentum_weights.bin is a single little-endian float32 and is hot-reloaded while
the game is running. Set it to 0.0 to disable the fixed-edge penalty. Values
around 80.0 are the current validated default. 160.0 was tested and is too high:
it can trigger bad hairpins or fallback-style routing.
+22
View File
@@ -0,0 +1,22 @@
MomentumGPS RED4ext package
Install:
Copy the red4ext folder from this package into the Cyberpunk 2077 game folder.
The final layout should include:
Cyberpunk 2077/red4ext/plugins/MomentumGPS/MomentumGPS.dll
Cyberpunk 2077/red4ext/plugins/MomentumGPS/README.txt
What it does:
The plugin changes player GPS route scoring by adding a fixed 80.0 cost to
ordinary edge expansion in the native GPS solver. This favors smoother routes
with fewer short-segment stair-steps and was validated in-game on long highway
routes, City Center routes, and local Watson/Westbrook routes.
Notes:
This release has no live tuning file. To change the fixed penalty, rebuild the
plugin with a different kFixedEdgePenalty value.
The patch is version-specific native code. If a future Cyberpunk 2077 update
changes the executable around the patched RVAs, the plugin should fail closed
instead of patching unexpected bytes.