From 6a2cd866c087c50a41f6b094d6c291c3e55ceb3c Mon Sep 17 00:00:00 2001 From: Johann <76482511+Primexz@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:45:55 +0100 Subject: [PATCH] fix: update to gta version 2845 (#1032) --- metadata.json | 2 +- src/pointers.cpp | 12 ++++++------ src/services/matchmaking/matchmaking_service.hpp | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/metadata.json b/metadata.json index 8330d36b..9efb70cb 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "game": { "online": "1.66", - "build": "2824" + "build": "2845" } } \ No newline at end of file diff --git a/src/pointers.cpp b/src/pointers.cpp index e83c6320..0ef17ede 100644 --- a/src/pointers.cpp +++ b/src/pointers.cpp @@ -167,7 +167,7 @@ namespace big }); // Read Bitbuffer Boolean - main_batch.add("RBB", "E8 ? ? ? ? 84 C0 74 2D 48 8D 57 20", [this](memory::handle ptr) + main_batch.add("RBB", "E8 ? ? ? ? 84 C0 74 41 48 8D 56 2C", [this](memory::handle ptr) { m_read_bitbuf_bool = ptr.add(1).rip().as(); }); @@ -419,13 +419,13 @@ namespace big }); // Send Chat Ptr - main_batch.add("SCP", "41 83 7F ? ? 4C 8B 35", [this](memory::handle ptr) + main_batch.add("SCP", "83 7E 1C 01 48 8B 3D", [this](memory::handle ptr) { - m_send_chat_ptr = ptr.add(8).rip().as(); + m_send_chat_ptr = ptr.add(7).rip().as(); }); // Send Chat Message - main_batch.add("SCM", "48 83 EC 20 48 8B F9 48 8B CA 45 8A F1", [this](memory::handle ptr) + main_batch.add("SCM", "48 83 EC 20 48 8B F1 48 8B CA 41 8A E9", [this](memory::handle ptr) { m_send_chat_message = ptr.sub(21).as(); }); @@ -514,8 +514,8 @@ namespace big m_handle_join_request = ptr.as(); }); - // Handle Join Request - main_batch.add("HJR", "E8 ?? ?? ?? ?? 41 8B DF 84 C0 74 06", [this](memory::handle ptr) + // Write Join Response Data + main_batch.add("WJRD", "E8 ?? ?? ?? ?? 41 8B DF 84 C0", [this](memory::handle ptr) { m_write_join_response_data = ptr.add(1).rip().as(); }); diff --git a/src/services/matchmaking/matchmaking_service.hpp b/src/services/matchmaking/matchmaking_service.hpp index 78d92799..4ebfdf17 100644 --- a/src/services/matchmaking/matchmaking_service.hpp +++ b/src/services/matchmaking/matchmaking_service.hpp @@ -5,7 +5,7 @@ namespace big class matchmaking_service { public: - constexpr static int MAX_SESSIONS_TO_FIND = 1057; + constexpr static int MAX_SESSIONS_TO_FIND = 1054; struct session_attributes {