From 8f9015b2d4bac3664409e6c6cde4ff5bfc6926e3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 25 Jun 2026 17:01:30 +0000 Subject: [PATCH] kyber: document registry fix for Origin language error and GPU crash workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add troubleshooting for 'Origin Error: title installed in language not entitled to play' — Maxima's umu-run reg commands fail silently on some systems; manual wine64 regedit import of Origin locale keys fixes it - Add windowed-mode / HDR fix for SWBF2 crash during level load on integrated GPUs (Intel Iris Xe, DXVK rendering crash) - Document fix in both README.md and script header comments Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs --- README.md | 35 +++++++++++++++++++++++++++++++++++ scripts/setup-kyber-linux.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/README.md b/README.md index 43fc8a2..4a6e0d2 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,31 @@ find ~/.steam/steam/steamapps -name "starwarsbattlefrontii.exe" 2>/dev/null | he ``` Paste that path into the SET GAME FOLDER dialog. +**If Origin Error: "title installed in language not entitled to play":** +Maxima's Wine prefix is missing locale registry keys — its setup commands fail silently on some systems. Fix: +```bash +cat > /tmp/swbf2_fix.reg << 'EOF' +Windows Registry Editor Version 5.00 +[HKEY_LOCAL_MACHINE\Software\Origin Games\1035052] +"locale"="en_US" +"displayname"="STAR WARS Battlefront II" +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Origin Games\1035052] +"locale"="en_US" +"displayname"="STAR WARS Battlefront II" +[HKEY_LOCAL_MACHINE\Software\Electronic Arts\EA Desktop] +"InstallSuccessful"="true" +[HKEY_LOCAL_MACHINE\Software\Origin] +"InstallSuccessful"="true" +"ClientPath"="C:\\Windows\\System32\\conhost.exe" +[HKEY_CURRENT_USER\Control Panel\International] +"Locale"="00000409" +"LocaleName"="en-US" +"sLanguage"="ENU" +EOF +WINEPREFIX=~/.local/share/maxima/wine/prefix wine64 regedit /tmp/swbf2_fix.reg +``` +Then restart Kyber and try again. + **First run (one-time setup):** 1. Click **EA Account** → log in with your EA credentials in the browser 2. Click **Skip** on Nexus Mods (optional, only needed for mods) @@ -211,6 +236,16 @@ Paste that path into the SET GAME FOLDER dialog. to `/etc/sysctl.d/99-userns.conf` to persist across reboots. Without this fix Kyber fails with: `bwrap: setting up uid map: Permission denied` +**If SWBF2 crashes immediately when a level starts loading:** +Likely a DXVK rendering issue, especially on integrated GPUs (Intel Iris Xe, etc.). +Disable fullscreen and HDR in the game settings file — the game writes this on first run: +```bash +PROFILE=$(find ~/.local/share/maxima -name "ProfileOptions_profile" 2>/dev/null | head -1) +sed -i 's/GstRender.FullscreenEnabled 1/GstRender.FullscreenEnabled 0/' "$PROFILE" +sed -i 's/GstRender.EnableHDR 1/GstRender.EnableHDR 0/' "$PROFILE" +``` +Then restart Kyber and try hosting/joining again. + **What does NOT work:** - Running the Windows `kyber_launcher.exe` under Wine/Proton: EA's auth callback uses the `eadesktop://` URI scheme which has no Linux handler, diff --git a/scripts/setup-kyber-linux.sh b/scripts/setup-kyber-linux.sh index 7759b47..5a9da8d 100755 --- a/scripts/setup-kyber-linux.sh +++ b/scripts/setup-kyber-linux.sh @@ -91,6 +91,36 @@ # kernel.unprivileged_userns_clone = 1 # kernel.apparmor_restrict_unprivileged_userns = 0 # +# ── "Origin Error: title installed in language not entitled" ─────────────── +# +# If Kyber launches SWBF2 but the game shows an Origin Error about language +# entitlement, Maxima's Wine prefix is missing the Origin locale registry keys. +# Maxima writes these via umu-run reg commands on first run, but they can fail +# silently (exit code 1) leaving the keys absent. +# +# Fix: manually import the registry keys into Maxima's Wine prefix. +# Create a file (e.g. /tmp/swbf2_fix.reg) with: +# +# Windows Registry Editor Version 5.00 +# [HKEY_LOCAL_MACHINE\Software\Origin Games\1035052] +# "locale"="en_US" +# "displayname"="STAR WARS Battlefront II" +# [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Origin Games\1035052] +# "locale"="en_US" +# "displayname"="STAR WARS Battlefront II" +# [HKEY_LOCAL_MACHINE\Software\Electronic Arts\EA Desktop] +# "InstallSuccessful"="true" +# [HKEY_LOCAL_MACHINE\Software\Origin] +# "InstallSuccessful"="true" +# "ClientPath"="C:\\Windows\\System32\\conhost.exe" +# [HKEY_CURRENT_USER\Control Panel\International] +# "Locale"="00000409" +# "LocaleName"="en-US" +# "sLanguage"="ENU" +# +# Then import it: +# WINEPREFIX=~/.local/share/maxima/wine/prefix wine64 regedit /tmp/swbf2_fix.reg +# # ── "Game Not Found" dialog ──────────────────────────────────────────────── # # If Kyber shows "Game Not Found" after launching: