Repository navigation
A player's own build is checked against prepare.done, and works when a profile lists done files - #285
Merged
Conversation
…am; it works when a profile lists done files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Use a Build You Already Have" lets a player point the launcher at a build they already made, so it isn't built again. Two things were wrong with it:
.exe,.AppImage,.x86_64or executable, in it or in itsbinfolder. That guess doesn't fit every project: Longshot and Hookshot, for example, start from their AppImage in the release, and their build folder holds the game's data.prepare.done. The player's folder replaced the build folder for every path in the profile exceptprepare.done, and the check for a build already there gives up wheneverdoneis set. Sosetup_use_buildalways failed with "Its build isn't on this PC anymore." SSX is one such profile.Now the profile says what a finished build looks like:
prepare.done. The files it lists in the build folder must be in the folder the player picks. If one isn't, the error names it: "It has no data/main.pak, which a finished build has. Pick the folder your build is in." A profile withoutdonetakes any folder with files in it. The rest of the check is unchanged: picking a file or itsbinfolder uses the folder above, and the launcher's own folder for the game is refused.prepare.donemoves with the player's build, like the start arguments, settings files, saves and folders already do. So the game counts as set up from it, and a missing file is said by name ("That build isn't finished: … is missing.").setup_use_buildaccepts a build whosedonefiles are all there. Withoutdone, it works as before.Nothing here knows a project by name, and there's no new field:
prepare.donealready exists. The developer guide and the schema description say it's also what a player's own build must have.Separate from #284 (Easy Setup in steps), which calls the same command, with the folder, from its "Choose That Folder" line. The two don't depend on each other.
For the website (SDK guide): under
prepare.done, add that its files in the build folder are also what a player's own build must have before the launcher uses it, so list one your build always leaves (like{install}/YourGame/game.pak). Withoutdone, any folder with files in it is taken.Tests (Windows VM, upstream main with this change):
cargo test: 654 passed.lib.rs: a build with only data is taken when there's nodone; a folder missing adonefile is refused, and the error names the file.profile.rs:donemoves with the player's build (one outside the build folder stays), and nothing is missing withoutdone. The three existing checks pass with the new argument.node --test tests/: 335 tests, 324 pass, 11 skipped, 0 fail.Not tried in the running app yet.