play.ps1: set VICTORY_RELAY=1 and VICTORY_CARD_STEPS=0 in -Safe, warn on DRED without diagnostics (#25) #176

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

@⁠ri995410-art on GitHub · 2026-11-26 10:24 UTC · original
ri995410-art:cursor/play-ps1-safe-and-dred-2d20 → main · +53 −3 · 2 files · 1 commits · open

Finishes the remaining items from #25 after #78 and #137:

  1. scripts/play.ps1 (-Safe): -Safe previously inherited VICTORY_RELAY='2' and VICTORY_CARD_STEPS='2' from the shared $settings table, leaving both fast paths enabled when troubleshooting. -Safe now sets VICTORY_RELAY='1' and VICTORY_CARD_STEPS='0'.
  2. VICTORY_D3D12_DRED without diagnostics:
    • In scripts/play.ps1, -Build release now leaves VICTORY_D3D12_DRED unset by default; if explicitly passed via -More, the launcher prints a notice that a release build has no diagnostics feature while still passing the value through.
    • In crates/victory-gpu/src/host.rs, dred_on(), dred_light(), and dred_faults() warn once when VICTORY_D3D12_DRED is set in a build compiled without feature = "diagnostics", and stay off. Added dred_stays_off_without_the_diagnostics_feature unit test.

Verification

  • Parsed scripts/play.ps1 with PowerShell 7.5.4 and verified -Safe, default -Build diag, -Build release, -Build release -More @{VICTORY_D3D12_DRED='light'}, missing exe exit code (1), and inherited env var handling with a stub victory.exe.
  • cargo test -p xtask --locked (9 passed, including documented_switches_are_read) and cargo xtask policy (262 files ok).
  • cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc --lib -- -D warnings passed (default and --features diagnostics), and --tests without diagnostics passed.
  • Not run against a game dump; no game files touched.

Closes #25

**@⁠ri995410-art** on GitHub · 2026-11-26 10:24 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/176) `ri995410-art:cursor/play-ps1-safe-and-dred-2d20` → `main` · +53 −3 · 2 files · 1 commits · open Finishes the remaining items from #25 after #78 and #137: 1. **`scripts/play.ps1` (`-Safe`)**: `-Safe` previously inherited `VICTORY_RELAY='2'` and `VICTORY_CARD_STEPS='2'` from the shared `$settings` table, leaving both fast paths enabled when troubleshooting. `-Safe` now sets `VICTORY_RELAY='1'` and `VICTORY_CARD_STEPS='0'`. 2. **`VICTORY_D3D12_DRED` without `diagnostics`**: - In `scripts/play.ps1`, `-Build release` now leaves `VICTORY_D3D12_DRED` unset by default; if explicitly passed via `-More`, the launcher prints a notice that a release build has no `diagnostics` feature while still passing the value through. - In `crates/victory-gpu/src/host.rs`, `dred_on()`, `dred_light()`, and `dred_faults()` warn once when `VICTORY_D3D12_DRED` is set in a build compiled without `feature = "diagnostics"`, and stay off. Added `dred_stays_off_without_the_diagnostics_feature` unit test. ## Verification - Parsed `scripts/play.ps1` with PowerShell 7.5.4 and verified `-Safe`, default `-Build diag`, `-Build release`, `-Build release -More @{VICTORY_D3D12_DRED='light'}`, missing exe exit code (`1`), and inherited env var handling with a stub `victory.exe`. - `cargo test -p xtask --locked` (9 passed, including `documented_switches_are_read`) and `cargo xtask policy` (`262 files ok`). - `cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc --lib -- -D warnings` passed (default and `--features diagnostics`), and `--tests` without `diagnostics` passed. - Not run against a game dump; no game files touched. Closes #25
-Safe kept VICTORY_RELAY=2 and VICTORY_CARD_STEPS=2 from the shared table.
A release build also set VICTORY_D3D12_DRED=light, which is compiled in only
with the diagnostics feature.

Co-authored-by: ri995410-art <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:21:46 +00:00
github-bot changed title from Make -Safe use relay stage 1 and no card steps, and warn when DREDplay.ps1: set VICTORY_RELAY=1 and VICTORY_CARD_STEPS=0 in -Safe, warn on DRED without diagnostics (#25) la… to play.ps1: set VICTORY_RELAY=1 and VICTORY_CARD_STEPS=0 in -Safe, warn on DRED without diagnostics (#25) 2026-11-26 11:30:57 +00:00
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/176/head:github-bot/gh-176'
git switch 'github-bot/gh-176'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-176'
git switch 'github-bot/gh-176'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-176'
git switch 'github-bot/gh-176'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-176'
git switch 'main'
git merge --squash 'github-bot/gh-176'
git switch 'main'
git merge --ff-only 'github-bot/gh-176'
git switch 'main'
git merge 'github-bot/gh-176'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.