29 KiB
Compaction Handoff
Current date/time context: 2026-06-27, local timezone America/Chicago.
2026-06-27 Routing Literature And Engine Research
- Added
docs/gps-routing-research.mdas the durable summary of the GPS routing research pass. - Main conclusion: stop treating "prefer highways" as the objective. It is a useful proxy, especially for AutoDrive, but manual player GPS should optimize momentum/corridor quality: low turn count, low short-segment churn, good continuity, fewer awkward ramps/intersections, and later slope/airtime risk.
- Production engines split edge cost from transition/turn cost. Mirror that at the native solver relaxation surface instead of using another broad highway multiplier. Prefer nonnegative additive penalties first so the vanilla A*/Dijkstra-like assumptions stay sane.
- The user explicitly allows external dependencies if they are justified. Recommendation after research: do not link a full production engine yet. Borrow OSRM/Valhalla/GraphHopper cost-model ideas now, and consider RoutingKit or a tiny custom A* runner offline for graph/cost experiments.
- Full in-game engine replacement remains feasible but expensive. It requires extracting/owning the full drivable graph, mapping live start/target points, computing the path, and converting the result back into Cyberpunk route handles/records. Revisit only if native relaxation cannot support the desired model.
2026-06-27 Momentum/Corridor Direction
- The user reframed the target objective: player GPS should optimize for keeping speed and momentum, not for legal driving or traffic-sim behavior. The player often ignores speed limits, stop signs, and normal traffic flow; in a fast car, any long clean corridor can be a high-speed corridor.
- Highway preference is still a useful proxy, and likely valuable for AutoDrive, but it is not the true goal for manual player routing. Short highway hops can lose time on ramps, deceleration, awkward merges, and airtime. Some side streets, especially long straight corridors around Heywood, can be better than nearby highways.
- Real bad-route signatures to target: stairstepping, repeated 90-degree turns, stop-start intersection chains, short-segment churn, unnecessary ramp/on-off transitions, high-conflict traffic areas, and airborne or steep offramp/hill segments where the car loses acceleration.
- This means the next model should be a momentum/corridor cost model, not a pure road-class model: distance plus turn penalties, intersection/conflict penalties, short-edge churn penalties, ramp transition penalties, grade/airtime risk penalties, with bonuses for long straight corridor continuity and modest highway/arterial continuity.
- The proven inline patch at
0x40bb98only sees the current node flags. It can prove and tuneHighwaypreference, but it cannot distinguish staying straight through a corridor from diving through a ramp, hairpin, or intersection chain. That limitation explains why highway-only tuning has a narrow useful range and can become pathological. - Next RE target should be the edge expansion/relaxation cluster, especially
0x40b304,0x40b540, and0x40ba58, where the solver has current and neighbor handles and assembles the tentativegcost. Identify live registers and struct fields for current state, neighbor state, positions, predecessor or inbound direction, node flags, and degree/intersection hints. - Feasibility tiers:
- Proven/easy: road-class multiplier at
0x40bb98. - Very feasible next: additive penalties at edge relaxation for short edges, intersections, highway/non-highway churn, and slope if endpoint positions are visible.
- Biggest likely win: turn-angle or corridor-continuity penalties if predecessor/current/neighbor positions or equivalent direction vectors are accessible.
- Possible but harder: airtime/grade risk based on vertical deltas and road curvature.
- Probably not worth first: true velocity/acceleration state in A*/Dijkstra, because that expands solver state and risks breaking assumptions.
- Proven/easy: road-class multiplier at
- Keep the traffic-sim/spatial road-class work as supplemental data. It can still label highway, arterial, road, pavement, and unknown areas, but it should feed a broader cost function rather than act as the whole objective.
- Suggested prototype order after compaction:
- Static analyze the edge relaxation cluster around
0x40b304and0x40ba58. - Build a low-noise trace or inline probe around route-windowed calls only; do not reintroduce pathological hot-loop logging.
- First patch nonnegative additive costs only, so vanilla A*/Dijkstra ordering remains sane.
- Start with short-edge and turn/continuity penalties, then add ramp churn and slope/airtime penalties if the required fields are available.
- Validate on the fixed El Coyote city-center set plus long cross-town routes: Violence, No-Tell Motel, The Gig/Cassius Rider, Aldecaldo/Badlands, and the unfinished-highway cyberpsycho route. Also verify AutoDrive is not accidentally given a different cost surface from manual driving.
- Static analyze the edge relaxation cluster around
2026-06-27 Tuning Status And Safe Installed State
- The mod is disabled on disk for the next game launch. Active
EdgeWeightGPS.dllwas renamed toEdgeWeightGPS.live-tunable-92287bd.dll.disabledin the Cyberpunk RED4ext plugin directory.solver_weights.binwas reset to vanilla1.0. - This does not unload the DLL from a currently running game process; it only guarantees the next cold start has no active EdgeWeightGPS plugin.
- Latest committed live-tunable solver patch before this note:
92287bd Add live-tunable GPS solver highway weight. - Live tuning results from the El Coyote / city-center route set:
0.80: plugin loaded and patched, but route handles were identical to vanilla for side job and Claire; Sinnerman/custom changed only packed metadata on the same handles.0.70: still effectively identical at the handle level. Side and Claire matched vanilla/0.80; Sinnerman and custom were metadata-only changes.0.55: visibly crossed the threshold. User reported the custom pin did the funky city-center hairpin again. Archived log shows post-reload route records changing into 37-49 record alternatives, not just metadata tweaks.
- Interpretation: the useful tuning threshold for this start/target set is
between
0.70and0.55, but0.55is already too aggressive for at least the custom pin. Next candidate should be around0.62or0.65, then test a wider set of long routes before choosing a default. - New evidence logs:
logs/EdgeWeightGPS_solver080_3548.log,logs/EdgeWeightGPS_solver070_3900.log,logs/EdgeWeightGPS_solver055_hairpin_4156.log.
2026-06-26 Confirmed Solver-Cost Patch
- We have unequivocally found the player GPS route-cost lever.
- The crashing RED4ext detour on
0x40bb40has been replaced by an inline patch at the road-tail block0x40bb98. The patch preserves vanillanode+0x93behavior, checksnode+0x88 & 0x4000forHighway, and then multiplies highway lane cost by a tunable float. - This inline patch avoids the register-clobber crash from the C++ detour. Static disassembly showed the optimized caller reusing volatile state after calling the tiny vanilla multiplier helper.
- The proof build used highway multiplier
0.35and visibly changed player map routes. It also caused over-aggressive behavior, including a bad custom pin hairpin around the city-center roundabout, proving the hook is real but that0.35is too low. - The vanilla A/B build disabled only the inline multiplier patch and restored
obviously different route choices. User confirmed the custom pin returned to
the straight city-center roundabout route, while the
0.35build took the wrong hairpin. - The live-tunable build enables the inline patch with default highway
multiplier
0.80and pollsred4ext/plugins/EdgeWeightGPS/solver_weights.binevery 500 ms. The file is exactly one little-endian float32 highway multiplier. - The inline patch is deliberately broad across the vanilla road-tail branch:
reaching
0x40bb98already means vanilla selected road-style modes0/2/4, so we do not hard-gate onsolver+0xc4 == 2. This avoids creating a manual drive/autodrive disparity. Pedestrian mode1uses a different vanilla branch and is not changed by this road-tail patch. - Preset writer:
tools/write_solver_weights.py. Preset binaries live inpresets/solver_weights/:vanilla,mild,default,strong,proof-highway-cheap, andhighway-expensive. - Evidence logs:
logs/EdgeWeightGPS_inline_highway035_changed_routes_1449.logandlogs/EdgeWeightGPS_vanilla_ab_2120.log.
2026-06-26 Static Update
- Installed RED4ext state is safe: the game plugin directory contains
EdgeWeightGPS.dll.disabled, not an activeEdgeWeightGPS.dll. - Latest committed source before this handoff update:
7c2ef33 Hook full GPS solver node weights. - Current source has
kEnableGpsTrafficEdgeWeightPatch = falseandkEnableGpsLocalSearchHooks = false. - The real route search is confirmed at
0x44f054, called from0x44cc7c. It is an A*/Dijkstra-style loop: validate packed handles, push start state, pop best open-list state, traverse adjacent handles, call provider filter slot+0x08, call provider edge-cost slot+0x10, update predecessor/cost, then materialize handles through0x44eb68. - Both base and filtered cost-provider vtables point slot
+0x10at0x44f838. The provider vtable RVAs are still0x2ae6120(base) and0x2ae60f8(filtered). 0x44f838computes geometric edge distance and multiplies byprovider[0x08 + ((neighborPoint[0x13] & 0x3f) * 4)].- Base provider constructor
0x451158fills all 64 class multipliers with1.0. Filtered provider constructor0x44b9b4changes the vtable and0x44bda4copies route masks/special zones into the provider, but ordinary GPS route edge cost is still effectively geometric distance. 0x44f7bcis the heuristic helper, not edge cost. It returns distance to the target scaled by the constant at0x1431ef3a0unless the special route-shape helper supplies an adjusted distance.0x44eb68only walks predecessor links and writes packed handles. The richer final route records are produced afterward by0x44cc7c/query result code.- The packed handles resolve into
VANDnavigation blobs frombase\worlds\03_night_city\_compiled\default\navigation_*.streamingsector, not directly intoall.traffic_persistent. Final route records can still be joined toworldTrafficLanePersistent.nodeRefHash, but that is downstream of the search. - Added
tools/analyze_vand_navigation.pyto decode VAND blobs from extracted streamingsector JSON. On the three extracted samples:files=3 blobs=300 points=5059 coords=5046, all masks were0x0003, and dominant classes were1,4,5,3. - Practical implication: traffic
maxSpeedandall.lane_connectionsprobabilities are not the edge-cost surface. The next viable patch should either hook0x44f838and classify edges spatially against precomputed highway/arterial corridors, or patch the navigation VAND graph/classes after extracting the relevant streamingsector resources.
2026-06-26 Spatial Edge-Cost Prototype
- Added
tools/generate_spatial_edge_grid.py, which combineswork/raw-segment-json/all.traffic_persistent.jsonlane flags withwork/traffic-companions/json/all.lane_polygons.jsonpolygons. - Generated
red4ext/EdgeWeightGPS/src/GeneratedSpatialRoadGrid.hpp. The grid is 332 x 361 cells at 32 m/cell, origin(-4640, -7392), with final cell countsH=7574,R=19617,G=20,P=996,unknown=91645. - Added disabled-by-default runtime plumbing behind
kEnableGpsSpatialEdgeWeightPatch = false. When enabled, it attaches onlyGPSRouteProducer 0x44cc7candGPSEdgeCost 0x44f838unless the old verbose local-search probe is also enabled. - The patch reads search-state vectors as
(world X, height, world Y), samples the current endpoint, neighbor endpoint, and midpoint, chooses the strongest spatial road class, then applies a multiplier after native0x44f838returns. Current test multipliers are highway0.62, road1.0, GPS-only1.20, pavement1.35, unknown1.05. - The patch intentionally does not rewrite VAND point class bits. Static materialization code branches on those bits later, so changing them in data is riskier than adjusting cost at the edge-cost vtable slot.
- Fixed
DetourGpsEdgeCostlogging: native0x44f838indexes the provider cost table by neighbor point class, not source point class. - Build verification passed in the Fedora toolbox:
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.pycan write the active file or generate presets. Generated presets live inwork/spatial-weights/:vanilla.bin,current.bin,highway-free.bin,highway-expensive.bin, andsurface-extreme.bin.
Important caveat:
- Runtime logs show long visible GPS routes are decomposed into many
0x44cc7clocal searches. Theret_rva=0x70aa22caller withquery_f78=10andquery_ptr98_rva=0x8d76c4mostly produces tiny connector searches, not the whole route. Do not gate the spatial patch only on that caller unless a later test proves it covers the desired route segment. - Live inversion test log:
logs/EdgeWeightGPS_spatial_inversion_no_route_change_1845.log. The plugin reloaded highway-free weights at+74681ms(H=0.05, all others19.0), then highway-expensive weights at+235135ms(H=19.0, all others0.05). The four repeated map routes after the flip produced finalGPSQueryResultFetch 0x7094b8route records that were exactly identical to the pre-flip route records: route 3 vs 7, 4 vs 8, 5 vs 9, and 6 vs 10 all had identical lane handles and packed metadata. - Practical conclusion: the spatial
0x44f838detour is active and changes many local route-producer edge costs, but it does not change the final selected world-map route records for the tested player GPS routes. Treat this hook as a local-search/connector lever, not the decisive full-route weighting surface.
Current Installed State
- Active RED4ext test plugin is installed:
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.dll. - Older DLLs are preserved disabled as:
Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.dll.disabledandEdgeWeightGPS.dd1423b.dll.disabled. - Source defaults enable the inline road-tail patch:
kEnableGpsNodeMultiplierInlinePatch = true. - Source defaults do not enable the old full-function detour:
kEnableGpsMultiplierHooks = false. - Current behavior patch is the inline
0x40bb98code-cave patch. It preserves vanilla road cost except for highway lanes, whose cost is multiplied by the currentsolver_weights.binfloat. Installed default is0.80. solver_weights.binlives beside the DLL and is hot-polled every 500 ms.- The plugin log was truncated immediately before installing this build.
- Latest archived test log:
logs/EdgeWeightGPS_vanilla_ab_2120.log. - A cold restart is required after installing a new DLL; changing
solver_weights.binafter that is hot-reloaded.
2026-06-26 Full Async Solver Findings
- Static route pipeline:
0x8d20d4map route submit ->0x70a42cquery manager ->0x70a570dispatch ->0x8d17d8/0x8d1880async enqueue. - Worker loop around
0x126c06consumes queued route requests fromrouteSystem+0x47c0. - Worker calls either
0x818928directly or calls0x883cd8first, then0x818928. Successful results pass through0x11f5f60. 0x883cd8resolves/projects start and end candidates with helpers including0x198fb8,0x886958, and0x197b04, then calls0x1caa7a0.0x1caa7a0initializes the full async traffic solver: it setssolver+0x10 = 1, stores route mode atsolver+0xc4, sets route masks atsolver+0xc0/+0xc2, copies candidate arrays intosolver+0x70/+0x80, and calls0x88367c.0x88367cmarks start candidate lane/node records withnode+0x9a |= 1, marks end candidates withnode+0x9a |= 2, computes initial costs at node-state+0x10/+0x14, and queues nodes into open listsolver+0xd0.0x818928calls0x8189f0; when complete,0x818ba8builds the output route records.0x8189f0advances with0x40ade4, then materializes output with0x818ba8.0x40ade4is the true full-route solver advance loop. It pops items fromsolver+0xd0whilesolver+0xdc != 0, calls expansion helpers including0x40b304and0x40b540, then marks state byte+0x22 = 2.0x40b304and0x40b540expand neighbor lists from lane/node records atsolver+0xf8 + index*0xa0.- Neighbor admissibility is
0x40b774, which checks flags atnode+0x88: pass iff(solver+0xc0 & flags88) != 0and(solver+0xc2 & flags88) == 0. - Main cost formula in
0x40b304:g = current.g + delta * 0x40bb40(solver,node) * directionMultiplier; heuristic is straight-line distance to the solver target position;f = g+h. 0x40ba58is the relax/update helper. It writes candidatefto node-state+0x14,gto+0x10, progress to+0x18, predecessor state to+0x1e, marks state byte+0x22 = 1, and pushes to open listsolver+0xd0.- Vanilla
0x40bb40is the key full-solver per-node multiplier. For driving modes it treatsRoad(0x0010) as1.0or1.2, with an extra1.1multiplier if bytenode+0x93 == 1. It does not special-caseHighway(0x4000). - Vanilla non-road fallback uses the float table at
0x3154d28:10, 6, 2, 0, 4, 2.5, 1.5, 0. - Vanilla
0x40bb00auxiliary multiplier returns1.1for most road cases, or uses the table at0x3154d38(4, 2.5, 1.5, 0) for one mode-2/retry branch. - Practical inference: the full solver already has a real edge-cost surface, but vanilla highways are merely roads. The installed build patches that exact multiplier instead of the earlier local VAND search callback.
New Toolbox Tools
The Fedora toolbox 2077 now has:
rizin0.7.4python3-capstone5.0.5python3-pefile2024.8.26
If adding Python-only tooling, create/use a venv and maintain requirements.txt
instead of one-off pip installs.
Active Probe Configuration
In red4ext/EdgeWeightGPS/src/Main.cpp:
kEnableGpsMultiplierHooks = truekEnableGpsProviderClassPatch = falsekEnableGpsProviderClassPatchTrace = falsekEnableGpsTraceHooks = truekEnableGpsQueryLifecycleHooks = falsekEnableGpsRouteJobLifecycleHooks = falsekEnableGpsRouteJobStartTrace = falsekEnableGpsQueryResultTraceHooks = truekEnableGpsSpatialEdgeWeightPatch = falsekEnableGpsLocalSearchHooks = falsekEnableRouteUiTraceHooks = false
If rebuilt with the current defaults, active hooks are focused map-route submit,
final route-result fetch tracing, and the full solver multiplier hook at
0x40bb00/0x40bb40. The spatial edge-cost patch requires
kEnableGpsSpatialEdgeWeightPatch = true. The full local search/cost hooks below require
kEnableGpsLocalSearchHooks = true:
- query lifecycle:
GPSQuerySubmit 0x70a42cGPSQueryDispatch 0x70a570GPSQueryResultFetch 0x7094b8GPSQueryStatus 0xaa5704
GPSSearch 0x44f054GPSRouteProducer 0x44cc7cGPSResolveHandle 0x44e1a8GPSEdgeCost 0x44f838- filtered provider filter
0x44ff68 - base provider filter
0x450b08 - full solver auxiliary multiplier
0x40bb00 - full solver node multiplier
0x40bb40
Async route-job hooks (0x8d17d8, 0x126b28, 0x883cd8,
0x11f5f60, 0x818ba8) are split behind
kEnableGpsRouteJobLifecycleHooks and currently disabled to keep the next
run focused on solved route result records plus local search/cost stats.
The filter probe records pass/fail totals by GPS point class and by bits in
point + 0x10, tested against provider masks at +0x108 and +0x10a.
Why This Probe Exists
Data and behavior patches tested so far:
- Traffic
maxSpeedpatches affected NPC freeway speed but not GPS route choice. - Lane connection probability patches did not change GPS route choice.
- Global cost-table patch produced weird routing but mostly confirmed we were near the solver, not a clean highway preference knob.
- Provider class override patches fired correctly but produced no perceptible
route change after preserving vanilla class
14.
Static disassembly clarified the provider split:
- Provider vtable slot
+0x08is an admissibility filter, not cost. - Provider vtable slot
+0x10is geometric edge cost, multiplying distance byprovider[0x08 + class * 4]. - We patched only slot
+0x10inputs. If slot+0x08filtering dominates the candidate graph, those cost changes can fire and still not visibly steer GPS.
Important Native Findings
GPS pipeline landmarks:
- shared query submit:
0x70a42c - query dispatch:
0x70a570 - route producer:
0x44cc7c - local search loop:
0x44f054 - packed-handle resolver:
0x44e1a8 - edge cost:
0x44f838 - query result fetch:
0x7094b8
The search loop is A*/Dijkstra-like:
- initialize/open list with start node
- pop best node
- check destination handle
- traverse adjacent lane handles
- call provider filter
- call provider cost
- update candidate cost/best predecessor
Provider details:
- Base provider vtable RVA:
0x2ae6120 - Filtered provider vtable RVA:
0x2ae60f8 - Base provider constructor
0x451158fills 64 class multipliers with1.0and sets mask+0x108to0xffff. - Filtered provider constructor
0x44b9b4changes vtable to0x2ae60f8. - Filtered provider commonly has class
14 = 0.05; preserve this unless deliberately testing it.
Route result records:
0x7094b8output records are 0x28-byte route segment records.h00in those records matchesworldTrafficLanePersistent.nodeRefHash.- Route records can be joined to
work/raw-segment-json/all.traffic_persistent.json. - The low byte of route-record
u08is not the same as the search point class. - The log's human wall timestamp has a millisecond rollover bug around second
boundaries. Use the
+Nmselapsed field for ordering and durations.
Packed-handle resolver:
0x44e1a8decodes the packed route handle used by the search/materialization side:- low 20 bits: point index
- bits 20..47: segment index
- high bits: generation/check value
- It resolves the handle into a 0x68-byte segment record and a 0x14-byte point
record. The point record's
+0x13 & 0x3fis the search-side class consumed by0x44f838. - Live logging corrected the selected post-call return RVAs to:
0x44cb9e: 0x38 intermediate-record builder. It writes packed handle,point+0x10mask,point+0x13class, and coordinates fromsegment+0x18.0x44dd97: geometry/materialization path. It walks thesegment+0x28,segment+0x30, andsegment+0x38arrays for the resolved point.
- The current probe opens a five-second resolver trace window before the
original
0x70a42csubmitter runs when the caller is0x8d20d4andquery_fcc=5. Inside that window it logs selected resolver callsites with per-return-site caps instead of spending the whole budget on startup noise. - Each resolver line includes the decoded handle, segment/point pointers,
segment pointer fields
+0x08through+0x38, raw segment bytes, raw point bytes, rawsegment+0x08metadata, thesegment+0x28point-index record, and small raw dumps fromsegment+0x20,+0x30, and+0x38. The goal is to determine whether the selected-path segment still carries, or points to, the traffic lane hash/resource flags before the final 0x28 route records are emitted.
Latest 23:08 Test Result
The user clicked:
- 23:08 continue on main menu
- 23:30 space to continue
- 23:46 map open
- 23:56 side job
- 24:06 Sinnerman
- 24:14 Claire
- 24:21 custom
- 24:30 Aldecaldo camp
- 24:47 far gig east
- 25:03 Violence
- 25:10 cyberpsycho unfinished highway
Use:
python3 tools/summarize_gps_route_records.py \
--traffic-json work/raw-segment-json/all.traffic_persistent.json \
logs/EdgeWeightGPS_query_route_probe_2308.log
Important result table:
- qid 1: startup/minimap route, 18 records, 50 ms, 1216.5 pavement length.
- qid 2: side job, 12 records, 32 ms, 578.6 pavement length.
- qid 3: Sinnerman, 23 records, 45 ms, 897.4 pavement, 160.4 highway, 89.8 road.
- qid 4: Claire, 18 records, 34 ms, 1216.5 pavement.
- qid 5: custom, 17 records, 44 ms, 1006.3 pavement, 241.0 highway, 38.0 road.
- qid 6: Aldecaldo camp, 80 records, 325 ms, 5853.5 road, 1492.9 highway, 1111.5 pavement, 24.6 gpsonly.
- qid 7: far east gig, 81 records, 144 ms, 5086.2 road, 1523.0 highway, 1111.5 pavement, 24.6 gpsonly.
- qid 8: Violence, 55 records, 97 ms, 1991.5 pavement, 358.5 highway, 86.1 road.
- qid 9: cyberpsycho unfinished highway, 58 records, 147 ms, 2657.4 pavement, 519.0 highway, 113.2 road, 56.7 gpsonly.
All 362 route-record handles matched traffic lane hashes in the extracted resource.
Local search/provider aggregate from this run:
- 159 searches, 4036 provider filter calls, only 3 filter failures.
- Filter pass classes:
3:3114,5:451,15:310,1:116,4:42. - Edge source classes:
3:3244,5:487,15:318,1:117,4:58. - Edge return RVAs:
0x44f457:4033,0x44f629:151,0x8d74d3:30,0x8d76b0:10.
Inference:
- Provider vtable slot
+0x08filtering is almost not pruning these route searches, so it is not the dominant reason class-cost patches failed to visibly steer GPS. - Search-side edge classes are only
{1,3,4,5,15}in this run. Final emitted route-record classes include{0,1,2,3,4,5,7,8,9}and class 7/8/9 are highway-heavy. Therefore final route-recordu08low byte and search pointpoint+0x13class are different domains.
Latest 46:50 Resolver Test Result
Archived log:
logs/EdgeWeightGPS_resolve_handle_probe_4650.log.
User timing:
- 46:50 Continue on main menu
- 47:23 Space to continue
- 47:35 map open
- 47:43 side job
- 47:51 Sinnerman
- 47:57 Claire
- 48:09 custom
- 48:2x Aldecaldo camp
- 48:57 game cold /
OnExit
Route summary:
- routes=6, records=170, matched route records to lane hashes=170/170.
- qid 1: startup/minimap, 18 records, 43 ms, 1216.5 pavement.
- qid 2: side job, 12 records, 34 ms, 578.6 pavement.
- qid 3: Sinnerman, 23 records, 45 ms, 897.4 pavement, 160.4 highway, 89.8 road.
- qid 4: Claire, 18 records, 35 ms, 1216.5 pavement.
- qid 5: custom, 19 records, 45 ms, 1006.3 pavement, 343.4 highway, 38.0 road.
- qid 6: Aldecaldo, 80 records, 340 ms, 5853.5 road, 1492.9 highway, 1111.5 pavement, 24.6 gpsonly.
Resolver sample findings:
- The first resolver probe captured only the startup guard window because the guessed return RVAs were post-call-off by a few bytes.
- It still proved
GPSResolveHandle 0x44e1a8attached successfully. - Actual resolver returns in the first 64 logged samples:
0x44dd97:57,0x44cb9e:7. - Resolver point classes in those samples:
4:60,5:4. - The 0x68 segment header contains generation/counts/pointers; final
nodeRefHashvalues are not inline in those 0x68 bytes. - Static disassembly shows
segment+0x10is the 20-byte point array,segment+0x18is the coordinate array, and the materializer indexessegment+0x28bypointIndex*12.
Next Work
- Pivot away from the spatial
0x44f838cost detour for world-map routing. It is proven active but does not alter final selected route records under extreme inverse weights. - Statically disassemble the caller chain around the full map-route submit and
result path:
0x8d20d4,0x70a42c,0x70a570,0x7094b8,0x520783, and the async route-service cluster around0x8d17d8through0x8d49xx. - Identify where the final 0x28 route records are selected or copied before
0x7094b8returns them. The current evidence says that is closer to the real full-route weighting/selection surface than the local0x44cc7csearches. - Avoid post-
0x7094b8rewriting unless every upstream option fails; that would likely only change displayed path records and risks desynchronizing route instructions from the actual planner.
Useful Commands
Build/install:
toolbox run -c 2077 ./tools/build_red4ext_shim.sh
toolbox run -c 2077 ./tools/install_red4ext_shim.sh
Clear plugin log:
truncate -s 0 '/var/home/salt/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.log'
Inspect current plugin log:
tail -n 240 '/var/home/salt/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Cyberpunk 2077/red4ext/plugins/EdgeWeightGPS/EdgeWeightGPS.log'
Disassemble with rizin in toolbox:
toolbox run -c 2077 rizin -q -A '/var/home/salt/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Cyberpunk 2077/bin/x64/Cyberpunk2077.exe'
Caution
- Do not revert user changes or old untracked logs unless explicitly asked.
- Commit early/often.
- Do not install Python packages one by one with pip; use
requirements.txt.