Repository navigation
One way to ask for files: game is read as an input, every new release builds again - #429
Merged
Merged
Conversation
… pins (elripalda#393) Whether an install is a version the player picked is one rule now (picked_by_player): the same version again (Change Build, a reinstall) stays as it was, and the newest release or the one the store let out never pins the game.
…lripalda#393) An install with no version goes to the one the store let out, which for Longshot is v3.0.0 while its newest releases are nightlies. Automatic updates, Update All and the Update buttons now install the version on offer by name; Change Build and the build picker keep the version (and a first install's folder); Big Picture installs the newest by name too. A picked nightly's card says "Go Back to v3.0.0" instead of "Go to the newest".
…lripalda#393) Longshot's server keeps a few nightlies. Once the installed one is gone from the list, the update check couldn't compare "nightly-680" with "v3.0.0" and took v3.0.0 for newer, so automatic updates put players back on it. A tag that isn't a version is now compared by date: a release is newer only when it came out after the game was installed.
…ease dates with an offset read right (elripalda#393) The test only had a Windows x64 build, so the Mac test machine (arm64) found none and offered nothing. A Forgejo server may send a release date with an offset (+02:00): it's taken off now.
…ipalda#408) Set Up By Hand and the player's own build go (Use a Build You Already Have, Move Build, Where's your build?). Setup Required no longer blocks Play, Steam shortcuts or the tray. Changing a game's project keeps the picked program. Library format 3 turns hand setups and own builds into Skip Easy Setup. Unused translations removed.
Passing the game's folder is the manifest's job ("--game_data_root",
"{input:game}"), not something the player adds to launch options.
An input can now say how to tell it's the right game (check, dumps, contains), where it goes (into, name), whether the disc is unpacked (extract) and, for an update, its sha256. A field the launcher doesn't know is ignored instead of dropping the whole manifest. lift_game turns game into an input game (and game.update into an input update) with the same rules, read back through GameCopy and Extra so the existing checks run unchanged. Not wired in yet. A conversion test lifts the built-in boot profiles, and with RL_CORPUS every developer manifest and the store's catalog, checking every rule lands as it was.
…d one rule
Every game's files are named inputs now. A manifest's game (and the
store's boot profiles) is lifted into the input game, and game.update
into the input update, when the profile is read. The main input (the
first with role game) is the copy box, and {game} fills in with it.
- One setup run for every game: a file with dumps is read whole, a disc
is unpacked, files are placed, the setup step runs, settings are
written. Only then are the picks and the release it finished on kept.
- One rule (setup_state): picked files, and for a game whose setup does
more than Play, the release its setup finished on. A new release builds
again; prepare.version no longer counts. A built game needs only the
files its start reads.
- Files are checked when they're picked, never again on Play.
- Picks made in Easy Setup wait there until a setup with them works. The
snapshot and its put-back are gone.
- New shared keys never un-set another game.
- The fingerprint code is gone, and with it the "The selected files
changed" failure at the end of a run.
- Free Up Space is offered only when a new release can build without the
files: a setup step that keeps what it needs, or an unpacked disc.
Library format 3 moves game_copy and update_copy into setup_inputs, and
keeps how a game was set up for one read with its profile, so a game set
up on its current release isn't built again for this launcher.
prepare.timeout (five minutes unless set) killed full builds on a Steam Deck or an older PC every time. The step now runs as long as it needs, is given up on only after an hour without printing anything, and Cancel still stops it. prepare.timeout leaves the schema and the guide; one in a manifest is ignored.
A dump the player moved or deleted left a junction or symlink in the game's folder pointing nowhere. It counted as there, so the game failed and picking the copy again changed nothing. Now such a link counts as missing, and placing takes it away (the link, never what it pointed to) and links the copy picked now. Files the launcher didn't place stay.
run_prepare started the setup program directly, so a Windows-only release with a builder (.exe, .bat) failed with "Couldn't run its setup program" on Linux and the Steam Deck every time, even with Play With Proton on. It now runs through the same Proton the game plays with, and the paths it gets for the player's files, its data folder and its temp folder are Windows paths, as Play gives them.
Every new release of a game with a setup step builds again now. Play does it in its Finish the Update window. With this setting on (Settings, Updates), an automatic update builds straight away in the background, but only when nothing has to be asked: the player's files are still there (or the step builds from what it kept), and the update added no option to answer.
They were added for the store's catalog profiles: one catalog goes to every launcher, and boot::fit leaves out what an older one lacks. A developer's recomplauncher.json ships in its own release, and the launcher never read them from it. They're out of the schema and the guide; the dev check says they're ignored and can be deleted, and the catalog keeps using them.
A manifest with game gets its file back with game (and game.update)
moved into inputs, {game} written as {input:game}, and what's ignored now
left out (prepare.version, prepare.timeout, requires, min), with a Copy
button, ready for the next release. prepare.version is said to be
ignored: every new release builds again by itself. With RL_CORPUS, every
developer manifest is converted and read back as the same profile.
For a .cue whose label doesn't name .cue, {game} was the disc's first
data track, but {input:game} filled in with the sheet itself. The main
input's path now goes through the same rule, so the two read the same.
…on leave
The guide's Launch section, its examples and the two example manifests
ask for the player's copy as the input game, with {input:game}. game
stays in the schema only as deprecated (it still reads, as that input),
and prepare.version leaves it: every new release builds again, which
the guide now says. SETUP-INPUTS.md describes what's kept now (the
picks and the release a setup finished on) instead of the fingerprint.
…screens go The setup screen's big box is the game's main input (with its own file types for the picker), and every other file it asks for, the update included, is a row under it, picked like the rest. The update's own stage, card and buttons, desktop and Big Picture, are gone. Before you play lists each required file the game asks for. New texts are in every language; the ones no longer used are out.
…n Play It had no release mark, so Play opened Easy Setup as for a game never set up. It's now marked as set up before this launcher, which isn't the installed release, so Play builds it again in the Finish the Update window, as after any new release.
After an update, a game set up before showed "Insert it" for its copy, which was still picked: only a new build was due. It shows the copy it's set up with, as before the update.
…ld Now The switch is in each game's Manage tab (for a game whose new release builds again), not in Settings. Builds after updates wait in a queue and run one at a time, never beside another setup. After an update that needs a build, the toast offers Build Now, and so does the game's menu while it's due: it joins the queue, or opens Finish the Update when something has to be asked first.
The schema, the guide and the Developer tab say so, so projects move their copy to inputs before then.
The updated toast and the game's menu no longer offer Build Now. A game whose Build Again After Updates is on starts its build as soon as the update has downloaded (when nothing has to be asked); any other game builds when the player presses Play.
…em in the background
…oads once the build before it ends
This was referenced Nov 22, 2026
Closed
…nput named game is the new way
…ill writes its own defaults
…mes the disc it reads
Xarishark
marked this pull request as ready for review
November 22, 2026 06:52
This was referenced Nov 22, 2026
elripalda
pushed a commit
to elripalda/RecompLauncher-SDK
that referenced
this pull request
Nov 23, 2026
… one program, and in step with the launcher's docs (elripalda/RecompLauncher#429, elripalda/RecompLauncher#440) (#9) * Guide, standards, schema and agent file: ship one program, and examples that run it for setup and play * Guide, setup inputs, schema and examples: named inputs are the one way to ask for files, and every new release builds again (launcher #429) Synced from the launcher's docs: #429 (the input named game replaces the game field, which is read as it until 1.0; one file per input, one argument per file; prepare.version and timeout are gone, a new release always runs the setup step again), with #340 (Finish the Update), #368 (PlayStation title IDs) and #369 (Launcher Support), and the two setup-step lines on launcher #440 (finish at once when the build is current; no releases for changes players don't get). * Agent file and README: the copy is the input game, and the agent file carries the synced guide, examples and schema
rengar-91948
pushed a commit
to gminustwo/primerecomp
that referenced
this pull request
Nov 23, 2026
…are.timeout - recomplauncher.json: the input base gets check.nup_build_id 67c9ca1428222752, the v1.0.0 main module's build ID that the setup accepts (runtime/ui/launcher.mm BUILD_ID). The launcher reads it from the picked folder's exefs/main and refuses an updated copy right away, with the build it found, instead of after the setup step starts. - prepare.timeout removed: RecompLauncher no longer limits how long the step takes (only an hour without any output stops it), and its schema no longer has the field, so the file stopped matching it. - tools/test_recomplauncher.py: checks the build ID matches the game's and that there's no timeout; docs/recomplauncher.md says the same. Needs the RecompLauncher release with named-input checks (elripalda/RecompLauncher#429): earlier launchers don't know check on an input and would not read the file, and fall back to a 5 minute limit without timeout.
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.
Named inputs are now the one way a
recomplauncher.jsonasks the player for files, and every game goes through one setup and one rule for "is it set up". A manifest'sgamefield (and every store profile's copy) is read as the inputgame, with every rule it had. So nothing changes for the 175 projects that use it, and each can move to inputs when it likes;gameis read until RecompLauncher 1.0, then dropped. On top of that: every new release builds again by itself, a per-game Build Again After Updates, and fixes for the places players got stuck.This absorbs #408 (two setup roads) and #412 (versions kept, deleted nightlies). Both are closed in favour of this one.
Everything that changed
1. One way to ask for files (the SDK)
gamedid. An input can now carry:check: how to tell it's the right game (a file in it, an ISO 9660 or Xbox disc ID, a Switch build ID, IDs, N64 ID, region and revision);dumps: known good dumps (CRC32, the verified badge);contains: what the folder must hold once placed;intoandname: where it goes in the game's folder, and the name a single file must have there;extract: a disc image the launcher unpacks (xdvdfsoriso9660);sha256: the one known file, for an update.deny_unknown_fieldsis gone).gameis read as the inputgamewhen a profile is read (Profile::lift_game), andgame.updateas the inputupdate(roleupdate). The store's boot profiles go the same way. The old check, place and unpack code runs unchanged on them (Input::as_copy()gives theGameCopyrules,as_extra()theExtrarules), so no behaviour is reimplemented.game, else the first picked one) is the copy box everywhere.{game}fills in with it, and{input:game}now goes through the same rule as{game}: for a.cuewhose label doesn't name.cue, both are the disc's first data track.game: read as the inputgameuntil 1.0;prepare.version: ignored, since every new release builds again;prepare.timeout: ignored, since there's no time limit any more;requiresandmin: the launcher never read them from a developer's manifest, only from the store's catalog.boot::fitstays for the catalog.2. One setup run for every game
setup_run/setup_work) for copy games and inputs games alike. It:dumps(the rest stop reading 20+ GB packages on setup);setup_before, put_back_setup, SETUP_WINDOWS…) is gone, along with the half-applied picks it could leave after a webview crash.donebytes, taken for "step finished"). That was there for one big file too.primerecomp.ini, with its Steam Deck preset) then skipped them.3. One rule for "is it set up", and every new release builds again
set_up).prepare.versionno longer counts, so a project that forgets to bump it no longer leaves players on an old build (the HeyListen and Longshot v3.0.0 cases). Reinstalling the same release doesn't build again.prepare.doneall there, and a dump the start doesn't name can be gone.keeps_copy) builds again without the player's copy. The arguments that name the copy are left out.4. Library format 3, and the upgrade from older launchers
game_copy/update_copybecomesetup_inputs.game/.update;copy_checkbecomesinput_checks;inputs_ready+prepare_versionbecomeset_up, the release the last good setup finished on, per game in a recomp of several games.5. Build Again After Updates (per game)
6. Where players got stuck
7. Free Up Space
keeps_copy), or a disc the launcher unpacked into the game's folder. Every other game keeps its files, since every release now builds from them.8. The setup screens
9. From #408: two setup roads
build_dir,prebuilt.--game_data_rootcheck. Passing the folder is the manifest's job ("--game_data_root", "{input:game}").10. From #412: the version you picked stays picked
picked_by_player), and the store's version never pins a game.11. The Developer tab
gamemoved into inputs,{game}written as{input:game}, and what's ignored now left out (prepare.version,prepare.timeout,requires,min).gameis read until 1.0, and thatrequires/minare ignored and can be deleted.12. Docs and schema
roleandgamedescriptions, the multi-disc example): the top-levelgamefield is deprecated and the input namedgameis the new way; a one-file game is the inputgame; a game on several discs isdisc1..discN, all roledisc, each with acheck, and no rolegame; DLC, update and keys each have their role.--flag={input:id}argument. A folder input is only for a copy that is a folder (an extracted PS3 game, a Switch game'sexefsandromfs), never a folder of discs or DLC.docs/DEVELOPERS.md) asks for the copy as the inputgame, with{input:game}, in its Launch section and examples. It says every new release builds again, and that Build Again After Updates is a per-game switch.gameonly as deprecated (read until 1.0).prepare.version,prepare.timeout,requiresandminare out, and the inputs gain their new options.docs/SETUP-INPUTS.mddescribes what's kept now (the picks, and the release a setup finished on) instead of the fingerprint.Tests
cargo test: 996 on Linux (withRL_CORPUS: all 224 developer manifests and the store's 643 profiles lift and convert to the same rules, and the Developer tab's converted file reads back as the same profile), 889 on Windows (dead links: junctions).node --test tests/: 710.game;Patch notes
Setup
Updates
Everything else
--game_data_rootyourself. The game's own setup file passes it. — Improved by @Xarishark (#429).recomplauncher.jsonin today's format, ready to copy, withgamemoved into inputs and the fields the launcher ignores now left out. — Added by @Xarishark (#429).For the website (SDK guide)
game(call itgame), passed as{input:game}.gameis no longer documented; it still reads as that input until RecompLauncher 1.0, which drops it, and the Developer tab converts a file for you.check,dumps,contains,into,name,extractand (for an update)sha256, the optionsgamehad. Only an input withdumpsis read whole on setup. A field the launcher doesn't know is ignored.prepare.version(andprepare.timeout; a step is only stopped after an hour without output). Remove the "Launcher features" (requires,min) section: the launcher reads the manifest in the release, so it never needs them.gamefield is deprecated; the input namedgameis the new way. A one-file game: one inputgame(rolegame), passed as{input:game}. A game on several discs: every disc roledisc(idsdisc1..discN, labels "Disc 1".."Disc N", acheckon each), with no input of rolegame; the launcher makes Disc 1 the copy box. DLC: roledlc, optional, one input per package. An update: roleupdate, usually withinto/name. Keys: asharedinput, never a file of the game's own. Replace "call the copygame" with "call itgamewhen the game is one file".check.idsreads an Xbox 360 game's title ID too ("4D5307FA"), from thedefault.xexin a disc image or folder and from a DLC or Games on Demand package. For Xbox 360 games, use it instead offile: "default.xex", which every Xbox 360 disc has.--disc1={input:disc1},--dlc1={input:dlc1}). Never a folder of discs or DLC; a folder input is only for a copy that is a folder (an extracted PS3 game, a Switch game'sexefsandromfs).keeps_copy, or an input withextract.