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
Phlanka commented 2026-12-01 23:29:44 +00:00 (Migrated from github.com)

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=1 backend (d3d12/apps/leonida/src/game_actions.rs) and leonida-menu's Spawn vehicle page:

  • Sky-Cam teleport (d3d12/apps/leonida/src/warp.rs):
    • To waypoint (teleport.waypoint): reads the active map waypoint from g_WaypointMgr, probes ground Z, and runs StartLongSwitch + CEntity::SetPosition on the title's thread (moves either the player ped or their current vehicle).
    • Save position / Saved position (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.
    • Forward 10 m (teleport.forward): instant 10 m hop along the entity's forward axis via CEntity::SetPosition.
    • To Vice City (teleport.vice): Sky-Cam warps to LEONIDA_VICE_CITY=x,y,z when set, defaulting to (-403.4, 337.3, 9.0).
  • Clean-room streaming vehicle spawner (d3d12/apps/leonida/src/vehicle_spawn.rs & d3d12/crates/leonida-menu/src/vehicles.rs):
    • Zero game names, hashes, or tables in the repository. Works out of the box from the player's own game files:
      1. At startup, vehicles.rs carves the unencrypted zlib XML streams (CVehiclePerformanceMaps and CVehicleDistantLightData) from <game_dir>\common.rpf using zlib-rs (no keys or decryption), bucketing discovered model names A-Z.
      2. Once the player loads into the world on 1.0.2.1, vehicle_spawn::classify_once resolves each discovered model via GetBaseModelInfoFromHashKey (model_key), verifies IsVehicleModel, reads CVehicleModelInfo + 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).
      3. Players can also optionally override the list via an external %LOCALAPPDATA%\Leonida\vehicles.tsv or LEONIDA_VEHICLES_FILE (registered in d3d12/docs/switches.md).
    • Streams models via RequestObject / HaveAssetsLoaded, places vehicles on probed ground in front of the player via RequestVehicle, and supports the Spawn inside toggle.
  • Clock fallback (d3d12/apps/leonida/src/game_actions.rs):
    • Also writes the pattern-scanned Site::ClockTime [hour, minute, second] fields alongside Site::ClockSet (and returns an error if both are absent).
  • Build & safety gating:
    • All 1.0.2.1 RVAs are gated behind warp::supported_build(&game.sites, game.size) (both in menu dispatch and in Game::perform) and bounds-checked against base..base + size, so non-1.0.2.1 builds fall back cleanly.

Tested

  • python -I scripts/check_no_game_data.py on all 10 changed files — passed (0 findings).
  • python -I tests/test_d3d12_switches.py — 20/20 passed (LEONIDA_VEHICLES_FILE registered in d3d12/docs/switches.md).
  • cargo test -p leonida-menu --locked — 52/52 passed (synthetic tests for TSV parsing, zlib common.rpf XML carving, and m_vehicleType grouping).
  • 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).
  • Live in-game verification on Xbox Series 1.0.2.1 with LEONIDA_GAME_ACTIONS=1 and no external vehicles.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_key spawning, ground probing, and Spawn inside originally contributed by @matthieupl87-spec (Claude Code).

Checklist

  • Based on current main (b4176322) and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5596576286 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009). Originally posted by [Phlanka](https://github.com/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=1` backend (`d3d12/apps/leonida/src/game_actions.rs`) and `leonida-menu`'s **Spawn vehicle** page: - **Sky-Cam teleport (`d3d12/apps/leonida/src/warp.rs`):** - **To waypoint** (`teleport.waypoint`): reads the active map waypoint from `g_WaypointMgr`, probes ground Z, and runs `StartLongSwitch` + `CEntity::SetPosition` on the title's thread (moves either the player ped or their current vehicle). - **Save position / Saved position** (`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. - **Forward 10 m** (`teleport.forward`): instant 10 m hop along the entity's forward axis via `CEntity::SetPosition`. - **To Vice City** (`teleport.vice`): Sky-Cam warps to `LEONIDA_VICE_CITY=x,y,z` when set, defaulting to `(-403.4, 337.3, 9.0)`. - **Clean-room streaming vehicle spawner (`d3d12/apps/leonida/src/vehicle_spawn.rs` & `d3d12/crates/leonida-menu/src/vehicles.rs`):** - **Zero game names, hashes, or tables in the repository.** Works out of the box from the player's own game files: 1. At startup, `vehicles.rs` carves the unencrypted zlib XML streams (`CVehiclePerformanceMaps` and `CVehicleDistantLightData`) from `<game_dir>\common.rpf` using `zlib-rs` (no keys or decryption), bucketing discovered model names A-Z. 2. Once the player loads into the world on 1.0.2.1, `vehicle_spawn::classify_once` resolves each discovered model via `GetBaseModelInfoFromHashKey` (`model_key`), verifies `IsVehicleModel`, reads `CVehicleModelInfo + 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). 3. Players can also optionally override the list via an external `%LOCALAPPDATA%\Leonida\vehicles.tsv` or `LEONIDA_VEHICLES_FILE` (registered in `d3d12/docs/switches.md`). - Streams models via `RequestObject` / `HaveAssetsLoaded`, places vehicles on probed ground in front of the player via `RequestVehicle`, and supports the **Spawn inside** toggle. - **Clock fallback (`d3d12/apps/leonida/src/game_actions.rs`):** - Also writes the pattern-scanned `Site::ClockTime` `[hour, minute, second]` fields alongside `Site::ClockSet` (and returns an error if both are absent). - **Build & safety gating:** - All 1.0.2.1 RVAs are gated behind `warp::supported_build(&game.sites, game.size)` (both in menu dispatch and in `Game::perform`) and bounds-checked against `base..base + size`, so non-1.0.2.1 builds fall back cleanly. ### Tested - `python -I scripts/check_no_game_data.py` on all 10 changed files — passed (0 findings). - `python -I tests/test_d3d12_switches.py` — 20/20 passed (`LEONIDA_VEHICLES_FILE` registered in `d3d12/docs/switches.md`). - `cargo test -p leonida-menu --locked` — 52/52 passed (synthetic tests for TSV parsing, zlib `common.rpf` XML carving, and `m_vehicleType` grouping). - `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). - Live in-game verification on Xbox Series 1.0.2.1 with `LEONIDA_GAME_ACTIONS=1` and no external `vehicles.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_key` spawning, ground probing, and `Spawn inside` originally contributed by @matthieupl87-spec (Claude Code). ### Checklist - [x] Based on current `main` (`b4176322`) and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
andrew-ai commented 2026-12-01 23:31:55 +00:00 (Migrated from github.com)

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 b34b08daa with a standalone Rust harness compiled from the PR’s saved-position functions. I used a temporary LOCALAPPDATA directory.

  1. Save (1, 2, 3), then mark saved_position.txt read-only.
  2. Save (4, 5, 6). The underlying write returns PermissionDenied. Reading the position in the same process returns (4, 5, 6).
  3. Restart the harness. Reading the position now returns (1, 2, 3).

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329458375 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7329458375). Originally posted by [andrew-ai](https://github.com/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 `b34b08daa` with a standalone Rust harness compiled from the PR’s saved-position functions. I used a temporary LOCALAPPDATA directory. 1. Save (1, 2, 3), then mark saved_position.txt read-only. 2. Save (4, 5, 6). The underlying write returns PermissionDenied. Reading the position in the same process returns (4, 5, 6). 3. Restart the harness. Reading the position now returns (1, 2, 3). 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.
Phlanka commented 2026-12-02 02:37:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T02:37:47Z.


Good catch @andrew-ai — fixed! warp::save_position now returns Result<(), String> instead of discarding the disk write error, and game_actions.rs reports Saved (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/102 tests passing).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7333034207 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7333034207). Originally posted by [Phlanka](https://github.com/Phlanka) on 2026-12-02T02:37:47Z. --- Good catch @andrew-ai — fixed! `warp::save_position` now returns `Result<(), String>` instead of discarding the disk write error, and `game_actions.rs` reports `Saved (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/102` tests passing).
matthieupl87-spec commented 2026-12-02 11:31:38 +00:00 (Migrated from github.com)

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 own model_key (MurmurHash3 of the lower-cased name, low 64 bits).

With only the spawn.selected arm changed, and SpawnPreset/vehicle_spawn::start taking a u64, your streaming spawner works:

let Some((label, _)) = crate::vehicle_spawn::model_at(idx) else { return Some(Err("No such vehicle model.".into())); };
asked(Request::SpawnPreset { label, hash: model_key(label) }, format!("Spawning {label} on the ground in front of the player."))

From the run: spawn: streaming banshee, then spawned 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 your 29bcd2471. 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7344042230 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7344042230). Originally posted by [matthieupl87-spec](https://github.com/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 own `model_key` (MurmurHash3 of the lower-cased name, low 64 bits). With only the `spawn.selected` arm changed, and `SpawnPreset`/`vehicle_spawn::start` taking a `u64`, your streaming spawner works: ```rust let Some((label, _)) = crate::vehicle_spawn::model_at(idx) else { return Some(Err("No such vehicle model.".into())); }; asked(Request::SpawnPreset { label, hash: model_key(label) }, format!("Spawning {label} on the ground in front of the player.")) ``` From the run: `spawn: streaming banshee`, then `spawned 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`](https://github.com/matthieupl87-spec/mandy/tree/f4-vehicle-models), the last two commits on top of your `29bcd2471`. 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.
matthieupl87-spec commented 2026-12-02 13:47:28 +00:00 (Migrated from github.com)

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:

git fetch https://github.com/matthieupl87-spec/mandy.git f4-vehicle-models-for-3009
git cherry-pick 623779c2a

What it does:

  • Spawn selected works on 1.0.2.1: it passes model_key(label), and SpawnPreset / vehicle_spawn::start take the u64 key.
  • All 315 vehicle models of 1.0.2.1 are listed by group and category under Spawn vehicle, each with a Model picker and Spawn. The names come from nativedb (CC BY 4.0) and are names only, no game data.
  • The vehicle is set on the ground: your streaming spawn takes its height from warp::ground_z when the ground is near the player's height.
  • Fallback: if the streaming path cannot resolve a model, the title's own spawn is used.

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_VEHICLE returns 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.py passes.

This replaces my earlier branch f4-vehicle-models. Take any or all of it. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347464156 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7347464156). Originally posted by [matthieupl87-spec](https://github.com/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: ``` git fetch https://github.com/matthieupl87-spec/mandy.git f4-vehicle-models-for-3009 git cherry-pick 623779c2a ``` What it does: - **Spawn selected works on 1.0.2.1:** it passes `model_key(label)`, and `SpawnPreset` / `vehicle_spawn::start` take the u64 key. - **All 315 vehicle models of 1.0.2.1** are listed by group and category under Spawn vehicle, each with a Model picker and Spawn. The names come from nativedb (CC BY 4.0) and are names only, no game data. - **The vehicle is set on the ground:** your streaming spawn takes its height from `warp::ground_z` when the ground is near the player's height. - **Fallback:** if the streaming path cannot resolve a model, the title's own spawn is used. **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_VEHICLE` returns 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.py` passes. This replaces my earlier branch `f4-vehicle-models`. Take any or all of it. AI-assisted (Claude Code).
Phlanka commented 2026-12-02 16:24:18 +00:00 (Migrated from github.com)

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 9b04c595 with your authorship and Co-Authored-By attribution, and verified leonida-menu (49 passed), game_actions/vehicle (13 passed), and check_no_game_data.py.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351894703 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7351894703). Originally posted by [Phlanka](https://github.com/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 `9b04c595` with your authorship and `Co-Authored-By` attribution, and verified `leonida-menu` (49 passed), `game_actions`/`vehicle` (13 passed), and `check_no_game_data.py`.
matthieupl87-spec commented 2026-12-02 16:54:37 +00:00 (Migrated from github.com)

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7352631166 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7352631166). Originally posted by [matthieupl87-spec](https://github.com/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).
MoonEyes commented 2026-12-02 18:12:13 +00:00 (Migrated from github.com)

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.

Head 9b04c5955a (2 December 13:47 UTC)
Merge with main 45dc41f95c clean (git merge-tree); merge base 913b88b905, 313 commits behind
Switches registry on the merge exit 0 (LEONIDA_VICE_CITY is already on the page)
Size 7 files, +1,513 / -14; 8 new #[test]s
Evidence andrew-ai (found the "Save position reports success on a failed write" bug, fixed in 29bcd247), 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 of 9b04c595

Review

  • 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 behind supported_build and an in_image bounds check, and every entry point also checks size < MIN_IMAGE_SIZE. Another build falls back with a message instead of jumping into the wrong code. Good.
  • save_position now returns Result<(), String> and the menu shows the error, which closes andrew-ai's finding.
  • The saved position goes to %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.md forbids "extracted tables" and allows "small interoperability constants". The names come from a third-party community database, not from this repository's own extraction, and main already spawns by model_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, which model_key already 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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354114685 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7354114685). Originally posted by [MoonEyes](https://github.com/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.** | | | |---|---| | Head | `9b04c5955a` (2 December 13:47 UTC) | | Merge with `main` `45dc41f95c` | clean (`git merge-tree`); merge base `913b88b905`, 313 commits behind | | Switches registry on the merge | exit 0 (`LEONIDA_VICE_CITY` is already on the page) | | Size | 7 files, +1,513 / -14; 8 new `#[test]`s | | Evidence | andrew-ai (found the "Save position reports success on a failed write" bug, fixed in `29bcd247`), 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 of `9b04c595` | **Review** - `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 behind `supported_build` and an `in_image` bounds check, and every entry point also checks `size < MIN_IMAGE_SIZE`. Another build falls back with a message instead of jumping into the wrong code. Good. - `save_position` now returns `Result<(), String>` and the menu shows the error, which closes andrew-ai's finding. - The saved position goes to `%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.md` forbids "extracted tables" and allows "small interoperability constants". The names come from a third-party community database, not from this repository's own extraction, and `main` already spawns by `model_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, which `model_key` already 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](https://claude.ai/code)_
matthieupl87-spec commented 2026-12-02 18:39:55 +00:00 (Migrated from github.com)

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 (commit 623779c2a, taken into #3009 as 9b04c595). 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_key that main already has. Just say which way you prefer.

The Gemini model version is Phlanka's to answer, not mine.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354960346 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7354960346). Originally posted by [matthieupl87-spec](https://github.com/matthieupl87-spec) on 2026-12-02T18:39:55Z. --- @MoonEyes thanks for the review. About `vehicles.rs`: I wrote that file (commit `623779c2a`, taken into #3009 as `9b04c595`). 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_key` that `main` already has. Just say which way you prefer. The Gemini model version is Phlanka's to answer, not mine. AI-assisted (Claude Code).
Phlanka commented 2026-12-02 20:48:42 +00:00 (Migrated from github.com)

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:

  • 100% clean-room out-of-the-box discovery (d3d12/crates/leonida-menu/src/vehicles.rs, d3d12/apps/leonida/src/vehicle_spawn.rs):
    • At startup, Leonida carves the unencrypted zlib XML streams (CVehiclePerformanceMaps and CVehicleDistantLightData) from the player's own <game_dir>\common.rpf using zlib-rs (no keys or decryption, zero vehicle names in the repository).
    • Once in the world on 1.0.2.1, classify_once resolves each discovered model via model_key + GetBaseModelInfoFromHashKey / IsVehicleModel, reads CVehicleModelInfo + 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).
    • Optional external TSV override is also supported via %LOCALAPPDATA%\Leonida\vehicles.tsv or LEONIDA_VEHICLES_FILE (registered in d3d12/docs/switches.md; tests/test_d3d12_switches.py 20/20 passed).
  • AI disclosure: Updated the PR description with the exact model versions used for authoring and for the independent read-only reviewer subagent, plus the GPU driver version (621.24).
  • Verification: 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 external vehicles.tsv).

AI-assisted: Gemini 3.1 Pro (Antigravity); separate read-only reviewer subagent: Gemini 3.1 Pro.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7358354671 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7358354671). Originally posted by [Phlanka](https://github.com/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: - **100% clean-room out-of-the-box discovery (`d3d12/crates/leonida-menu/src/vehicles.rs`, `d3d12/apps/leonida/src/vehicle_spawn.rs`):** - At startup, Leonida carves the unencrypted zlib XML streams (`CVehiclePerformanceMaps` and `CVehicleDistantLightData`) from the player's own `<game_dir>\common.rpf` using `zlib-rs` (no keys or decryption, zero vehicle names in the repository). - Once in the world on 1.0.2.1, `classify_once` resolves each discovered model via `model_key` + `GetBaseModelInfoFromHashKey` / `IsVehicleModel`, reads `CVehicleModelInfo + 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). - Optional external TSV override is also supported via `%LOCALAPPDATA%\Leonida\vehicles.tsv` or `LEONIDA_VEHICLES_FILE` (registered in `d3d12/docs/switches.md`; `tests/test_d3d12_switches.py` 20/20 passed). - **AI disclosure:** Updated the PR description with the exact model versions used for authoring and for the independent read-only reviewer subagent, plus the GPU driver version (`621.24`). - **Verification:** `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 external `vehicles.tsv`). AI-assisted: Gemini 3.1 Pro (Antigravity); separate read-only reviewer subagent: Gemini 3.1 Pro.
matthieupl87-spec commented 2026-12-02 21:13:32 +00:00 (Migrated from github.com)

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.rpf at start is a cleaner answer to the clean-room question than my list.

I have not tried the new head 3ce9f87d6 in 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7358973472 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7358973472). Originally posted by [matthieupl87-spec](https://github.com/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.rpf` at start is a cleaner answer to the clean-room question than my list. I have not tried the new head `3ce9f87d6` in 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).
matthieupl87-spec commented 2026-12-02 21:33:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-02T21:33:29Z.


@Phlanka tested your head 3ce9f87d6 in game, as promised.

  • Build: the PR head as it is (already on main b4176322), plus one local commit outside this PR, in run.rs, unrelated (LEONIDA_PATCH, so my story saves load). Diag build, DLSS, LEONIDA_GAME_ACTIONS=1.
  • Rig: 1.0.2.1, RTX 5070 Ti 16 GB, Windows 11 Pro, Ryzen 5 5600X, 32 GB.
  • Discovery: worked with no vehicles.tsv: the log says vehicles: classified 326 models into 5 groups at update 15.
  • Spawn vehicle: spawned a car (elegy), a bicycle (bmx) and a helicopter (buzzard) from the new groups. Each one appeared on the ground next to the player.
  • Run: 519 s in the world, 0 device lost, 0 panics, ended normally when I closed the window. Rendered fps median 13 (p10 5, p90 16), 36 s under 3 fps.

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359449116 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7359449116). Originally posted by [matthieupl87-spec](https://github.com/matthieupl87-spec) on 2026-12-02T21:33:29Z. --- @Phlanka tested your head `3ce9f87d6` in game, as promised. - **Build:** the PR head as it is (already on `main` `b4176322`), plus one local commit outside this PR, in `run.rs`, unrelated (`LEONIDA_PATCH`, so my story saves load). Diag build, DLSS, `LEONIDA_GAME_ACTIONS=1`. - **Rig:** 1.0.2.1, RTX 5070 Ti 16 GB, Windows 11 Pro, Ryzen 5 5600X, 32 GB. - **Discovery:** worked with no `vehicles.tsv`: the log says `vehicles: classified 326 models into 5 groups` at update 15. - **Spawn vehicle:** spawned a car (`elegy`), a bicycle (`bmx`) and a helicopter (`buzzard`) from the new groups. Each one appeared on the ground next to the player. - **Run:** 519 s in the world, 0 device lost, 0 panics, ended normally when I closed the window. Rendered fps median 13 (p10 5, p90 16), 36 s under 3 fps. 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).
Phlanka commented 2026-12-02 21:40:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-02T21:40:35Z.


Thanks @matthieupl87-spec for testing 3ce9f87d6 on your RTX 5070 Ti and confirming the 326-model discovery and spawns work out of the box with no vehicles.tsv!

On the finer car-class split: we inspected CVehicleModelInfo and found m_vehicleType at +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 a m_vehicleClass field 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359619924 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7359619924). Originally posted by [Phlanka](https://github.com/Phlanka) on 2026-12-02T21:40:35Z. --- Thanks @matthieupl87-spec for testing `3ce9f87d6` on your RTX 5070 Ti and confirming the 326-model discovery and spawns work out of the box with no `vehicles.tsv`! On the finer car-class split: we inspected `CVehicleModelInfo` and found `m_vehicleType` at `+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 a `m_vehicleClass` field 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).
matthieupl87-spec commented 2026-12-02 22:10:19 +00:00 (Migrated from github.com)

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 flag 0xffff, 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_ENTITY on 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_AREA does not touch them with any flag, and GET_PED_NEARBY_PEDS from the game-actions update ends the title.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360322933 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7360322933). Originally posted by [matthieupl87-spec](https://github.com/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 flag `0xffff`, 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_ENTITY` on 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_AREA` does not touch them with any flag, and `GET_PED_NEARBY_PEDS` from the game-actions update ends the title. AI-assisted (Claude Code).
fiestorra commented 2026-12-02 22:37:39 +00:00 (Migrated from github.com)

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

Head (this PR)
Merge base b41763227 = current main
Merged onto main — merge-tree clean, git merge --no-ff clean

Ran

cargo test -p leonida-menu     52 passed; 0 failed
cargo test -p leonida          48 + 2 + 1 passed across its targets (the app is a binary: no --lib)
  warp::tests::parses_valid_and_invalid_coords ... ok
  warp::tests::rejects_non_finite_inputs_and_small_images ... ok
  warp::tests::save_and_load_position_uses_isolated_temp_file ... ok
  warp::tests::save_position_to_reports_write_failure_on_readonly_file ... ok
  vehicle_spawn::tests::rejects_small_image_size ... ok

Negative control (synthetic): parse_coords requires each of x, y, z to be finite; I dropped those three checks, rebuilt and ran:

FAILED: warp::tests::parses_valid_and_invalid_coords      assertion `left == right` failed

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) with tree.rs/app.rs wiring. 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 --lib fails with no library targets found in package leonida — the trainer and the F4 actions live in the binary, so it is cargo test -p leonida.

What I could not test

  • The teleport itself: a camera move to coordinates in the world, and the streaming that follows it, is a run.
  • The F4 page: leonida-menu's 52 tests pass, but the entries appearing in the real page were not seen.
  • The vehicle list: the spawn reads a names/ids table; that the ids match the title's vehicles is not something a unit test here can say.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360947483 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7360947483). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T22:37:39Z. --- ## VERIFY-3009 — Windows nativo: las suites pasan y el control muerde el parseo de coordenadas | | | |---|---| | Head | `(this PR)` | | Merge base | `b41763227` = current `main` | | Merged onto | `main` — `merge-tree` clean, `git merge --no-ff` clean | **Ran** ``` cargo test -p leonida-menu 52 passed; 0 failed cargo test -p leonida 48 + 2 + 1 passed across its targets (the app is a binary: no --lib) warp::tests::parses_valid_and_invalid_coords ... ok warp::tests::rejects_non_finite_inputs_and_small_images ... ok warp::tests::save_and_load_position_uses_isolated_temp_file ... ok warp::tests::save_position_to_reports_write_failure_on_readonly_file ... ok vehicle_spawn::tests::rejects_small_image_size ... ok ``` **Negative control (synthetic)**: `parse_coords` requires each of x, y, z to be finite; I dropped those three checks, rebuilt and ran: ``` FAILED: warp::tests::parses_valid_and_invalid_coords assertion `left == right` failed ``` **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) with `tree.rs`/`app.rs` wiring. **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 --lib` fails with `no library targets found in package leonida` — the trainer and the F4 actions live in the **binary**, so it is `cargo test -p leonida`. ## What I could not test - **The teleport itself**: a camera move to coordinates in the world, and the streaming that follows it, is a run. - **The F4 page**: `leonida-menu`'s 52 tests pass, but the entries appearing in the real page were not seen. - **The vehicle list**: the spawn reads a names/ids table; that the ids match the title's vehicles is not something a unit test here can say. Written with an AI assistant.
MoonEyes commented 2026-12-03 07:01:11 +00:00 (Migrated from github.com)

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 latest main into 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370498953 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7370498953). Originally posted by [MoonEyes](https://github.com/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 latest `main` into 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).
fiestorra commented 2026-12-03 09:23:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T09:23:11Z.


Rebasadas contra d9b618f10, con el recuento calculado y no elegido

Las 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 de main (porque las tres añaden filas, o sea que la cabecera cambia):

                          main 684 filas / 644 con frase
#3009  456ce6ffe   10 files, +1851/−27   →  685 / 645   9 ficheros .rs
#3126  18f13e91f    7 files,  +742/−6     →  685 / 645   5 ficheros .rs
#3140  e4ded1552    2 files,   +38/−3     →  684 / 644   0 ficheros .rs

Ramas pr-3009-rebased, pr-3126-rebased y pr-3140-rebased empujadas al fork, y las tres con el árbol verificado:

marcadores de conflicto en el commit     0 en las tres
pytest tests/test_d3d12_switches.py      20 passed en las tres
cargo test -p leonida-gpu --lib          #3009 y #3126: 715 passed; 1 failed
                                         (el 1 es views_are_made_beside…, la iGPU)

Y el detalle que conviene mirar antes de fusionar: #3009 toca 9 ficheros .rs con 1851 líneas y #3126 toca 5 con 742 — y las dos dejan leonida-gpu en 715, igual que main. 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7373583041 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7373583041). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T09:23:11Z. --- ## Rebasadas contra `d9b618f10`, con el recuento **calculado** y no elegido **Las 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 de `main`** (**porque las tres añaden filas, o sea que la cabecera cambia**): ``` main 684 filas / 644 con frase #3009 456ce6ffe 10 files, +1851/−27 → 685 / 645 9 ficheros .rs #3126 18f13e91f 7 files, +742/−6 → 685 / 645 5 ficheros .rs #3140 e4ded1552 2 files, +38/−3 → 684 / 644 0 ficheros .rs ``` **Ramas `pr-3009-rebased`, `pr-3126-rebased` y `pr-3140-rebased` empujadas al fork**, **y las tres con el árbol verificado**: ``` marcadores de conflicto en el commit 0 en las tres pytest tests/test_d3d12_switches.py 20 passed en las tres cargo test -p leonida-gpu --lib #3009 y #3126: 715 passed; 1 failed (el 1 es views_are_made_beside…, la iGPU) ``` **Y el detalle que conviene mirar antes de fusionar**: **`#3009` toca 9 ficheros `.rs` con 1851 líneas y `#3126` toca 5 con 742 — y las dos dejan `leonida-gpu` en `715`, igual que `main`.** **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.**
Phlanka commented 2026-12-03 11:25:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Phlanka on 2026-12-03T11:25:13Z.


Rebased onto current main (6e979905, new head cb48bde2) and regenerated d3d12/docs/switches.md via python -I tools/d3d12_switches.py --out d3d12/docs/switches.md to resolve the conflict (zero code conflicts).

Verified on cb48bde2:

  • python -I scripts/check_no_game_data.py: pass
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: pass
  • cargo test -p leonida -p leonida-menu --locked: 53/53 leonida + 52/52 leonida-menu passed

@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::*) and crates/leonida-menu (vehicles::tests::*), since leonida-gpu isn't modified here.

Ready for the in-game gate run @MoonEyes!

AI-assisted (Gemini 3.1 Pro via Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7376674605 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3009#issuecomment-7376674605). Originally posted by [Phlanka](https://github.com/Phlanka) on 2026-12-03T11:25:13Z. --- Rebased onto current `main` (`6e979905`, new head `cb48bde2`) and regenerated `d3d12/docs/switches.md` via `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md` to resolve the conflict (zero code conflicts). Verified on `cb48bde2`: - `python -I scripts/check_no_game_data.py`: pass - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`: pass - `cargo test -p leonida -p leonida-menu --locked`: 53/53 `leonida` + 52/52 `leonida-menu` passed @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::*`) and `crates/leonida-menu` (`vehicles::tests::*`), since `leonida-gpu` isn't modified here. Ready for the in-game gate run @MoonEyes! AI-assisted (Gemini 3.1 Pro via Antigravity).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3009:upstream-pr/3009'
git switch 'upstream-pr/3009'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3009'
git switch 'upstream-pr/3009'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3009'
git switch 'upstream-pr/3009'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3009'
git switch 'main'
git merge --squash 'upstream-pr/3009'
git switch 'main'
git merge --ff-only 'upstream-pr/3009'
git switch 'main'
git merge 'upstream-pr/3009'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
No description provided.