Play and Warm scripts ignore an explicit VICTORY_CONFIG #16
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ToLIManl--VIctory-Hydra#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lmouz823-lang on GitHub · 2026-11-30 14:17 UTC · original
Reproduced problem
At
babf51150b6fa0389e0709698622e1dda065996e,Config::loadsupports an explicitVICTORY_CONFIG, butPlay-VIctory.cmdandWarm-Shaders.cmdread 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_CONFIGto an absolute TOML path outside the launcher directory, with[paths].game_dirand[paths].cache_dirpointing at the intended locations. LeaveVICTORY_GAME_DIRandVICTORY_CACHE_DIRunset. 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.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.
@ToLIManl on GitHub · 2026-11-30 22:47 UTC · original
Fixed in
b29f9ea:Play-VIctory.cmd,Play-VIctory-4GB.cmd, andWarm-Shaders.cmdnow honor an explicitVICTORY_CONFIGpath (including[paths].game_dirand[paths].cache_dirwhen run outside the repo directory), strip surrounding quotes onVICTORY_CONFIG, handle single/double-quoted TOML values with escaped backslashes /#characters, keepVICTORY_GAME_DIRandVICTORY_CACHE_DIRenv overrides taking precedence, and exit with code2whenVICTORY_CONFIGpoints to a missing file.scripts/play.ps1now resolves a relativeVICTORY_CONFIGpath against the caller's working directory beforePush-Locationinto the repo root.