play: VICTORY_INPUT_RECORD and VICTORY_INPUT_REPLAY kept from the environment #4970

Open
github-bot wants to merge 1 commit from github-bot/gh-4969 into main AGit
Owner

@⁠slopcannon3000 on GitHub · 2026-12-01 15:54 UTC · original
slopcannon3000:input-tape-paths-kept → main · +22 −4 · 2 files · 1 commits · open

What it changes

victory play clears inherited VICTORY_* variables that aren't in KEPT, so VICTORY_INPUT_RECORD/VICTORY_INPUT_REPLAY set in a launcher's environment (e.g. Heroic under Proton) were silently dropped. This adds both to KEPT and fixes the README line that claimed environment variables win over the settings file and --set.

How it was tested

  • Not tested in game. cargo xtask policy and cargo xwin clippy -p victory --no-deps --all-targets -- -D warnings pass. cargo test not run (no Windows host).

Checked for overlap

  • Related: #4014, #4388 (other names added to KEPT), #3444 (replay tape validation).
Decision log
  • Before: with the variable set in Heroic's environment, no tape was written in three Proton runs, and the log's switches: line didn't list it. --set VICTORY_INPUT_RECORD=... was never affected.
  • KEPT rather than a general change: it matches how #4014 and #4388 handled the same clearing. Both names are file paths, like the paths already kept. A settings-file line or --set still wins.
  • The README's VICTORY_INPUT_RECORD row no longer mentions the keyboard: padtape records pad readings only.
  • Without --no-deps, clippy fails in crates/victory-gpu/src/host/panel.rs (collapsible_if). That failure is already on main (see #4166).

🤖 Generated with Claude Code

**@⁠slopcannon3000** on GitHub · 2026-12-01 15:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4969) `slopcannon3000:input-tape-paths-kept` → `main` · +22 −4 · 2 files · 1 commits · open ## What it changes `victory play` clears inherited `VICTORY_*` variables that aren't in `KEPT`, so `VICTORY_INPUT_RECORD`/`VICTORY_INPUT_REPLAY` set in a launcher's environment (e.g. Heroic under Proton) were silently dropped. This adds both to `KEPT` and fixes the README line that claimed environment variables win over the settings file and `--set`. ## How it was tested - Not tested in game. `cargo xtask policy` and `cargo xwin clippy -p victory --no-deps --all-targets -- -D warnings` pass. `cargo test` not run (no Windows host). ## Checked for overlap - [x] Related: #4014, #4388 (other names added to `KEPT`), #3444 (replay tape validation). <details> <summary>Decision log</summary> - Before: with the variable set in Heroic's environment, no tape was written in three Proton runs, and the log's `switches:` line didn't list it. `--set VICTORY_INPUT_RECORD=...` was never affected. - `KEPT` rather than a general change: it matches how #4014 and #4388 handled the same clearing. Both names are file paths, like the paths already kept. A settings-file line or `--set` still wins. - The README's `VICTORY_INPUT_RECORD` row no longer mentions the keyboard: `padtape` records pad readings only. - Without `--no-deps`, clippy fails in `crates/victory-gpu/src/host/panel.rs` (`collapsible_if`). That failure is already on `main` (see #4166). </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`prepare` clears every inherited VICTORY_ variable that is not in KEPT, so
a tape path set around the start (a test script, or a launcher's
environment under Proton) never reached the title: nothing was recorded or
replayed, and nothing said so. Both are file paths, like the folders
already kept. The README no longer says an environment variable wins over
the settings file and --set: only the kept ones reach the game at all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 15:55:40 +00:00
Author
Owner

@⁠Lancito01 on GitHub · 2026-12-01 17:19 UTC · original

Data point from a Windows run (main 5fabb46e + #3848, RTX 3080): VICTORY_INPUT_RECORD reached the game and the tape was written, but the player used keyboard and mouse for the whole ~40 min session. The tape holds only the first poll:

0 0 -
0 1 -
0 2 -
0 3 -

padtape records PadState only, so keyboard/mouse play gives an empty tape without any warning. A log line ("no pad seen; keyboard and mouse are not recorded") or a README note would have saved the run. I can open a small PR for the warning if that's wanted.

**@⁠Lancito01** on GitHub · 2026-12-01 17:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4969#issuecomment-7319126185) Data point from a Windows run (main 5fabb46e + #3848, RTX 3080): `VICTORY_INPUT_RECORD` reached the game and the tape was written, but the player used keyboard and mouse for the whole ~40 min session. The tape holds only the first poll: ``` 0 0 - 0 1 - 0 2 - 0 3 - ``` `padtape` records `PadState` only, so keyboard/mouse play gives an empty tape without any warning. A log line ("no pad seen; keyboard and mouse are not recorded") or a README note would have saved the run. I can open a small PR for the warning if that's wanted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4970/head:github-bot/gh-4969'
git switch 'github-bot/gh-4969'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4969'
git switch 'github-bot/gh-4969'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4969'
git switch 'github-bot/gh-4969'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4969'
git switch 'main'
git merge --squash 'github-bot/gh-4969'
git switch 'main'
git merge --ff-only 'github-bot/gh-4969'
git switch 'main'
git merge 'github-bot/gh-4969'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4970
No description provided.