Series X 1440p / DLSS fails with 'code 1' when game_scarlett_master.exe was patched in place (e.g. FPS unlock) #6

Closed
opened 2026-11-30 02:23:04 +00:00 by github-bot · 3 comments
Owner

@⁠HctrRB on GitHub · 2026-11-27 14:23 UTC · original

What happens

With the Series X profile at 1440p and DLSS on, the launcher shows:

The title ended before its window appeared (code 1).

The log ends with:

upscaling      DLSS on, frame generation on, scene at the quality scale (0.6666667)
build          unknown (f459c8a5f84b786d96ae1766eff71b7ec10eed668c5cc398ae699edfa5ef13af)
Error: 1440p output is only known for the retail build b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93

Streamline is fine: victory.exe upscaler-check loads SDK 2.14.16 and reports DLSS and Frame Generation as supported (RTX 4070 SUPER, driver 621.1). The 1080p class (Series S profile) is not affected.

Cause

The game is v1.0.2.1, but its game_scarlett_master.exe had been patched in place by another tool, which left the stock file as game_scarlett_master.exe.bak:

  • game_scarlett_master.exe.bak: BLAKE3 b99f876b…239e93, the retail build that native_1440p.rs expects.
  • game_scarlett_master.exe: BLAKE3 f459c8a5…ef13af, same size (120181760 bytes) and same PDB key.
  • The two files differ in 6 bytes: three 16-bit values changed from 30 to 300 (file offsets 0x02214ECD, 0x02214F3B, 0x02214F63). This looks like an FPS-unlock patch.

victory_loader::prepare hashes the whole file (original_hash in prepare.rs), and native_1440p::prepare / prepare_upscaler refuse anything but the retail hash. So a 6-byte change shows up as an unknown build, and the error doesn't say that the copy was modified or what to do about it.

Workaround

Restore the stock exe:

Rename-Item game_scarlett_master.exe game_scarlett_master.exe.patched
Copy-Item game_scarlett_master.exe.bak game_scarlett_master.exe

After that the hash matches b99f876b… and the 1440p / DLSS path is taken. For more than 30 fps, use the launcher's 60 fps target or Frame Generation instead of patching the exe.

Suggestion

Make the error say what to do, and point to a retail copy next to the exe when there is one. I have a small patch for apps/victory that does this (no check is relaxed: a modified image is still refused):

  • native_1440p.rs: both refusals add that the exe is either another build or a 1.0.2.1 copy modified in place, and that the fix is to restore the stock exe or choose the 1080p class / DLSS off.
  • run.rs: when the build is unknown, look for a file next to the exe that is named after it (.bak, .orig, …), has the same size and hashes to RETAIL_BUILD. If one is found, print which file to copy back.

I can open a PR with it if you're interested. It has not been compiled yet.

**@⁠HctrRB** on GitHub · 2026-11-27 14:23 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/6) ### What happens With the Series X profile at 1440p and DLSS on, the launcher shows: > The title ended before its window appeared (code 1). The log ends with: ``` upscaling DLSS on, frame generation on, scene at the quality scale (0.6666667) build unknown (f459c8a5f84b786d96ae1766eff71b7ec10eed668c5cc398ae699edfa5ef13af) Error: 1440p output is only known for the retail build b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93 ``` Streamline is fine: `victory.exe upscaler-check` loads SDK 2.14.16 and reports DLSS and Frame Generation as supported (RTX 4070 SUPER, driver 621.1). The 1080p class (Series S profile) is not affected. ### Cause The game is v1.0.2.1, but its `game_scarlett_master.exe` had been patched in place by another tool, which left the stock file as `game_scarlett_master.exe.bak`: - `game_scarlett_master.exe.bak`: BLAKE3 `b99f876b…239e93`, the retail build that `native_1440p.rs` expects. - `game_scarlett_master.exe`: BLAKE3 `f459c8a5…ef13af`, same size (120181760 bytes) and same PDB key. - The two files differ in 6 bytes: three 16-bit values changed from 30 to 300 (file offsets `0x02214ECD`, `0x02214F3B`, `0x02214F63`). This looks like an FPS-unlock patch. `victory_loader::prepare` hashes the whole file (`original_hash` in `prepare.rs`), and `native_1440p::prepare` / `prepare_upscaler` refuse anything but the retail hash. So a 6-byte change shows up as an unknown build, and the error doesn't say that the copy was modified or what to do about it. ### Workaround Restore the stock exe: ```powershell Rename-Item game_scarlett_master.exe game_scarlett_master.exe.patched Copy-Item game_scarlett_master.exe.bak game_scarlett_master.exe ``` After that the hash matches `b99f876b…` and the 1440p / DLSS path is taken. For more than 30 fps, use the launcher's 60 fps target or Frame Generation instead of patching the exe. ### Suggestion Make the error say what to do, and point to a retail copy next to the exe when there is one. I have a small patch for `apps/victory` that does this (no check is relaxed: a modified image is still refused): - `native_1440p.rs`: both refusals add that the exe is either another build or a 1.0.2.1 copy modified in place, and that the fix is to restore the stock exe or choose the 1080p class / DLSS off. - `run.rs`: when the build is unknown, look for a file next to the exe that is named after it (`.bak`, `.orig`, …), has the same size and hashes to `RETAIL_BUILD`. If one is found, print which file to copy back. I can open a PR with it if you're interested. It has not been compiled yet.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:23:04 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-27 21:20 UTC · original

Addressed in v0.2.0-pre.3 and pre.4: when the executable is not the unchanged build, the launcher says so instead of "code 1", and names an unchanged copy beside it (for example .exe.bak) when there is one. The 1440p and frame-rate patches check what they change by hash and leave a different build alone. For a higher frame rate, the launcher's "Frame rate" setting does it at load without changing the file (experimental).

Latest: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4

**@⁠readmet3xt-lab** on GitHub · 2026-11-27 21:20 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/6#issuecomment-7228352489) Addressed in v0.2.0-pre.3 and pre.4: when the executable is not the unchanged build, the launcher says so instead of "code 1", and names an unchanged copy beside it (for example `.exe.bak`) when there is one. The 1440p and frame-rate patches check what they change by hash and leave a different build alone. For a higher frame rate, the launcher's "Frame rate" setting does it at load without changing the file (experimental). Latest: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-29 08:11 UTC · original

Closing: since v0.2.0-pre.3 the launcher says when the executable is not the unchanged build and names an unchanged copy beside it, instead of 'code 1'. Current release: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.8.1.

**@⁠readmet3xt-lab** on GitHub · 2026-11-29 08:11 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/6#issuecomment-7252941561) Closing: since v0.2.0-pre.3 the launcher says when the executable is not the unchanged build and names an unchanged copy beside it, instead of 'code 1'. Current release: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.8.1.
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 01:08 UTC · original

Hi, and thanks for the report.

This repository is public, and to keep the project safe nothing posted here may name or identify the game, or point to where copies come from. Could you please edit the following, removing:

  • @⁠HctrRB, your issue and its title: the game executable's file name and the build number (write <exe> and "the supported build" instead).

Once it is edited, we clear the old revisions from the post's edit history on our side.

Technical details (GPU, settings, errors, the log with the game folder replaced) are very welcome. See the issue template for what helps. Thank you!

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 01:08 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/6#issuecomment-7297132405) Hi, and thanks for the report. This repository is public, and to keep the project safe nothing posted here may name or identify the game, or point to where copies come from. Could you please edit the following, removing: - @⁠HctrRB, your issue and its title: the game executable's file name and the build number (write `<exe>` and "the supported build" instead). Once it is edited, we clear the old revisions from the post's edit history on our side. Technical details (GPU, settings, errors, the log with the game folder replaced) are very welcome. See the issue template for what helps. Thank you!
This discussion has been locked. Commenting is limited to contributors.
No description provided.