- separate the 22.2 GB run that drew the city night street from the
22.3 GB default-arena run, as the reports do;
- say the 1.7 GB journal was warm from three earlier runs, not filled by
these runs;
- replace the unsourced scene names and the submissions-per-frame count
with the reports' words, and give the 47 s STRAY_RO_HEAL observation
its provenance;
- say that 724 is the maintainers' count and 723 is this pack's, that
the skip list takes name fragments and is the ray-tracing programs;
- give the full run_game_wine.sh invocation and name the local trace-off
change;
- index the profile in docs/README.md and point linux_proton.md at it.
AI-assisted.
Testers ran in-game gates and A/Bs by hand on five machines, each with
their own launcher wrapper and log parsers, and lost runs to consoles and
key files. scripts/game-gate.ps1 runs leonida.exe through the checkout's
play-d3d12.ps1 and writes one folder per run: run.json, launch.ps1, the
-DryRun settings, the F1 settings file, the launcher's output (the
precompile lines nobody kept), the runtime's log, events.jsonl and a copy
of the tester's data template (their own saves are never touched). It
stops the game with WM_SYSCOMMAND/SC_CLOSE (the runtime's own end: suspend,
pipeline cache saved) once -WorldSeconds were spent in the world, on a
STOP file or after -MaxMinutes, and kills it only 60 s later; it keeps the
game's exit code. `start` runs the same detached (created through CIM, so
an agent's or console's end does not end it); `stop` asks a run to end.
tools/game_gate.py (standard library) reads the folder into
summary.json (leonida-gate-summary/1): build, card, settings (the run's
settings line, no paths), precompile counts, time to the world (two frame
lines with 500 draws or more, cutscenes included), when the pipeline
cache went warm (60 s with nothing being made), fps from the presents
(median, p5, frame p95, end median, the first second under 2 frames, the
longest gap with no frame), crashes by kind (device lost, panic, fault by
module kind), exit, stop and a verdict: PASS needs 300 s in the world,
no device loss, panic or fault, no gap over 10 s, alive at the stop. The
testers' answers to a draft on the bridge are folded in. Its tests use
synthetic logs and check that the runtime still writes what it reads.
d3d12/docs/findings.md was reachable from d3d12/README.md alone, so a night of
runs repeated measurements it already holds. Index it, point AGENTS.md at it,
say how to measure (a switch by turns inside one run), and list the variables
the runtime names from its own sources: 415 of 669 were in no Markdown file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/pc_prompt_glyphs.py draws its own key caps, arrow keys and mouse in
code when --glyphs is not given (no pictures, Pillow or font), with the keys
of the runtime's on-foot table, each inside the outline of the Xbox glyph it
replaces and covering no more of the canvas (measured on the user's movie,
numbers only). tools/prompt_glyph_movies.py builds pc_ and ps_prompt_glyphs.gfx
over the title's movie (standalone if data.rpf cannot be read) into
d3d12/target, where leonida.exe looks; play-nvidia.ps1 runs it before a start
and make_game.py in its runtime stage. A movie the player made is never
touched or shadowed; its own are stamped and rebuilt only when inputs change.
Measured 2026-11-29 by HTTP against the public docs.xbox.com index and
Microsoft Learn; page contents not read, nothing copied from the GDK.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
port_status, port_plan, victory_gap_gpu, victory_gap_system, launcher, mod-menu, lua-modding, ultrawide, test_inventory, junit_triage and change_gate had no row in the index. Each row summarizes the page's own opening.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One page for contributors: what the public GDK reference and headers cover for the imported console APIs, what they do not (d3d12_xs, NDA), the 4-step method on the existing shims and tests, and the lines not to cross. Indexed in docs/README.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BL-2 (#913), BL-5 (#882) and BL-6 (#891) are merged, but the page still
listed them as open hypotheses, and it did not point at the open pull
requests for BL-3 (#1050) and BL-4 (#1166). Add a status table at the top
and a Status line per lead: the merged commit, where the result is
recorded, and what is still open (the Wine/Proton reproduction for BL-2,
the geometry-shader payload choice for BL-5, retail numbers for BL-6).
The leads' implementation notes stay as they were. docs/README.md's entry
names the status table instead of "hypotheses, not measurements".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3jaqKsiawUYYVBKWHmGr8
prompt_glyphs.md: the glyph movie's ActionScript is a symbol library with no
logic; the name is built, and a new sprite made at every prompt set-up, by a
class three larger movies carry, which loads the movie once and has a per-prompt
device suffix nothing on this build sets. The keyboard-and-mouse replacement and
its measured size and differences; the runtime's choice by family; and what is
certain and what is a guess about following a device switch during play.
gameinput.md: the start family from what is connected, and the switch guard as
it behaves.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The glyphs are the vector sprites of the input-icon GFX movie in data.rpf (docs/prompt_glyphs.md), not
textures. The tool reads that zlib stream read-only (nothing is decrypted, the table of contents is not
used), rasterises every export (solid fills by the even-odd rule, strokes with round caps and joins,
PlaceObject2 placements) and writes one PNG per export, a contact sheet and a listing. It refuses an
output folder inside the repository, and stops with an error on anything it does not draw (gradient or
bitmap fills, colour transforms, clip layers, nested sprites). Standard library only.
docs/prompt_glyphs.md: the fills, strokes and placements counted over all 131 shapes, and the command.
Tests build their movies by hand (no game data): tests/test_xbox_prompt_glyphs.py, 18 tests.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ZiZc3's VI-Patch (github.com/ZiZc3/VI-Patch) is a patch set for the PS5 build of the title. It has no licence,
so nothing of it is copied: its lines are new bytes at PS5 addresses. What each patch does is taken, the places
were found in the Xbox executable, and the bytes written are our own (docs/vi_patch.md).
- 60 fps, no switch: the two places that turn the video settings' frame limit into the frame interval load 60
(RVA 0x224359a, 0x1e0fc62 in 1.0.2.1), so the title asks SetFrameIntervalX for 16 667 microseconds in place
of 33 333 and its own limiter follows.
- No vignette, LEONIDA_VIPATCH_NO_VIGNETTE=1: the jumps over the spotmeter_aiming and spotmeter_fast exposure
profiles are made unconditional (RVA 0x496ab6, 0x496b51).
- Skip intro logos, weather fix, first person, no clothing, Mandy replaces Lucia, no depth of field: not found
or not ported, each with its reason in the doc.
A place is a pattern of its bytes (?? for displacements), taken at the offset known for 1.0.2.1 or found by a
search of the image's code that must find it once; a patch is written only if all its places are found
(vipatch.rs, hooks::game_patches). Unit tests for the search, the plan, the table and the write into a made-up
image; with LEONIDA_GAME_DIR set the same run finds each pattern once in the retail executable.
Not run in the game.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
From a PNG or PPM frame on the user's disk, numbers only: luma statistics,
the dark share of a 4x4 grid of regions, a lattice detector (tile, period,
phase, diagonal, corner), a block-grid detector (block size and share of
blocks cut off), a per-8x8 diff against a second frame and a defect class.
LATTICE, BLACK-NEAR, BLOCKS, FLASH and OK are measured; CHAR-BLACK,
CHAR-MISSING, 2D-MISSING, STRAY-GEO and SMEAR need scene knowledge and are
only given by a human (--class, with --region for numbers). Standard
library: PNG read with zlib and struct (8-bit grey/RGB/RGBA, not
interlaced, five filters), binary PPM/PGM; the rest is refused. No pixels
or paths in the output; no file written.
docs/agent_collaboration.md gets the PICTURE block next to RUN, with an
example from a synthetic frame; the docs index line names it.
Tests: tests/test_picture_metrics.py draws synthetic frames and checks the
drawn parameters come back (20 tests).
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What: mods/example_lua (mod.json disabled by default, main.lua: a frame-rate and
time line in the lower left, a page in the F4 menu with a toggle, a number and two
actions, an F9 key handler); docs/lua-modding.md (the API reference, the sandbox
rules, what is not available and why, what was not tried), pointers in
docs/README.md, docs/mod-menu.md, docs/modding.md and a row in d3d12/README.md.
tools/leonida_mods.py reads "script": it must be a .lua path inside the folder, the
list shows `Lua main.lua`, the JSON report has "script", and a Lua mod no longer
warns that it has no archetype_swaps.
Why: a Lua mod is mods\<name>\mod.json plus a script, so the manager that lists the
asset mods should list these too, and a mod author needs the reference.
How checked: python -I tests/test_leonida_mods.py (13 tests, 3 new, pass; the one
failure, test_run_print_builds_gta6rt_command, fails the same on the base: no gta6rt
build here). The example's script was not run in the title. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Launcher.bat (Windows) or python3 tools/leonida_launcher.py opens a dark launcher with a navigation column, a hero area
with a PLAY button, a status line and pages: Play (runs scripts/play-d3d12.ps1 or scripts/play-linux.sh, output in a
log box, state line, Stop with confirmation ending the process tree, never two runs at once), Settings (game folder
with a check for game_scarlett_master.exe, data folder, the switches read from play-d3d12.ps1), Mods (mods/*/mod.json
enabled flags written via leonida_mods), Tools (DLSS fetch after a confirmation, runtime rebuild, logs and screenshots
folders) and About. Settings live in %APPDATA%\Leonida\launcher.json (~/.config/leonida on Linux). Its own design and
wording, no game assets; the hero picture is the newest screenshot found at run time, else a gradient. The pure parts
have no Tkinter and are tested in tests/test_leonida_launcher.py.
Checked: python -I tests/test_leonida_launcher.py (13 tests), python -m compileall -q tools,
scripts/check_no_game_data.py. The window itself was not opened or clicked through. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/mod-menu.md, from ce5b53e8e (leonida/mod-menu), made true for the main
line after the renderer merge (00698e1e8): the three overlays and their keys
(F1 settings, F3 panel, F4 trainer) and how they share the keyboard and the
corner; host/trainer.rs in place of host/menu.rs; where the menu is drawn
at present and what that means with frame generation; the one atomic load a
present pays while it is closed; LEONIDA_MENU_OPEN=1 for a test without the
keyboard; the items that now drive the renderer's own settings (DLSS
sharpness in place of LEONIDA_SHARPEN, upstream's LEONIDA_FPS_CAP in place
of a second cap) and the ones that use capture.rs (screenshots, the rec
file); the tests as they are now. It says at the top that the menu has not
been tried in the running title yet. The licence findings and the search
for the script natives (counts only, no game bytes) are as they were.
d3d12/README.md: a row for the menu. docs/README.md: its row in the index.
Checked: python -I tests/test_docs_links.py, test_docs_table_rows.py,
test_docs_encoding.py, test_docs_list_items.py, test_docs_repeated_lines.py
(OK). test_docs_cli_flags.py, test_docs_env_vars.py, test_docs_python_deps.py
and test_docs_repo_paths.py fail on the main line already, on other files;
none of their failures names this document or a variable it describes.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
One page, docs/agent_collaboration.md, linked from AGENTS.md and the docs
index: GitHub as the shared memory of the agents, five machine profiles and
the work each is best placed for, three blocks with fixed fields (AGENT-MSG,
RUN, TEST-WANTED), evidence tags and what an unattended agent may do.
Adds to CONTRIBUTING.md and AGENTS.md; no existing rule changes.
AI-assisted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- LEONIDA_ASPECT (21:9, 32:9, 43:18, any W:H or ratio from 1 to 4, or auto) widens the display mode
the runtime reports to the title, at the same height, and widens the title's window.
- LEONIDA_PRESENT_SCALE=fit|stretch: fit keeps the frame's shape, centred with black bars. It is
the default when LEONIDA_ASPECT is set; stretch, the old behaviour, is the default otherwise.
- The aspect math is in src/aspect_fit.h, with aspect_fit_test.
- docs/ultrawide.md describes how resolution flows from window to title to present, and what
needs the game running: whether the title renders wider at all, its FOV and its HUD.
- play.ps1 gets -Aspect and -PresentScale.
Built; aspect_fit_test passes. The bars have not been checked on screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One section per platform and GPU (Linux/Wine with the RX 7900 XTX and
with the RDNA2 iGPU, Linux/Proton with NVIDIA, Windows with NVIDIA and
with AMD, Intel, macOS), each with the same fields: build, shaders,
pipeline pre-compile, driver and OS settings, environment with a reason
per setting, command, what to expect and known problems. Every value is
marked as measured by us, reported by others (linked) or TBD. The title
watchdog's KICK values are measured by each person and never committed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/victory_gap_system.md lists what VIctory serves in the system
modules and the loader against what Leonida did, and marks each gap
ported on this branch or left with the reason. runtime_imports.md no
longer says ws2_32.dll is bound to the host, and host_cpu.h points at
the new console instruction emulation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every export and method of VIctory's apu, audio, dsp, media, speech and
gameinput modules against Leonida, marked same, ported or left with the
reason, plus what to install for the SDL3 GameInput shim.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in runtime/shims/d3d12_xs_device.cpp, proxy_copy_descriptors_simple:
keep this branch's copy_null_rtv_marks call and main's fsdraw::enabled()
gate for the descriptor-copy diagnostic.
tools/rdna2spirv.py merged without a textual conflict, but #1662 on main
calls restore_dot4_inline_sel in the exact re-anchoring path, which this
branch had deleted. The merge puts main's function back so that call
resolves; the next commits reconcile it with the dot4 op_sel rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The legal-terms page keeps Confirm greyed out until both boxes are ticked, and
down stops at Confirm, so an a/down-only script sits there. Record the page
order, what each page needs and the retry block that reached the loading
screen on native Windows; one README status sentence links it.
A build without SDL3 answered GameInputCreate with no devices and E_NOTIMPL
for every other slot, so the title waited at its first "press A" prompt
forever: no CI artifact or offline build could get past it.
With LEONIDA_INPUT_SCRIPT set, gameinput_no_sdl.cpp now serves one scripted
pad (an Xbox One gamepad) driven by the script alone: device enumeration
through RegisterDeviceCallback (blocking, async, dispatcher), FindDeviceFromId,
and GetCurrentReading/GetNextReading/GetPreviousReading whose gamepad and UI
navigation state follow the script. Readings are taken when the title asks,
so no thread polls. Without the variable it behaves as before.
The parser, the 300 ms timeline, the button names, the press log lines and
the UI navigation mapping move from gameinput.cpp into gameinput_script.h,
which both shims use; nothing in it needs SDL. gameinput.cpp checks the
shared SDL button numbers against SDL_GamepadButton at compile time.
gameinput_no_sdl_test --input-script (CTest gameinput_no_sdl_script) checks
the scripted pad on a fake clock. Docs: runtime/README.md, docs/gameinput.md,
docs/linux_proton.md, docs/README.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>