Launchers: built at every start, and the log says which commit the program was built from #824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/824"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by 0xkn0wh3r3 on 2026-11-28T07:13:15Z.
The launchers built
victory.exeonly when it was missing. A checkout that had changed since the last build ran the old program, and the log header'ssource: <branch> at <commit>described the checkout at launch, not what the program was built from. A run built from an older commit looked like a run of the new one in its log, and nothing said so.What changes
scripts/play-foxhound.ps1,scripts/play.ps1andvictory playrun the cargo build before every launch, the two scripts through one shared helper (scripts/victory-build.ps1). When nothing changed it finishes in a few seconds. Without cargo, an existing program is used, with a warning that it may be older than the checkout.apps/victory/build.rsbuilds in the commit the program was built from, and whether the tree had changes. The log header now names both that commit and the checkout, and warns when they differ.Also in this PR
The first commit adds
-LogDir,-LogTag,-LogLevel/-LogFilterand-LogFileOnlyto the launchers (where a run logs, a name for it, how much, and files only for measuring). The rebuild change touches the same lines ofplay-foxhound.ps1and is built on it. Rebased on currentmain, keeping its-FrameGenReadyargument in the restart line.Tested
cargo test -p victory: all pass.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T17:46:15Z.
A user ran into exactly what this fixes, in #1342. After a
git pull, the F1 menu had no MOUSE AND KEYBOARD, KEY BINDINGS or save import/export, andVICTORY_MNK=1did nothing.play-foxhound.ps1builds only whiletarget\release\victory.exeis missing, so the build from before the pull kept starting. A fresh clone made it all appear. The commit line in the log that this adds would have shown the stale build at once.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T17:56:55Z.
At
608971e,Build-Victorycan reportbuiltfor an older executable whenCARGO_TARGET_DIRis set. Keep commit A’starget/release/victory.exe, move the checkout to B, setCARGO_TARGET_DIRto another directory, then callBuild-Victory $repo release. Cargo succeeds in the other directory. The helper checks the existing A file and returnsbuilt.Get-VictorySourcecorrectly warns that A differs from B.In a local copy, adding
--target-dir (Join-Path $Repo 'target')to both Cargo invocations made the selected release and diag files report B. Tested with PowerShell 7.4.19 on Linux, real Cargo/Git and a synthetic version-only executable. Clean/incremental builds, a compiler error with an old file present, and both no-Cargo paths behaved as documented. No launcher or game run.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T18:35:05Z.
Correction to my
--target-dirsuggestion: specifying the host triple still adds a directory level. WithCARGO_BUILD_TARGET=x86_64-unknown-linux-gnuor[build] targetset to that host, Cargo built B attarget/<triple>/<profile>/victory, whileBuild-Victoryreturnedbuiltfor A attarget/<profile>/victory.exe. Reproduced in release and diag with PowerShell 7.4.19 on Linux and a version-only Rust binary (the.exename was a local symlink).A local guard checked
compiler-artifact.executablefor thevictorybin in Cargo’s JSON output and stopped on an unexpected directory. It rejected all four mismatches and accepted both default layouts, without relocating adjacent dependencies or overriding the configured target. One wording detail:victory playusescurrent_exe()and warns about a source mismatch. Only the two PowerShell launchers callBuild-Victory. No launcher or game was run.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.