With VICTORY_HOME set, .8 wrote saves to %LOCALAPPDATA% while logs and caches went to VICTORY_HOME - progress appeared lost after updating to .10 #751

Closed
opened 2026-11-28 04:56:46 +00:00 by lucasbnc33-boop · 4 comments
lucasbnc33-boop commented 2026-11-28 04:56:46 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lucasbnc33-boop on 2026-11-28T04:56:46Z.


Build: v2026.11.27.8 (behaviour observed), v2026.11.27.10 (behaviour differs)
OS: Windows 11, game build 1.0.2.1

setx VICTORY_HOME D:\victory was run, then the machine was rebooted. From then on, logs, shader caches and pipeline caches were correctly written under D:\victory. The saves tree was still written to %LOCALAPPDATA%\victory\data\7952987A\saves.

After updating to .10, the game read saves from VICTORY_HOME and showed the starting state, because the actual progress was on the old path. Nothing was lost on disk, but it looks like a lost save.

.10 writes saves under VICTORY_HOME correctly, so this is .8-specific rather than a current regression.

Expected: data_dir follows VICTORY_HOME like logs and caches, or the split is documented.

Attached: both save trees with timestamps and sizes.

saves-D.txt
saves-C.txt

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6659391257 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/751). Originally posted by [lucasbnc33-boop](https://github.com/lucasbnc33-boop) on 2026-11-28T04:56:46Z. --- Build: v2026.11.27.8 (behaviour observed), v2026.11.27.10 (behaviour differs) OS: Windows 11, game build 1.0.2.1 setx VICTORY_HOME D:\victory was run, then the machine was rebooted. From then on, logs, shader caches and pipeline caches were correctly written under D:\victory. The saves tree was still written to %LOCALAPPDATA%\victory\data\7952987A\saves. After updating to .10, the game read saves from VICTORY_HOME and showed the starting state, because the actual progress was on the old path. Nothing was lost on disk, but it looks like a lost save. .10 writes saves under VICTORY_HOME correctly, so this is .8-specific rather than a current regression. Expected: data_dir follows VICTORY_HOME like logs and caches, or the split is documented. Attached: both save trees with timestamps and sizes. [saves-D.txt](https://github.com/user-attachments/files/35539492/saves-D.txt) [saves-C.txt](https://github.com/user-attachments/files/35539491/saves-C.txt)
Jesper-Andersson commented 2026-11-28 05:00:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-28T05:00:04Z.


Possibly related, via a different path: this report has caches following VICTORY_HOME and only saves not, while here the caches did not follow it, through the launcher script (play-foxhound.ps1 -Preload), not the .8 path.

On trustno1 main 8fc22547 (RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Windows 11, driver 621.40, one machine) I ran scripts\play-foxhound.ps1 -SeriesS -Dlss quality -Build diag -Preload from a PowerShell with $env:VICTORY_HOME set to a separate folder. The preload's victory warm workers and victory preload wrote warm-done.txt, slow-pipelines.txt, static-samplers.txt and shader cache files to the default %LOCALAPPDATA%\victory\cache. The VICTORY_HOME folder got nothing. Setting cache_dir/data_dir in victory.toml isolated it. I did not check saves.

From reading the code (I did not dump the child processes' environment): the script's keep-list (scripts/play-foxhound.ps1:170) has no VICTORY_HOME, and line 171 removes the other VICTORY_* variables. Children would then start without it, and config.rs:154-163 falls back to %LOCALAPPDATA% (158-163). KEPT in apps/victory/src/play.rs:124 does keep it (#472).

Checked with AI assistance (Claude Code).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234390596 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/751#issuecomment-7234390596). Originally posted by [Jesper-Andersson](https://github.com/Jesper-Andersson) on 2026-11-28T05:00:04Z. --- Possibly related, via a different path: this report has caches following VICTORY_HOME and only saves not, while here the caches did not follow it, through the launcher script (`play-foxhound.ps1 -Preload`), not the .8 path. On trustno1 main 8fc22547 (RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Windows 11, driver 621.40, one machine) I ran `scripts\play-foxhound.ps1 -SeriesS -Dlss quality -Build diag -Preload` from a PowerShell with `$env:VICTORY_HOME` set to a separate folder. The preload's `victory warm` workers and `victory preload` wrote warm-done.txt, slow-pipelines.txt, static-samplers.txt and shader cache files to the default `%LOCALAPPDATA%\victory\cache`. The VICTORY_HOME folder got nothing. Setting `cache_dir`/`data_dir` in victory.toml isolated it. I did not check saves. From reading the code (I did not dump the child processes' environment): the script's keep-list (scripts/play-foxhound.ps1:170) has no VICTORY_HOME, and line 171 removes the other VICTORY_* variables. Children would then start without it, and config.rs:154-163 falls back to `%LOCALAPPDATA%` (158-163). `KEPT` in apps/victory/src/play.rs:124 does keep it (#472). Checked with AI assistance (Claude Code).
lucasbnc33-boop commented 2026-11-28 05:02:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lucasbnc33-boop on 2026-11-28T05:02:57Z.


Different path, and the split is the other way round here.

Setup: victory.exe launched directly from PowerShell, never through scripts/play-foxhound.ps1. VICTORY_HOME set with setx, then a reboot, so it was inherited by the launched process.

On .8: logs and caches did follow VICTORY_HOME (D:\victory\logs, D:\victory\cache) - the play logs attached above were read from that path. Saves did not follow it: they were written to %LOCALAPPDATA%\victory\data\7952987A\saves.

On .10: saves follow VICTORY_HOME, so the save side is fixed there.

So your keep-list finding explains your cache case, but data_dir looks independently wrong on .8: cache_dir honoured VICTORY_HOME while data_dir did not, in the same process, with no script involved and the variable present. That points at config.rs resolving the two directories differently rather than at the environment being dropped for children.

Driver 617.14 here, RTX 5080 Laptop, in case it matters.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234422191 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/751#issuecomment-7234422191). Originally posted by [lucasbnc33-boop](https://github.com/lucasbnc33-boop) on 2026-11-28T05:02:57Z. --- Different path, and the split is the other way round here. Setup: victory.exe launched directly from PowerShell, never through scripts/play-foxhound.ps1. VICTORY_HOME set with setx, then a reboot, so it was inherited by the launched process. On .8: logs and caches did follow VICTORY_HOME (D:\victory\logs, D:\victory\cache) - the play logs attached above were read from that path. Saves did not follow it: they were written to %LOCALAPPDATA%\victory\data\7952987A\saves. On .10: saves follow VICTORY_HOME, so the save side is fixed there. So your keep-list finding explains your cache case, but data_dir looks independently wrong on .8: cache_dir honoured VICTORY_HOME while data_dir did not, in the same process, with no script involved and the variable present. That points at config.rs resolving the two directories differently rather than at the environment being dropped for children. Driver 617.14 here, RTX 5080 Laptop, in case it matters.
kalberts0089-hash commented 2026-11-29 09:23:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kalberts0089-hash on 2026-11-29T09:23:49Z.


@lucasbnc33-boop thanks for the save listings. It isn't config.rs. cache_dir and data_dir both fall back to the same default_dir, on .8 and on main (crates/victory-core/src/config.rs:107-112, 193). The split came from victory play on .8:

  • prepare reads home() first, so the log folder and victory-settings.txt followed VICTORY_HOME.
  • It then clears every VICTORY_* variable not in KEPT, and on .8 KEPT had no VICTORY_HOME (v2026.11.27.8 apps/victory/src/play.rs:116-124).
  • run then calls Config::load in the same process without it, so saves and storage went to %LOCALAPPDATA%\victory\data.

ed81cb9e (#472) fixed this in .10. It isn't in .9.

By the same code, .8's shader cache should also have gone to C:, so I'd guess the files in D:\victory\cache came from .10 or from a victory warm started straight from a shell. Their timestamps would tell. I haven't checked that.

Your .8 progress is the C: tree (newest file 03:48:30). The D: tree's 05:37-05:43 files are from .10. To restore it, close the game and run:

Move-Item D:\victory\data\7952987A D:\victory\data\7952987A-from-10
robocopy "$env:LOCALAPPDATA\victory\data\7952987A" D:\victory\data\7952987A /E

robocopy exit code 1 means files were copied. This copies storage too, since .8 wrote both to C:.

The launcher path Jesper-Andersson found (play-foxhound.ps1 / play.ps1 dropping VICTORY_HOME) is fixed in v2026.11.29.01.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7253734900 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/751#issuecomment-7253734900). Originally posted by [kalberts0089-hash](https://github.com/kalberts0089-hash) on 2026-11-29T09:23:49Z. --- @lucasbnc33-boop thanks for the save listings. It isn't config.rs. `cache_dir` and `data_dir` both fall back to the same `default_dir`, on .8 and on main (crates/victory-core/src/config.rs:107-112, 193). The split came from `victory play` on .8: - `prepare` reads `home()` first, so the log folder and victory-settings.txt followed VICTORY_HOME. - It then clears every `VICTORY_*` variable not in `KEPT`, and on .8 `KEPT` had no `VICTORY_HOME` (v2026.11.27.8 apps/victory/src/play.rs:116-124). - `run` then calls `Config::load` in the same process without it, so saves and storage went to `%LOCALAPPDATA%\victory\data`. ed81cb9e (#472) fixed this in .10. It isn't in .9. By the same code, .8's shader cache should also have gone to C:, so I'd guess the files in `D:\victory\cache` came from .10 or from a `victory warm` started straight from a shell. Their timestamps would tell. I haven't checked that. Your .8 progress is the C: tree (newest file 03:48:30). The D: tree's 05:37-05:43 files are from .10. To restore it, close the game and run: ```powershell Move-Item D:\victory\data\7952987A D:\victory\data\7952987A-from-10 robocopy "$env:LOCALAPPDATA\victory\data\7952987A" D:\victory\data\7952987A /E ``` robocopy exit code 1 means files were copied. This copies `storage` too, since .8 wrote both to C:. The launcher path Jesper-Andersson found (play-foxhound.ps1 / play.ps1 dropping VICTORY_HOME) is fixed in v2026.11.29.01.
trustno1-coder commented 2026-11-29 23:07:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T23:07:56Z.


Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed).

If it still happens on v2026.11.29.05, please open a new issue with the newest play log from %LOCALAPPDATA%\victory\logs\ and crashes.log, and we'll look at it there.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7264221354 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/751#issuecomment-7264221354). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T23:07:56Z. --- Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed). If it still happens on [v2026.11.29.05](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.05), please open a new issue with the newest play log from `%LOCALAPPDATA%\victory\logs\` and `crashes.log`, and we'll look at it there.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#751
No description provided.