linux: keep caches outside the source tree while linux/ is in the checkout (fixes #3) #8
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8"
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?
Imported from Slaktarn700/SlaktarnVI. Originally posted by lordra9-svg on 2026-11-27T21:50:28Z.
Why
A first run from a checkout fails before the title starts, because the scripts default saves and caches to
linux/victory-data/and the runtime refuses to write game-derived data inside a VIctory source tree. This is issue #3: movinglinux/out of the checkout works around it, but then the folder loses the tree's build output and the launcher's Play button path.What
linux/data-dir.sh(valhalla_data_dir): if the given folder is under a tree with.victory-root, the data directory is$XDG_DATA_HOME/victory(default~/.local/share/victory); otherwise it stays<linux>/victory-data, as before. So alinux/folder copied out of the checkout keeps the old behaviour exactly.run-victory.shandrun-7900.shuse it forVICTORY_DATA_DIR,VICTORY_CACHE_DIRandVKD3D_SHADER_CACHE_PATH.launcher.json, the prepared-shader cache and the Prepare environment.Testing
Machine: Ryzen 7 7700, RX 7800 XT (RADV, Mesa 26.3.1), Bazzite, Proton Experimental. A real Xbox Series dump,
GAME_DIR/GAME_EXEpointing at it,PATCHED=0(Steam's Proton).bash -c '. linux/data-dir.sh; valhalla_data_dir linux'→/home/<user>/.local/share/victorylinux/outside the checkout →<copy>/victory-data./run-7900.shfrom the checkout with noVICTORY_CACHE_DIR/VICTORY_DATA_DIR/VKD3D_SHADER_CACHE_PATHset: the previous refusal is gone; the run used~/.local/share/victory/cache-7900\imagesand.../data/7952987A/storage, mapped the title, and ran until the 75 s test timeout.bash -non the three scripts andpython3 -m py_compileon the launcher pass.Not covered: the Windows path (launcher/scripts are Linux-only) and the separate “Play does nothing after moving linux/ out of the tree” report in the issue; this change removes the need to move it.
AI use: patch, test runs and this text were produced by an OpenCode agent running DeepSeek V4.1 Flash; submitted from @lordra9-svg's account.
Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-11-29T11:17:47Z.
Fixed in my working copy in another way (data goes to ~/.local/share/valhalla). Merging #8 as well would move people's caches twice, so I will not merge it, but thank you lordra9-svg for the work.
Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-11-29T22:01:02Z.
main now keeps everything in
~/.local/share/valhalla(VALHALLA_HOMEfor another place), so people's caches move only once; I would like to close this as replaced. Thank you for the clear report and tests; looking at every parent folder is a good point.Pull request closed