Add live spatial weight tuning

This commit is contained in:
2026-06-26 21:34:17 -05:00
parent c525c1edf9
commit 9966cf8272
4 changed files with 218 additions and 8 deletions
+9
View File
@@ -71,6 +71,15 @@ Current date/time context: 2026-06-26, local timezone America/Chicago.
`toolbox run -c 2077 tools/build_red4ext_shim.sh`.
- The resulting DLL remains uninstalled. Game install still has only
`EdgeWeightGPS.dll.disabled`, not an active plugin DLL.
- Follow-up live-tuning support adds
`red4ext/plugins/EdgeWeightGPS/spatial_weights.bin`: five little-endian
float32 values in highway, road, GPSOnly, pavement, unknown order. The plugin
polls this file on route-producer entry, so changing it and replotting a route
applies new weights without rebuild/relaunch.
- `tools/write_spatial_weights.py` can write the active file or generate
presets. Generated presets live in `work/spatial-weights/`:
`vanilla.bin`, `current.bin`, `highway-free.bin`,
`highway-expensive.bin`, and `surface-extreme.bin`.
Important caveat: