Honor selected configuration in Play and Warm scripts #17

Closed
github-bot wants to merge 2 commits from gh-pr/17/head into gh-pr/17/base
Owner

@⁠lmouz823-lang on GitHub · 2026-11-30 14:57 UTC · original
lmouz823-lang:fix/selected-launcher-config → main · +214 −5 · 3 files · 2 commits · closed without merging

Summary

Fixes #16.

victory.user.cmd
  -> explicit VICTORY_CONFIG or existing launcher-local victory.toml
  -> fill game/cache paths when their environment overrides are absent
  -> launch runtime with the same configuration selector

Both Play and Warm now read the selected configuration. When no selector is supplied and a local victory.toml exists, its path is exported so the runtime reads that same file from an unrelated working directory. Explicit game/cache environment overrides retain priority.

Evidence

Pinned base babf51150b6fa0389e0709698622e1dda065996e. Submitted head 8bfdb5aa536fb342eb87c86b49acab8759fb87bf.

The new native Windows regression launches the actual CMD scripts from another working directory. A temporary CPU-only C# executable captures every runtime argument and the CONFIG/GAME_DIR/CACHE_DIR values. It returns sentinel 37. Each test checks that exit, the exact argument order and all selected paths. The regression script itself exits 0 on success.

Native scenario, Play and Warm each Original Fixed
All eight configurations 10 failures, 6 passing controls 16 passed

The eight configurations cover an external absolute selector, a relative selector, launcher-local default, explicit environment path overrides, empty selector, no-config fallback, missing selected file forwarding and a configured executable path. Configuration filenames include Unicode, spaces, parentheses, brackets and an apostrophe. The environment-override paths also include an apostrophe.

The initial fixed run, independent review rerun and final frozen Windows CRLF run each pass 16/16. A separate native replay of the canonical Git LF upload files also passes 16/16. The remote files match those canonical LF bytes.

Independent Standards and Spec reviews both pass with zero findings. Local cargo xtask policy exits 0 and reports asset policy: 326 files ok.

The CI workflow has executed no jobs and is awaiting approval from a maintainer in this PR. Its current conclusion is action_required. Full-workspace Cargo tests and Clippy remain pending. CI run 46444783255

Reproduce with Windows PowerShell 5.1.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File tools\test-launcher-config.ps1

The production change affects two CMD files with eight additions and five removals. The regression is a separate 206-line PowerShell file. PowerShell parsing, diff checks and pinned-base forward/reverse patch checks pass.

Validation limits

The temporary executable is an argv/environment probe. Actual Rust runner execution, shader/pipeline compilation, GPU/game acceptance, FPS, other operating systems and full-workspace tests remain unverified. The missing-file scenario checks selector forwarding. The Rust missing-configuration error path remains unexecuted. Coverage uses the scripts' existing simple path assignments. General TOML scalar grammar and a launcher installation root containing an apostrophe were skipped.

Existing #5 and #6 reports do not establish this specific cause.

Merge Danger

The change is reversible through a code revert.

Its scope is Play/Warm configuration selection and the native script regression. Tests use synthetic markers and a temporary probe outside the repository.

AI assistance from Codex covered diagnosis, implementation, execution, review and reporting.

**@⁠lmouz823-lang** on GitHub · 2026-11-30 14:57 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/17) `lmouz823-lang:fix/selected-launcher-config` → `main` · +214 −5 · 3 files · 2 commits · closed without merging ## Summary Fixes #16. ```text victory.user.cmd -> explicit VICTORY_CONFIG or existing launcher-local victory.toml -> fill game/cache paths when their environment overrides are absent -> launch runtime with the same configuration selector ``` Both Play and Warm now read the selected configuration. When no selector is supplied and a local `victory.toml` exists, its path is exported so the runtime reads that same file from an unrelated working directory. Explicit game/cache environment overrides retain priority. ## Evidence Pinned base `babf51150b6fa0389e0709698622e1dda065996e`. Submitted head `8bfdb5aa536fb342eb87c86b49acab8759fb87bf`. The new native Windows regression launches the actual CMD scripts from another working directory. A temporary CPU-only C# executable captures every runtime argument and the CONFIG/GAME_DIR/CACHE_DIR values. It returns sentinel 37. Each test checks that exit, the exact argument order and all selected paths. The regression script itself exits 0 on success. | Native scenario, Play and Warm each | Original | Fixed | | --- | --- | --- | | All eight configurations | 10 failures, 6 passing controls | 16 passed | The eight configurations cover an external absolute selector, a relative selector, launcher-local default, explicit environment path overrides, empty selector, no-config fallback, missing selected file forwarding and a configured executable path. Configuration filenames include Unicode, spaces, parentheses, brackets and an apostrophe. The environment-override paths also include an apostrophe. The initial fixed run, independent review rerun and final frozen Windows CRLF run each pass 16/16. A separate native replay of the canonical Git LF upload files also passes 16/16. The remote files match those canonical LF bytes. Independent Standards and Spec reviews both pass with zero findings. Local `cargo xtask policy` exits 0 and reports `asset policy: 326 files ok`. The CI workflow has executed no jobs and is awaiting approval from a maintainer in this PR. Its current conclusion is `action_required`. Full-workspace Cargo tests and Clippy remain pending. [CI run 46444783255](https://github.com/ToLIManl/VIctory-Hydra/actions/runs/46444783255) Reproduce with Windows PowerShell 5.1. ```powershell powershell.exe -NoProfile -ExecutionPolicy Bypass -File tools\test-launcher-config.ps1 ``` The production change affects two CMD files with eight additions and five removals. The regression is a separate 206-line PowerShell file. PowerShell parsing, diff checks and pinned-base forward/reverse patch checks pass. ### Validation limits The temporary executable is an argv/environment probe. Actual Rust runner execution, shader/pipeline compilation, GPU/game acceptance, FPS, other operating systems and full-workspace tests remain unverified. The missing-file scenario checks selector forwarding. The Rust missing-configuration error path remains unexecuted. Coverage uses the scripts' existing simple path assignments. General TOML scalar grammar and a launcher installation root containing an apostrophe were skipped. Existing #5 and #6 reports do not establish this specific cause. ## Merge Danger The change is reversible through a code revert. Its scope is Play/Warm configuration selection and the native script regression. Tests use synthetic markers and a temporary probe outside the repository. AI assistance from Codex covered diagnosis, implementation, execution, review and reporting.
Honor VICTORY_CONFIG and export an existing local default for matching runtime configuration. Preserve explicit game/cache path overrides.

Refs ToLIManl/VIctory-Hydra#16.
AI-assisted with Codex.
Exercise Play and Warm with eight synthetic configurations, checking exact runtime arguments and path environment values.

Refs ToLIManl/VIctory-Hydra#16.
AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:08:51 +00:00
github-bot closed this pull request 2026-12-02 17:08:51 +00:00
Author
Owner

@⁠ToLIManl on GitHub · 2026-11-30 23:55 UTC · original

Superseded by \29f9ea\ and \869198.

--config\ forwarding was already addressed in \29f9ea, and the launcher-local \VICTORY_CONFIG=%~dp0victory.toml\ export when unset was ported into \Play-VIctory.cmd, \Play-VIctory-4GB.cmd, and \Warm-Shaders.cmd\ in \869198\ with \Co-authored-by\ attribution and verified across [UNSET], [EMPTY_QUOTED], and [MISSING]\ native CMD probes.

**@⁠ToLIManl** on GitHub · 2026-11-30 23:55 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/17#issuecomment-7295695455) Superseded by \29f9ea\ and \869198\. \--config\ forwarding was already addressed in \29f9ea\, and the launcher-local \VICTORY_CONFIG=%~dp0victory.toml\ export when unset was ported into \Play-VIctory.cmd\, \Play-VIctory-4GB.cmd\, and \Warm-Shaders.cmd\ in \869198\ with \Co-authored-by\ attribution and verified across \[UNSET]\, \[EMPTY_QUOTED]\, and \[MISSING]\ native CMD probes.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.