Skip to content

feat: portable run and measure scripts, TODO.md and CLAUDE.md - #18

Merged
orkan1k merged 3 commits into
ProjectLeonidaL:mainfrom
ShinniUwU:pr/leonida-legacy
Nov 25, 2026
Merged

orkan1k merged 3 commits into
ProjectLeonidaL:mainfrom
ShinniUwU:pr/leonida-legacy

Conversation

@ShinniUwU

@ShinniUwU ShinniUwU commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #17, which was merged before these commits got pushed. Three commits:

1. run-gta6.ps1 works for anyone

The script no longer has a game path hardcoded in it:

  • The first time, it asks for the folder of your copy of the game. It only accepts a folder that has MicrosoftGame.config in it.
  • It then asks whether to remember that folder. If you answer yes, the folder is saved to leonida.toml (git-ignored), and the next run doesn't ask again. If the saved folder is later moved or deleted, the script asks again.
  • -GameDir <folder> uses a folder for that one run and saves nothing.
  • It still turns on the same frame-rate switches as before (they are off by default in the code).

To support this, leonida config gets a --game-dir <folder> option. It saves the folder through the same check the first-run prompt in leonida run uses (the manifest has to be there, and the folder has to be outside the repository).

2. measure-gta6.ps1 works for anyone

Same change for the measuring script: no hardcoded path, it asks for the game folder and offers to remember it, and -GameDir works the same way. It keeps the diagnostics build, the frame log, the card meter switches and the log file in %LOCALAPPDATA%\leonida\logs. It was not in the repository before; now it is.

The README mentions both scripts under Getting started.

3. TODO.md and CLAUDE.md

  • TODO.md is the work list, aimed at a console-like experience (a steady 30 fps, the console's picture, no stutter). Every item has a fixed ID (R-1, P-3, ...) and a Needs column (game, GPU, or nothing). To avoid merge conflicts: claim an item by opening a draft pull request with its ID in the title, the pull request that finishes an item deletes only that row, and new items go at the end of their section with the next free ID. The items come from the README, docs/fork-notes.md, the clippy output and the upstream VIctory commit list.
  • CLAUDE.md is the guide for coding agents: the goal, the hard rules (no game data, text-only repository, keep the upstream credits, offline, never commit leonida.toml), the crate map, the exact commands CI runs, the known red CI on main, how to measure and how to bring in upstream commits with scripts/rename-from-upstream.ps1.

Owner's call: the claim-by-draft-PR rule only works if everyone follows it. Change it in TODO.md if you want a different process.

Tested

On Windows 11 Pro, Ryzen 7 7800X3D, RTX 3080 12 GB, driver 621.24:

  • PowerShell parser on run-gta6.ps1 and measure-gta6.ps1: 0 errors each. Neither has a hardcoded path left.
  • cargo test -p leonida -p leonida-core: passes.
  • cargo clippy -p leonida -p leonida-core --all-targets -- -D warnings: clean.
  • cargo check -p leonida --features diagnostics (the build measure-gta6.ps1 uses): passes.
  • cargo xtask policy: 208 files ok.
  • leonida config --game-dir <game folder> with LEONIDA_CONFIG pointing at a scratch file: it wrote [paths] with game_dir, and config then showed the folder.
  • leonida config --game-dir C:/Windows: refused with "no MicrosoftGame.config", exit 1.
  • Not tested: the scripts' interactive prompts from start to finish, or starting the game through them.

CI will still show the 9 clippy errors in leonida-gpu and the one failing test from #17 (TODO C-1 and C-2). They come from upstream, not from this change.

AI-assisted.

🤖 Generated with Claude Code

@ShinniUwU ShinniUwU changed the title feat: run-gta6.ps1 asks for the game folder and offers to remember it feat: portable run and measure scripts, TODO.md and CLAUDE.md Nov 25, 2026
@orkan1k
orkan1k merged commit dba8bdb into ProjectLeonidaL:main Nov 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants