You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ubisoft connect always connection lost, also cant delete subscriptions #209
Goto: %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a Open consts.py Replace line 15 with: CLUB_APPID = "f35adcb5-1911-440c-b1c9-48fdc1701c68" Replace line 16 with: CLUB_GENOME_ID = "5b36b900-65d8-47f3-93c8-86bdaa48ab50"
Here is a PowerShell script that will automatically update the CLUB_APPID and CLUB_GENOME_ID. If they change in the future, you can simply update the values in the script.
# --- Configuration ---# Path to GOG Galaxy Ubisoft Connect plugin's consts.py$constsPath="$env:LOCALAPPDATA\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py"# New values to be set in consts.py$clubAppId='f35adcb5-1911-440c-b1c9-48fdc1701c68'$clubGenomeId='5b36b900-65d8-47f3-93c8-86bdaa48ab50'# --- Load Required Assemblies ---Add-Type-AssemblyName System.Windows.Forms
# --- Variable Definitions ---# Regex to find a string enclosed in single or double quotes.$quotedStringRegex='["'']([^"'']+)["'']'# Regex to find the line defining CLUB_APPID.$clubAppIdLineRegex="^CLUB_APPID = $quotedStringRegex[^\n]*"# Regex to find the line defining CLUB_GENOME_ID.$clubGenomeIdLineRegex="^CLUB_GENOME_ID = $quotedStringRegex[^\n]*"# Get the current timestamp for logging purposes.$currentDateTimeString= (Get-Date).ToString()
# --- Main Logic ---# Check if the consts.py file exists.if (-not (Test-Path$constsPath)) {
$message='Could not find the consts.py file. Do you have the Ubisoft Connect extension for GOG Galaxy installed?'
[System.Windows.MessageBox]::Show($message) |Out-Nullreturn
}
# Backup the original.Copy-Item-Force -Path $constsPath-Destination "$constsPath.bak"# Read the content.$constsContent=Get-Content-Path $constsPath# Replace old values with new ones$constsContent=$constsContent-replace$clubAppIdLineRegex,"CLUB_APPID = `"$clubAppId`" # Updated at $currentDateTimeString"$constsContent=$constsContent-replace$clubGenomeIdLineRegex,"CLUB_GENOME_ID = `"$clubGenomeId`" # Updated at $currentDateTimeString"# Write updated content back to the file.$constsContent|Set-Content-Path $constsPath# Notify
[System.Windows.MessageBox]::Show('Updated Ubisoft Connect extension successfully.') |Out-Null
A batch script alternative...
@ECHOOFFSETLOCAL:: --- Configuration ---:: Path to GOG Galaxy Ubisoft Connect plugin's consts.pySET"constsPath=%LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py"SET"tempFile=%TEMP%\consts.py.tmp":: New values to be set in consts.pySET"clubAppId=f35adcb5-1911-440c-b1c9-48fdc1701c68"SET"clubGenomeId=5b36b900-65d8-47f3-93c8-86bdaa48ab50":: --- Main Logic ---:: Check if the consts.py file exists.IFNOTEXIST"%constsPath%"GOTO :FileNotFound:: Backup the original.ECHO Backing up "%constsPath%"...
COPY /Y "%constsPath%""%constsPath%.bak">NUL:: Read the content, replace lines, and write to a temporary file.ECHO Updating file...
SETLOCALEnableDelayedExpansion
(
FOR /F "usebackq tokens=* delims="%%LIN ("%constsPath%") DO (
SET"line=%%L":: Check if the line defines CLUB_APPIDECHO!line!|FINDSTR /B /C:"CLUB_APPID =">NULIF!ERRORLEVEL!EQU0 (
ECHO CLUB_APPID = "%clubAppId%"
) ELSE (
:: Check if the line defines CLUB_GENOME_IDECHO!line!|FINDSTR /B /C:"CLUB_GENOME_ID =">NULIF!ERRORLEVEL!EQU0 (
ECHO CLUB_GENOME_ID = "%clubGenomeId%"
) ELSE (
:: Otherwise, write the original lineECHO!line!
)
)
)
) >"%tempFile%"ENDLOCAL:: Replace the original file with the updated temporary file.MOVE /Y "%tempFile%""%constsPath%">NUL:: Notify user of successECHO.
ECHO Success: Updated Ubisoft Connect extension successfully.
PAUSEGOTO :EOF
:FileNotFound:: Notify user of errorECHO.
ECHO ERROR: Could not find the consts.py file.
ECHO Please check if the Ubisoft Connect extension for GOG Galaxy is installed.
ECHO.
PAUSEGOTO :EOF
Activity
GhostOfJericho72 commentedon Aug 2, 2023
Same here
Pseudo-Nym commentedon Aug 8, 2023
ditto
ChickenDestroyer commentedon Aug 8, 2023
https://www.gog.com/forum/general_beta_gog_galaxy_2.0/ubisoft_connect_connection_lost
This has a self fix until the problem is fixed itself.
GKid94 commentedon Oct 19, 2023
Can't connect

BenGamin98 commentedon Nov 9, 2023
Same
Oumbra commentedon Dec 10, 2023
Idem ici

dfinchau commentedon Dec 20, 2023
This worked for me as of today. I've copy+pasted the temporary fix here in case something happens to that post.
However if it doesn't work for you, try the following instead.
modtang commentedon Feb 1, 2024
ODST05, that doesn't work for me anymore. Getting a plugin crashed error now. :(
leonpajuelo commentedon Feb 7, 2024
It works for me! Thank you!
GKid94 commentedon Mar 7, 2024
@mbanczerowski Can you please fix this already we are waiting for months?
RaizerLeaf commentedon May 7, 2024
+1 on this. Ubisoft Connect integration is probably one of the buggiest ones and makes it super frustrating to use.
Chrille91 commentedon May 21, 2024
Awesome!
Replacing the old keys in lines 15+16
with the alternative keys from @dfinchau
worked for me! No need to restart the app or pc. It should work right after trying to connect again.
bakanisan commentedon Oct 22, 2024
This still works as of 22/10/24, thanks!
GKid94 commentedon Nov 2, 2024
Still not working



Rezdj commentedon Feb 18, 2025
for ubisoft this worked for me the 18/02/2025
Goto:
%LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a
Open consts.py
Replace line 15 with:
CLUB_APPID = "f35adcb5-1911-440c-b1c9-48fdc1701c68"
Replace line 16 with:
CLUB_GENOME_ID = "5b36b900-65d8-47f3-93c8-86bdaa48ab50"
matracey commentedon Jun 23, 2025
Here is a PowerShell script that will automatically update the
CLUB_APPIDandCLUB_GENOME_ID. If they change in the future, you can simply update the values in the script.A batch script alternative...
GKid94 commentedon Nov 29, 2025
Still a problem after 5 years...