Play and Warm scripts ignore an explicit VICTORY_CONFIG #16

Closed
opened 2026-12-02 17:08:49 +00:00 by github-bot · 1 comment
Owner

@⁠lmouz823-lang on GitHub · 2026-11-30 14:17 UTC · original

Reproduced problem

At babf51150b6fa0389e0709698622e1dda065996e, Config::load supports an explicit VICTORY_CONFIG, but Play-VIctory.cmd and Warm-Shaders.cmd read only the configuration beside the scripts and then export their chosen paths.

With an external configuration selecting a valid game directory and a cache containing a recorded pipeline book, the warm script checks the default cache and reports that no book exists. The play script searches its fallback game directory and exits 2.

Reproduction

Set VICTORY_CONFIG to an absolute TOML path outside the launcher directory, with [paths].game_dir and [paths].cache_dir pointing at the intended locations. Leave VICTORY_GAME_DIR and VICTORY_CACHE_DIR unset. Invoke each CMD script from another working directory.

I reproduced both paths using the actual unmodified scripts with synthetic file markers and a Windows utility as the runtime probe. The selected cache contains pipelines/known-pipelines.bin.

Warm-Shaders.cmd    exit 0    selected configuration honored = false
Play-VIctory.cmd    exit 2    selected configuration honored = false

Contribution scope

I am taking this configuration-resolution follow-up and preparing a focused patch plus native Windows CMD regressions. The change will honor the selected configuration, keep explicit game/cache environment overrides, and cover the existing local/default paths.

This follows the launcher and warm-up area discussed in #5 and #6. The available reports do not establish that this was their original cause.

AI assistance from Codex covers the reproduction, implementation, tests and reporting.

**@⁠lmouz823-lang** on GitHub · 2026-11-30 14:17 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/16) ## Reproduced problem At `babf51150b6fa0389e0709698622e1dda065996e`, `Config::load` supports an explicit `VICTORY_CONFIG`, but `Play-VIctory.cmd` and `Warm-Shaders.cmd` read only the configuration beside the scripts and then export their chosen paths. With an external configuration selecting a valid game directory and a cache containing a recorded pipeline book, the warm script checks the default cache and reports that no book exists. The play script searches its fallback game directory and exits 2. ## Reproduction Set `VICTORY_CONFIG` to an absolute TOML path outside the launcher directory, with `[paths].game_dir` and `[paths].cache_dir` pointing at the intended locations. Leave `VICTORY_GAME_DIR` and `VICTORY_CACHE_DIR` unset. Invoke each CMD script from another working directory. I reproduced both paths using the actual unmodified scripts with synthetic file markers and a Windows utility as the runtime probe. The selected cache contains `pipelines/known-pipelines.bin`. ```text Warm-Shaders.cmd exit 0 selected configuration honored = false Play-VIctory.cmd exit 2 selected configuration honored = false ``` ## Contribution scope I am taking this configuration-resolution follow-up and preparing a focused patch plus native Windows CMD regressions. The change will honor the selected configuration, keep explicit game/cache environment overrides, and cover the existing local/default paths. This follows the launcher and warm-up area discussed in #5 and #6. The available reports do not establish that this was their original cause. AI assistance from Codex covers the reproduction, implementation, tests and reporting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:08:49 +00:00
Author
Owner

@⁠ToLIManl on GitHub · 2026-11-30 22:47 UTC · original

Fixed in b29f9ea:

  • Play-VIctory.cmd, Play-VIctory-4GB.cmd, and Warm-Shaders.cmd now honor an explicit VICTORY_CONFIG path (including [paths].game_dir and [paths].cache_dir when run outside the repo directory), strip surrounding quotes on VICTORY_CONFIG, handle single/double-quoted TOML values with escaped backslashes / # characters, keep VICTORY_GAME_DIR and VICTORY_CACHE_DIR env overrides taking precedence, and exit with code 2 when VICTORY_CONFIG points to a missing file.
  • scripts/play.ps1 now resolves a relative VICTORY_CONFIG path against the caller's working directory before Push-Location into the repo root.
**@⁠ToLIManl** on GitHub · 2026-11-30 22:47 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/16#issuecomment-7294319245) Fixed in `b29f9ea`: - `Play-VIctory.cmd`, `Play-VIctory-4GB.cmd`, and `Warm-Shaders.cmd` now honor an explicit `VICTORY_CONFIG` path (including `[paths].game_dir` and `[paths].cache_dir` when run outside the repo directory), strip surrounding quotes on `VICTORY_CONFIG`, handle single/double-quoted TOML values with escaped backslashes / `#` characters, keep `VICTORY_GAME_DIR` and `VICTORY_CACHE_DIR` env overrides taking precedence, and exit with code `2` when `VICTORY_CONFIG` points to a missing file. - `scripts/play.ps1` now resolves a relative `VICTORY_CONFIG` path against the caller's working directory before `Push-Location` into the repo root.
This discussion has been locked. Commenting is limited to contributors.
No description provided.