From 747c90eb0308eef0bfe765a59f738526b26ffdce Mon Sep 17 00:00:00 2001 From: OneFourOne <71578430+OneFourOne@users.noreply.github.com> Date: Thu, 17 Dec 2020 09:35:53 -0500 Subject: [PATCH 1/4] Update Changelog --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66f1c8b6..a831aab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,23 +30,24 @@ The format is based on [Keep a Changelog v0.3.0](http://keepachangelog.com/en/0. - Add r_specularCustomMaps Dvar (#36) - Unlock safeArea_horizontal and safeArea_vertical Dvars (#42) - Unlock cg_fovscale Dvar (#47) +- Print script runtime errors when developer mode is enabled (#55) ### Changed - Stats are now separate for each mod (#6). Player stats are copied to `fs_game` folder if no stats exist for this mod yet. Keep in mind this also means that level, XP and classes will not be synchronized with the main stats file after this point. - Reduced duration of toasts (#48) -- Removed old updater functionality +- Removed old updater functionality (#54) - Use old bot names if bots.txt is not found (#46) -- Removed Steam integration because Steam updates kept breaking it (#51) ### Fixed - Fixed a node system related crash (#45) - Fixed an issue that made dedicated servers crash when info was requested during map rotation (#43) - Fixed an issue where the game was trying to decrypt gsc files which caused it to crash when loading mods (#35) +- Fixed an issue causing the game to crash when Steam was running in the background (#56) -#######################End of official IW4x Development - Project goes Open Source####################### +####End of official IW4x Development - Project goes Open Source#### ## [0.6.0] - 2018-12-30 From 85fbdbd0829e04b0bed65e5acab78690b3651bf1 Mon Sep 17 00:00:00 2001 From: OneFourOne <71578430+OneFourOne@users.noreply.github.com> Date: Thu, 17 Dec 2020 09:38:11 -0500 Subject: [PATCH 2/4] [Proxy] Fix steam proxy --- src/Steam/Proxy.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Steam/Proxy.cpp b/src/Steam/Proxy.cpp index d8f72b48..1458972f 100644 --- a/src/Steam/Proxy.cpp +++ b/src/Steam/Proxy.cpp @@ -10,6 +10,8 @@ namespace Steam Interface Proxy::ClientUser; Interface Proxy::ClientFriends; + Interface Proxy::Placeholder; + Proxy::Handle Proxy::SteamPipe = nullptr; Proxy::Handle Proxy::SteamUser = nullptr; @@ -415,6 +417,9 @@ namespace Steam Proxy::ClientUser = Proxy::ClientEngine->GetIClientUser(Proxy::SteamUser, Proxy::SteamPipe); if (!Proxy::ClientUser) return false; + //temporary fix required since Steam runtime update v0.20201203.1 (an additional function was added by steam) + Proxy::Placeholder = Proxy::ClientEngine->Placeholder(0); + Proxy::ClientFriends = Proxy::ClientEngine->GetIClientFriends(Proxy::SteamUser, Proxy::SteamPipe); if (!Proxy::ClientFriends) return false; From b06480b2609a88679c0c26a498d3f11c9f9ff3bc Mon Sep 17 00:00:00 2001 From: OneFourOne <71578430+OneFourOne@users.noreply.github.com> Date: Thu, 17 Dec 2020 09:38:46 -0500 Subject: [PATCH 3/4] [Proxy] Fix steam proxy --- src/Steam/Proxy.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Steam/Proxy.hpp b/src/Steam/Proxy.hpp index b2e1e9c9..9a551a74 100644 --- a/src/Steam/Proxy.hpp +++ b/src/Steam/Proxy.hpp @@ -55,6 +55,9 @@ namespace Steam virtual unknown_ret GetIClientGameServer(int32, int32, const char *) = 0; virtual unknown_ret SetLocalIPBinding(uint32, uint16) = 0; virtual unknown_ret GetUniverseName(int) = 0; + + virtual unknown_ret Placeholder(int) = 0; + virtual unknown_ret GetIClientFriends(int32, int32) = 0; virtual unknown_ret GetIClientUtils(int32) = 0; virtual unknown_ret GetIClientBilling(int32, int32, const char *) = 0; @@ -291,6 +294,8 @@ namespace Steam static User* SteamUser_; static Interface ClientFriends; + static Interface Placeholder; + static uint32_t AppId; private: From 0b178f5b1bf7b48cdf05e4ede47993eefa5b33ee Mon Sep 17 00:00:00 2001 From: OneFourOne <71578430+OneFourOne@users.noreply.github.com> Date: Thu, 17 Dec 2020 09:40:07 -0500 Subject: [PATCH 4/4] [Steam] Enable steam integration --- src/Steam/Steam.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Steam/Steam.cpp b/src/Steam/Steam.cpp index 52a67016..059c4d9e 100644 --- a/src/Steam/Steam.cpp +++ b/src/Steam/Steam.cpp @@ -111,8 +111,7 @@ namespace Steam { bool SteamAPI_Init() { - //The latest steam update has broke IW4x's steam integration. As of now the best way of dealing with this is to just disable it. This has been commented out so that if fixed, this may be easily enabled once again. - /*Proxy::SetGame(10190); + Proxy::SetGame(10190); if (!Proxy::Inititalize()) { @@ -123,7 +122,7 @@ namespace Steam { Proxy::SetMod("IW4x: Modern Warfare 2"); Proxy::RunGame(); - }*/ + } return true; }