From 52a5c03ad8d26e9312cd4b9088df1f0269763962 Mon Sep 17 00:00:00 2001
From: peshomir <80340328+peshomir@users.noreply.github.com>
Date: Sat, 16 Aug 2025 10:27:58 +0300
Subject: [PATCH 1/3] Fix for game update v2.10.9
---
patches/patches.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/patches/patches.js b/patches/patches.js
index a67e13a..5cbc57c 100644
--- a/patches/patches.js
+++ b/patches/patches.js
@@ -35,8 +35,8 @@ function applyPatches(/** @type {ModUtils} */ { replace, replaceOne, replaceRawC
+ " Github repository",`);
// Add update information
- replaceRawCode(`new k("🚀 New Game Update","The game has been updated! Please reload the game.",!0,[`,
- `new k("🚀 New Game Update","The game has been updated! Please reload the game."
+ replaceRawCode(`new k("🚀 New Game Update","The game was updated! Please reload the game.",!0,[`,
+ `new k("🚀 New Game Update","The game was updated! Please reload the game."
+ "
FX Client is not yet compatible with the latest version of the game.
Updates should normally be available within a few hours. You can still use FX to play in singleplayer mode.
",!0,[`
);
From 12a580c742d28097306df4b735a2290990a908ab Mon Sep 17 00:00:00 2001
From: peshomir <80340328+peshomir@users.noreply.github.com>
Date: Sat, 16 Aug 2025 10:47:43 +0300
Subject: [PATCH 2/3] Message in fx update notification was inaccurate, you
have to press the actual "Update" button, only reloading no longer works
---
static/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/static/index.html b/static/index.html
index c50c13f..027e6ef 100644
--- a/static/index.html
+++ b/static/index.html
@@ -128,8 +128,8 @@
-
A new version of FX is available! Reload to update
-
+
A new version of FX is available! Click the "Update" button below to update
+
From 2e5daab81e25cff24beb9192582cba9115b8588f Mon Sep 17 00:00:00 2001
From: peshomir <80340328+peshomir@users.noreply.github.com>
Date: Sat, 16 Aug 2025 10:54:39 +0300
Subject: [PATCH 3/3] Fix win counter counting wins in replays
---
patches/patches.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patches/patches.js b/patches/patches.js
index 5cbc57c..0a37b74 100644
--- a/patches/patches.js
+++ b/patches/patches.js
@@ -60,7 +60,7 @@ function applyPatches(/** @type {ModUtils} */ { replace, replaceOne, replaceRawC
// Increment win counter on wins
replaceRawCode(`=function(sE){a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`,
`=function(sE){
- if (${playerId} === sE && !${gIsSingleplayer})
+ if (${playerId} === sE && !${gIsSingleplayer} && !${dict.game}.${dict.gIsReplay})
__fx.wins.count++, window.localStorage.setItem("fx_winCount", __fx.wins.count),
xD(0,"Your Win Count is now " + __fx.wins.count,3,sE,ad.gN,ad.kl,-1,!0);
a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`);