Repository navigation
feat: portable run and measure scripts, TODO.md and CLAUDE.md - #18
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #17, which was merged before these commits got pushed. Three commits:
1.
run-gta6.ps1works for anyoneThe script no longer has a game path hardcoded in it:
MicrosoftGame.configin it.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.To support this,
leonida configgets a--game-dir <folder>option. It saves the folder through the same check the first-run prompt inleonida runuses (the manifest has to be there, and the folder has to be outside the repository).2.
measure-gta6.ps1works for anyoneSame change for the measuring script: no hardcoded path, it asks for the game folder and offers to remember it, and
-GameDirworks 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.mdandCLAUDE.mdTODO.mdis 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.mdis the guide for coding agents: the goal, the hard rules (no game data, text-only repository, keep the upstream credits, offline, never commitleonida.toml), the crate map, the exact commands CI runs, the known red CI onmain, how to measure and how to bring in upstream commits withscripts/rename-from-upstream.ps1.Owner's call: the claim-by-draft-PR rule only works if everyone follows it. Change it in
TODO.mdif you want a different process.Tested
On Windows 11 Pro, Ryzen 7 7800X3D, RTX 3080 12 GB, driver 621.24:
run-gta6.ps1andmeasure-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 buildmeasure-gta6.ps1uses): passes.cargo xtask policy: 208 files ok.leonida config --game-dir <game folder>withLEONIDA_CONFIGpointing at a scratch file: it wrote[paths]withgame_dir, andconfigthen showed the folder.leonida config --game-dir C:/Windows: refused with "no MicrosoftGame.config", exit 1.CI will still show the 9 clippy errors in
leonida-gpuand 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