run.sh: update automatically before every run (AUTO_UPDATE) #210
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!210
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-210"
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?
@PedroRBC on GitHub · 2026-12-02 16:49 UTC · original
PedroRBC:feat/auto-update→main· +125 −0 · 4 files · 2 commits · openWhy
From the Discord:
There is now. You never have to download it all again, and you don't need to know any git.
For players: what changes for you
Nothing to learn. Keep starting the game the way you do now:
Before each run, it now:
You don't need
git pull, and you don't have to re-run./setup.shafter an update.Getting this update itself (only once)
git clone: open a terminal in the project folder and rungit pull, once. After that, every update installs itself.git clone https://github.com/lobomfz/VIctory-xmem, copy yourrun.confand yourlocal/folder into it, and run./setup.sh. That's the last full download you'll need.What you might see
Up to date.Downloading N new change(s)Could not reach origin (offline?)files here were changed by handgit checkout -- .to throw your edits away and update, or leave it as it ishas commits of its owngit pullyourselfNot a git clone (downloaded as a zip?)The new version did not buildlocal/update-build.logTo turn updates off, put
AUTO_UPDATE=0inrun.conf, or switch it off in the in-game menu (F1).Your
run.conf, saves and caches (local/) are never touched.For reviewers
tools/update.sh, whichrun.shcalls after it validates the mode. It does a fetch with a 20 s timeout and no credential prompt, then a fast-forward only merge, and only on a branch that tracks a remote and has no tracked changes. Detached HEAD, commits that are only local, a dirty tree, a zip download or being offline mean it skips the update and says why.setup.sh,env.shorpatches/→ the fullsetup.sh(plusfsr4if that was installed).crates/,xtask/, Cargo files orbuild.sh→setup.sh victory.local/update-pending, so a failed build is retried on the next run. Ifdeps/doesn't exist, it skips the build, andrun.shstill tells the user to run setup.run.shrestarts itself (exec) so the new files are used.UPDATE_CHECKED=1is exported so it can't loop, and the in-game menu's restart doesn't check again.AUTO_UPDATEsetting is inrun.conf.default, so it shows up in the menu. Order of precedence is run.conf < menu.conf < command line, the same as in run.sh. There's also a README row and paragraph.Tested
In throwaway clones with a local bare remote and a stub
setup.sh: up to date (exit 0); behind with a crate change (fast-forwards, rebuildsvictory, exit 3); behind with a patch change (full rebuild); dirty tree; local commits; offline; detached HEAD;AUTO_UPDATE=0from the argument and from menu.conf. All skip cases exit without touching the tree. I have not tested a real game run with a real rebuild.🤖 Generated with Claude Code
@Luxuride on GitHub · 2026-12-04 12:01 UTC · original
No, and I do not think this is worth keeping, for one reason above the rest: it puts a network fetch, a
git mergeand a multi-minute rebuild before the game starts, on every launch, by default (run.conf.default:109-112), and it mutates the checkout outsidelocal/on its own — the one thing the project's layout promises it will not do.Two more:
./update.shalready does the fetch, merge, save backup and build, explicitly, when the user chooses. A second hidden copy inrun.shwill drift.AUTO_UPDATEblock inrun.conf.defaultalso lacks the# label:/# choices:lines the rest of the file uses, so the F1 menu shows an unnamed row.The version worth having is a one-line "N commits behind, run ./update.sh" notice at startup, with no merge and no build in the launch path.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.