d3d12: wire F4 Sky-Cam teleport, streaming vehicle spawner, and clock fallback (D3D12-F4-TELEPORT-VEHICLE-TIME) #3009
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3009:github-pr/3009" git switch "github-pr/3009"
Open
leonida/mandy
Phlanka wants to merge 1 commit from
github-pr/3009 into main
pull from: github-pr/3009
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3009
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3009"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Claimed in the coordination issue as: D3D12-F4-TELEPORT-VEHICLE-TIME (#2570)
What and why
Wires live-verified 1.0.2.1 teleport, clean-room runtime vehicle discovery/spawning, and clock fallback into the F4 trainer's existing
LEONIDA_GAME_ACTIONS=1backend (d3d12/apps/leonida/src/game_actions.rs) andleonida-menu's Spawn vehicle page:d3d12/apps/leonida/src/warp.rs):teleport.waypoint): reads the active map waypoint fromg_WaypointMgr, probes ground Z, and runsStartLongSwitch+CEntity::SetPositionon the title's thread (moves either the player ped or their current vehicle).teleport.save/teleport.load): captures exact sector-corrected world coordinates, persists them to%LOCALAPPDATA%\Leonida\saved_position.txt(reporting disk write failures to the F4 menu status), and Sky-Cam warps back to them.teleport.forward): instant 10 m hop along the entity's forward axis viaCEntity::SetPosition.teleport.vice): Sky-Cam warps toLEONIDA_VICE_CITY=x,y,zwhen set, defaulting to(-403.4, 337.3, 9.0).d3d12/apps/leonida/src/vehicle_spawn.rs&d3d12/crates/leonida-menu/src/vehicles.rs):vehicles.rscarves the unencrypted zlib XML streams (CVehiclePerformanceMapsandCVehicleDistantLightData) from<game_dir>\common.rpfusingzlib-rs(no keys or decryption), bucketing discovered model names A-Z.vehicle_spawn::classify_onceresolves each discovered model viaGetBaseModelInfoFromHashKey(model_key), verifiesIsVehicleModel, readsCVehicleModelInfo + 0x1DC(m_vehicleType), and regroups the menu live into Cars (A-Z buckets), Bikes & Quads, Water, Air, and Trailers & Other (hiding the 9 fallback cheat items when discovered groups are present).%LOCALAPPDATA%\Leonida\vehicles.tsvorLEONIDA_VEHICLES_FILE(registered ind3d12/docs/switches.md).RequestObject/HaveAssetsLoaded, places vehicles on probed ground in front of the player viaRequestVehicle, and supports the Spawn inside toggle.d3d12/apps/leonida/src/game_actions.rs):Site::ClockTime[hour, minute, second]fields alongsideSite::ClockSet(and returns an error if both are absent).warp::supported_build(&game.sites, game.size)(both in menu dispatch and inGame::perform) and bounds-checked againstbase..base + size, so non-1.0.2.1 builds fall back cleanly.Tested
python -I scripts/check_no_game_data.pyon all 10 changed files — passed (0 findings).python -I tests/test_d3d12_switches.py— 20/20 passed (LEONIDA_VEHICLES_FILEregistered ind3d12/docs/switches.md).cargo test -p leonida-menu --locked— 52/52 passed (synthetic tests for TSV parsing, zlibcommon.rpfXML carving, andm_vehicleTypegrouping).cargo test -p leonida --locked -- game_actions vehicle warp— 15/15 passed (coord parsing, isolated temp-file save/load, read-only write failure, NaN/Inf and small-image rejection).LEONIDA_GAME_ACTIONS=1and no externalvehicles.tsv: verified runtime discovery and classification of all 326 models into 5 groups, ground-probed spawning across Cars, Bikes & Quads, Water, and Air, Sky-Cam teleports, Save/Load position, and Time controls.GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11 Pro x64.
AI-assisted: yes — authored with Gemini 3.1 Pro (Antigravity) and independently audited by a separate read-only Gemini 3.1 Pro reviewer subagent (all 6 findings fixed and re-audited PASS);
model_keyspawning, ground probing, andSpawn insideoriginally contributed by @matthieupl87-spec (Claude Code).Checklist
main(b4176322) and merges cleanly.The F4 “Save position” action reports success when the file write fails. I reproduced the persistence failure on Windows at
b34b08daawith a standalone Rust harness compiled from the PR’s saved-position functions. I used a temporary LOCALAPPDATA directory.In game_actions.rs the action unconditionally returns “Saved” after save_position returns. Please propagate the write result to the menu so the player knows when a position is only available for this session. The harness exercised the persistence code only. I checked the menu message by source inspection.
Codex-assisted.
Good catch @andrew-ai — fixed!
warp::save_positionnow returnsResult<(), String>instead of discarding the disk write error, andgame_actions.rsreportsSaved (x, y, z) for this session only (file write failed: ...)in the F4 menu status and log when persistence fails. Added a unit test (save_position_to_reports_write_failure_on_readonly_file) covering the read-only file case (102/102tests passing).I tested this on 1.0.2.1 (Windows 11, RTX 5070 Ti, diag build). My build has one local commit outside this PR, in
run.rs, unrelated.Teleport works here. Waypoint (Sky-Cam) and Vice City both put me where expected.
The vehicle picker does not find its models on this build. Picking banshee and choosing Spawn selected logs
vehicle model banshee (0xc1e908d2) not found, and the other models I tried do the same. 1.0.2.1 does not key its models by joaat. The key is the runtime's ownmodel_key(MurmurHash3 of the lower-cased name, low 64 bits).With only the
spawn.selectedarm changed, andSpawnPreset/vehicle_spawn::starttaking au64, your streaming spawner works:From the run:
spawn: streaming banshee, thenspawned banshee at (-2014.8, -5330.3, 6.5). Futo spawned the same way. Both stood on their wheels on the road in front of the player.I built on this in
matthieupl87-spec:f4-vehicle-models, the last two commits on top of your29bcd2471. It adds all 315 models by category, places the vehicle on the probed ground, and wires your Spawn inside toggle. GitHub would not let me open it as a pull request yet. Feel free to take any of it into this PR.AI-assisted (Claude Code).
Update: the category pages of that branch work in game too. A buccaneer picked from its category page streamed and spawned standing on the ground in front of the player (
spawned buccaneer at (-3196.6, -6654.5, 4.2)). Spawn inside is not tried yet.@Phlanka, GitHub still will not let me open a pull request, so I am offering the vehicle work for this PR instead. It is one commit on top of your current head
29bcd2471, so it should apply cleanly:What it does:
model_key(label), andSpawnPreset/vehicle_spawn::starttake the u64 key.warp::ground_zwhen the ground is near the player's height.Tested in game (RTX 5070 Ti, driver 621.47, Windows 11): Spawn selected (banshee, futo) and category picks (buccaneer, vitello, furia, zorrusso, tempesta, ragno, italirsx). All stood on their wheels in front of the player. 0 crashes.
Left out on purpose: wiring your Spawn inside toggle.
GET_CLOSEST_VEHICLEreturns 0 every time on this build, so the spawned vehicle's handle has to come another way.Tests:
cargo test -p leonida -- game_actions vehicle(13 passed),cargo test -p leonida-menu(49 passed),check_no_game_data.pypasses.This replaces my earlier branch
f4-vehicle-models. Take any or all of it. AI-assisted (Claude Code).Thanks @matthieupl87-spec! Tested live on 1.0.2.1 (RTX 4070 SUPER, DXR 1.1 Hardware RT + DLSS 4 + Frame Gen) — both Spawn selected and the 315-model category pages spawn cleanly on the ground. Cherry-picked into this PR as
9b04c595with your authorship andCo-Authored-Byattribution, and verifiedleonida-menu(49 passed),game_actions/vehicle(13 passed), andcheck_no_game_data.py.@Phlanka, thank you for testing the 315 models on your side and for taking them into this PR. Much appreciated.
If you want to talk about the menu or anything else, you can message me on Discord: Pooldead.
AI-assisted (Claude Code).
Reviewed #3009 (code review only, not built here: Windows-only, calls into the title). The F4 features are gated and tested, and they have live runs. One clean-room question needs a maintainer's answer before merge.
9b04c5955a(2 December 13:47 UTC)main45dc41f95cgit merge-tree); merge base913b88b905, 313 commits behindLEONIDA_VICE_CITYis already on the page)#[test]s29bcd247), matthieupl87-spec (1.0.2.1, RTX 5070 Ti), the author live on 1.0.2.1 (RTX 4070 SUPER, HW RT, DLSS 4, FG) with the 315 models of9b04c595Review
d3d12/apps/leonida/src/warp.rs: every 1.0.2.1 RVA it calls (FN_FIND_LOCAL_PLAYER_VEH,FN_FIND_GROUND_Z,FN_START_LONG_SWITCH,FN_IS_SWITCH_ACTIVE) is used only behindsupported_buildand anin_imagebounds check, and every entry point also checkssize < MIN_IMAGE_SIZE. Another build falls back with a message instead of jumping into the wrong code. Good.save_positionnow returnsResult<(), String>and the menu shows the error, which closes andrew-ai's finding.%LOCALAPPDATA%, outside the repository. Fine.Clean-room question (maintainer decision).
d3d12/crates/leonida-menu/src/vehicles.rs(new, 303 lines) is a table of the game's vehicle model names and display names, "generated from the entity names table (vehicles.tsv, nativedb, CC BY 4.0)".d3d12/docs/asset-policy.mdforbids "extracted tables" and allows "small interoperability constants". The names come from a third-party community database, not from this repository's own extraction, andmainalready spawns bymodel_key(name)(game_actions.rs:150). But a full catalogue of a game's asset names is closer to an extracted table than to a small constant. I would not merge it without an explicit OK from a maintainer, or without cutting it to the user typing a name, whichmodel_keyalready supports.Process. The AI line says "Gemini" without the model version; CONTRIBUTING.md asks for the specific models, including the reviewer's.
Verdict: defects (policy). The code is ready; the vehicle-name table needs a maintainer's clean-room decision first.
AI-assisted: Claude Opus 5.5 (Claude Code), review only.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@MoonEyes thanks for the review.
About
vehicles.rs: I wrote that file (commit623779c2a, taken into #3009 as9b04c595). The names come only from the nativedb entity names table (vehicles.tsv, CC BY 4.0). Nothing was read from the game files.I agree it is the maintainers' call. If the full list is not OK, I can make a small follow-up commit for Phlanka that removes the table and keeps only a text field where the user types a model name, using the
model_keythatmainalready has. Just say which way you prefer.The Gemini model version is Phlanka's to answer, not mine.
AI-assisted (Claude Code).
Thanks @MoonEyes and @matthieupl87-spec for the review and feedback!
I have replaced the static vehicle table completely and rebased the branch cleanly onto
main(b4176322) so no hardcoded vehicle names remain in the diff or PR commit history:d3d12/crates/leonida-menu/src/vehicles.rs,d3d12/apps/leonida/src/vehicle_spawn.rs):CVehiclePerformanceMapsandCVehicleDistantLightData) from the player's own<game_dir>\common.rpfusingzlib-rs(no keys or decryption, zero vehicle names in the repository).classify_onceresolves each discovered model viamodel_key+GetBaseModelInfoFromHashKey/IsVehicleModel, readsCVehicleModelInfo + 0x1DC(m_vehicleType), and regroups Spawn vehicle live into Cars (A-Z buckets), Bikes & Quads, Water, Air, and Trailers & Other (hiding the 9 greyed-out fallback items when discovered groups are present).%LOCALAPPDATA%\Leonida\vehicles.tsvorLEONIDA_VEHICLES_FILE(registered ind3d12/docs/switches.md;tests/test_d3d12_switches.py20/20 passed).621.24).check_no_game_data.py(0 findings),test_d3d12_switches.py(20/20),leonida-menu(52/52),leonida(15/15), independent read-only reviewer re-audit (PASS), and live in-game verification on 1.0.2.1 (326 models classified into 5 groups with no externalvehicles.tsv).AI-assisted: Gemini 3.1 Pro (Antigravity); separate read-only reviewer subagent: Gemini 3.1 Pro.
@Phlanka thanks, and no problem about the table: reading the names from the player's own
common.rpfat start is a cleaner answer to the clean-room question than my list.I have not tried the new head
3ce9f87d6in game yet. I can run it on 1.0.2.1 (RTX 5070 Ti) and report which groups and how many models show up on my copy, if that helps the review.AI-assisted (Claude Code).
@Phlanka tested your head
3ce9f87d6in game, as promised.mainb4176322), plus one local commit outside this PR, inrun.rs, unrelated (LEONIDA_PATCH, so my story saves load). Diag build, DLSS,LEONIDA_GAME_ACTIONS=1.vehicles.tsv: the log saysvehicles: classified 326 models into 5 groupsat update 15.elegy), a bicycle (bmx) and a helicopter (buzzard) from the new groups. Each one appeared on the ground next to the player.One piece of feedback on the menu, not a blocker: with more than 300 models, one "Cars (A-Z)" group is hard to browse. A finer split (sports, SUVs, muscle, vans...) would help, if the title's own model info has a vehicle class field next to
m_vehicleType. I have not looked for it yet.AI-assisted (Claude Code).
Thanks @matthieupl87-spec for testing
3ce9f87d6on your RTX 5070 Ti and confirming the 326-model discovery and spawns work out of the box with novehicles.tsv!On the finer car-class split: we inspected
CVehicleModelInfoand foundm_vehicleTypeat+0x1DC(giving us Cars, Bikes & Quads, Water, Air, and Trailers & Other), and split Cars into 5 alphabetical buckets (0-9 / A-D,E-H,I-M,N-R,S-Z) so we could keep everything 100% clean-room without a manual table. We haven't found am_vehicleClassfield yet, though if anyone locates that offset on 1.0.2.1 it would make a great follow-up PR!AI-assisted: Gemini 3.1 Pro (Antigravity).
@Phlanka thanks, the A-Z buckets are fine for now. If someone finds the class field on 1.0.2.1, that can be a follow-up.
Side note from my local branch, not in this PR: a working No traffic on 1.0.2.1. The density natives only stop new vehicles.
CLEAR_AREA(0x15882A4EC477D569) with the flag0xffff, run every 2 s within 300 m of the player, takes away the vehicles already there. The flags 0 and 1 ... 128 alone did nothing. The player's own vehicle is kept:SET_ENTITY_AS_MISSION_ENTITYon the car the player is in, and a pause after a spawn until the player gets into the new car. Without that, the clearing took the spawned car away.Performance, one run (RTX 5070 Ti, window-title fps, loading left out): no cost from the repeated clearing. Median 14 fps without it (225 s) and 14 with it (500 s). With the roads empty, the game felt smoother, and I saw 22-25 fps at moments, but the median did not move. Pedestrians stay:
CLEAR_AREAdoes not touch them with any flag, andGET_PED_NEARBY_PEDSfrom the game-actions update ends the title.AI-assisted (Claude Code).
VERIFY-3009 — Windows nativo: las suites pasan y el control muerde el parseo de coordenadas
(this PR)b41763227= currentmainmain—merge-treeclean,git merge --no-ffcleanRan
Negative control (synthetic):
parse_coordsrequires each of x, y, z to be finite; I dropped those three checks, rebuilt and ran:The test bites on the guard that keeps a NaN out of a teleport — the failure mode there is the camera going to nowhere, which is why it is worth a test.
What the change is: the F4 Sky-Cam teleport and streaming (
warp.rs, 527 lines), vehicle spawn (vehicle_spawn.rs, 411), and the menu entries for both (menus/vehicles.rs, 630) withtree.rs/app.rswiring. Nine new Rust tests, all of them free of the title and the GPU — the parsing, the file writes, the image-size refusals.Note for the next verifier:
cargo test -p leonida --libfails withno library targets found in package leonida— the trainer and the F4 actions live in the binary, so it iscargo test -p leonida.What I could not test
leonida-menu's 52 tests pass, but the entries appearing in the real page were not seen.Written with an AI assistant.
This pull request has a merge conflict with current
main(d9b618f10), so it can't be run in game or merged as it is. Could you merge the latestmaininto it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.AI-assisted (Claude Code).
Rebasadas contra
d9b618f10, con el recuento calculado y no elegidoLas tres chocaban en la misma línea de
d3d12/docs/switches.md, y las tres están resueltas contando el fichero en vez de copiando el número demain(porque las tres añaden filas, o sea que la cabecera cambia):Ramas
pr-3009-rebased,pr-3126-rebasedypr-3140-rebasedempujadas al fork, y las tres con el árbol verificado:Y el detalle que conviene mirar antes de fusionar:
#3009toca 9 ficheros.rscon 1851 líneas y#3126toca 5 con 742 — y las dos dejanleonida-gpuen715, igual quemain. O sea que ninguna de las dos añade un solo test al crate. No es un fallo de ellas (pueden ser cambios de runtime que el juego ejercita), pero es la diferencia con#3225, que trae dos, y con#3306, que trae cinco. Quien fusione debería saber que estas dos se van sin red.Lo que no verifiqué: el comportamiento en el juego, que es donde se ejercitan las dos.
Rebased onto current
main(6e979905, new headcb48bde2) and regeneratedd3d12/docs/switches.mdviapython -I tools/d3d12_switches.py --out d3d12/docs/switches.mdto resolve the conflict (zero code conflicts).Verified on
cb48bde2:python -I scripts/check_no_game_data.py: passpython -I tools/d3d12_switches.py --check d3d12/docs/switches.md: passcargo test -p leonida -p leonida-menu --locked: 53/53leonida+ 52/52leonida-menupassed@fiestorra Thanks for checking the rebase! Just a quick note on tests: this PR's unit tests live in
apps/leonida(warp::tests::*,vehicle_spawn::tests::*) andcrates/leonida-menu(vehicles::tests::*), sinceleonida-gpuisn't modified here.Ready for the in-game gate run @MoonEyes!
AI-assisted (Gemini 3.1 Pro via Antigravity).