Install: Windows: Successful build rejected with "The game folder is missing from this version" #2661

Closed
opened 2026-11-27 11:11:46 +00:00 by Goulagman · 3 comments

What you used

Longshot Launcher

Version

Launcher v 190 nightly

Channel

Nightly

Where it stopped

Installing or updating the launcher or the builder

The error

Exact error displayed by the launcher:

[ERROR] The game folder is missing from this version.

The builder's final event immediately before the error:

11:52:07.689 stdout
{"v":1,"type":"done","folder":"%USERPROFILE%\\AppData\\Local\\Longshot\\data\\versions\\nightly-842-86b3b9e4\\builds\\default","seconds":225.0140462,"compile_seconds":208.1664622,"previous_seconds":null}

11:52:07.800 launcher
[ERROR] The game folder is missing from this version.

I manually verified the output folder using PowerShell:

Test-Path -LiteralPath $folder

Result:

True

The directory exists and contains longshot.exe (806,823,424 bytes), longshot_build.json, and the other generated files.

The command exited with code 0.

Operating system and free space on the output drive

Windows 10.0.28000, 172Gb free on my drive.

Visual Studio or Build Tools version, and Windows SDK version

No response

Log

Additional code investigation (possible cause)

I also inspected the launcher's source code and noticed a potentially related inconsistency.

In src/game/wizard.rs, the post-build validation uses a direct path comparison:

folder.parent() == p.exe.parent().map(|v| v.join("builds")).as_deref()

However, in src/game/versions.rs, the Version::owns_build() function already includes a Windows-specific canonicalize() fallback when comparing build-folder paths.

This suggests that the post-build validation might reject two paths that refer to the same directory but have different Windows path representations (for example, paths with and without the \\?\ prefix).

Could this validation use the same Windows-aware path comparison as Version::owns_build(), or at least log both paths when the check fails?

This may explain why the builder successfully generates the game folder, but the launcher immediately reports that it is missing.

Before you send it

  • It still fails on the newest release.
  • I searched the open issues for this error.
  • I'm not attaching game files or anything built from them.
### What you used Longshot Launcher ### Version Launcher v 190 nightly ### Channel Nightly ### Where it stopped Installing or updating the launcher or the builder ### The error ```text Exact error displayed by the launcher: [ERROR] The game folder is missing from this version. The builder's final event immediately before the error: 11:52:07.689 stdout {"v":1,"type":"done","folder":"%USERPROFILE%\\AppData\\Local\\Longshot\\data\\versions\\nightly-842-86b3b9e4\\builds\\default","seconds":225.0140462,"compile_seconds":208.1664622,"previous_seconds":null} 11:52:07.800 launcher [ERROR] The game folder is missing from this version. I manually verified the output folder using PowerShell: Test-Path -LiteralPath $folder Result: True The directory exists and contains longshot.exe (806,823,424 bytes), longshot_build.json, and the other generated files. The command exited with code 0. ``` ### Operating system and free space on the output drive Windows 10.0.28000, 172Gb free on my drive. ### Visual Studio or Build Tools version, and Windows SDK version _No response_ ### Log ### Additional code investigation (possible cause) I also inspected the launcher's source code and noticed a potentially related inconsistency. In `src/game/wizard.rs`, the post-build validation uses a direct path comparison: ```rust folder.parent() == p.exe.parent().map(|v| v.join("builds")).as_deref() ``` However, in `src/game/versions.rs`, the `Version::owns_build()` function already includes a Windows-specific `canonicalize()` fallback when comparing build-folder paths. This suggests that the post-build validation might reject two paths that refer to the same directory but have different Windows path representations (for example, paths with and without the `\\?\` prefix). Could this validation use the same Windows-aware path comparison as `Version::owns_build()`, or at least log both paths when the check fails? This may explain why the builder successfully generates the game folder, but the launcher immediately reports that it is missing. ### Before you send it - [x] It still fails on the newest release. - [x] I searched the open issues for this error. - [x] I'm not attaching game files or anything built from them.
Member

From Discord:

Additional reproduction from the original reporter's thread: RTX 4070 Ti / i7-14700KF, Windows, launcher nightly-190-560f789a building Longshot nightly-842-86b3b9e4 with DLSS and shader preparation enabled. Telemetry says all build stages completed, but final outcome is failed with “The builder did not complete the build.” The launcher diagnostics say only “Game build did not complete.” Explorer shows eight version directories (nightly-842-86b3b9e4 and .instance-2 through .instance-8). No build log was supplied. Windows version, free space, precise selected game-folder/build settings, and outcome after retry remain unknown.

From [Discord](https://discord.com/channels/1569849200047427645/1570984952651055114/1575825790992523295): Additional reproduction from the original reporter's thread: RTX 4070 Ti / i7-14700KF, Windows, launcher nightly-190-560f789a building Longshot nightly-842-86b3b9e4 with DLSS and shader preparation enabled. Telemetry says all build stages completed, but final outcome is failed with “The builder did not complete the build.” The launcher diagnostics say only “Game build did not complete.” Explorer shows eight version directories (`nightly-842-86b3b9e4` and `.instance-2` through `.instance-8`). No build log was supplied. Windows version, free space, precise selected game-folder/build settings, and outcome after retry remain unknown.
Contributor

Claiming this, fixing it in LongshotLauncher; testing on Windows 11 with an RTX 4070.

Where: the error comes from src/game/wizard.rs in LongshotLauncher, after the builder finishes:

ensure!(
    folder.parent() == p.exe.parent().map(|v| v.join("builds")).as_deref() && folder.is_dir(),
    "The game folder is missing from this version."
);

folder is the builder's done.folder as it printed it. On Windows, Path equality is case-sensitive, and it treats \?\C:\... and C:\... as different prefixes. So when the folder exists but the builder and the launcher spell the version folder differently, the check fails, and that matches this report (Test-Path is True, longshot.exe is there, exit code 0). I'll confirm which spelling differs here, then compare the two as the same folder on disk, with a launcher test that fails on main first.

Prior work: none for this check. Searched Longshot and LongshotLauncher, all states: "game folder is missing", canonicalize, verbatim, "builds folder". Related: @dyst's MagicBeanDev/LongshotLauncher#298 (WIP), for MagicBeanDev/LongshotLauncher#297. It changes how the folders chosen in Settings are saved, not this comparison, and this player used the default folder. If the cause turns out to be the same verbatim spelling, I'll build on #298 instead of beside it.

Claiming this, fixing it in LongshotLauncher; testing on Windows 11 with an RTX 4070. **Where:** the error comes from `src/game/wizard.rs` in LongshotLauncher, after the builder finishes: ```rust ensure!( folder.parent() == p.exe.parent().map(|v| v.join("builds")).as_deref() && folder.is_dir(), "The game folder is missing from this version." ); ``` `folder` is the builder's `done.folder` as it printed it. On Windows, `Path` equality is case-sensitive, and it treats `\?\C:\...` and `C:\...` as different prefixes. So when the folder exists but the builder and the launcher spell the version folder differently, the check fails, and that matches this report (`Test-Path` is True, `longshot.exe` is there, exit code 0). I'll confirm which spelling differs here, then compare the two as the same folder on disk, with a launcher test that fails on `main` first. **Prior work:** none for this check. Searched Longshot and LongshotLauncher, all states: "game folder is missing", canonicalize, verbatim, "builds folder". Related: @dyst's https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/298 (WIP), for https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/issues/297. It changes how the folders chosen in Settings are saved, not this comparison, and this player used the default folder. If the cause turns out to be the same verbatim spelling, I'll build on #298 instead of beside it.
Contributor

Fix up: MagicBeanDev/LongshotLauncher#299, ready for review.

Cause: when the versions sit in a data folder apart from the launcher home, library::reserve canonicalizes the version folder, so the launcher starts the builder by its \?\C:\... path. Windows gives the builder its own path plainly, so the builder reports C:\...\builds\default, and the check after the build compared the two spellings as paths. An installed Windows launcher keeps its data in %LOCALAPPDATA%\Longshot\data, apart from its home, so every installed copy took this path.

Reproduced here on Windows 11 with the nightly-842 builder: the launcher from main stopped with this error, with longshot.exe (806,823,424 bytes) in place. The fixed launcher, with the same home, installed the version, and Play started the game.

Fix up: https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/299, ready for review. **Cause:** when the versions sit in a data folder apart from the launcher home, `library::reserve` canonicalizes the version folder, so the launcher starts the builder by its `\?\C:\...` path. Windows gives the builder its own path plainly, so the builder reports `C:\...\builds\default`, and the check after the build compared the two spellings as paths. An installed Windows launcher keeps its data in `%LOCALAPPDATA%\Longshot\data`, apart from its home, so every installed copy took this path. Reproduced here on Windows 11 with the nightly-842 builder: the launcher from `main` stopped with this error, with `longshot.exe` (806,823,424 bytes) in place. The fixed launcher, with the same home, installed the version, and Play started the game.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#2661
No description provided.