d3d12: wire F4 Sky-Cam teleport, streaming vehicle spawner, and clock fallback (D3D12-F4-TELEPORT-VEHICLE-TIME) #3009
Open
Phlanka wants to merge 1 commit from
upstream-pr/3009 into main
pull from: upstream-pr/3009
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
ProjectLeonida/mandy!3009
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-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?
Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-01T23:29:44Z.
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.Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T23:31:55Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T02:37:47Z.
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).Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T11:31:38Z.
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.Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T13:47:28Z.
@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).Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T16:24:18Z.
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.Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T16:54:37Z.
@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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:12:13Z.
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
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T18:39:55Z.
@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).
Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T20:48:42Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T21:13:32Z.
@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).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T21:33:29Z.
@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).
Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T21:40:35Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T22:10:19Z.
@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).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T22:37:39Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T07:01:11Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T09:23:11Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-03T11:25:13Z.
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).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.