Fix player tracking (#10)
Some checks failed
Nightly Build / Check Recent Commit (push) Successful in 2m2s
Nightly Build / Build Nightly (push) Has been cancelled
Nightly Build / Recreate Release (push) Has been cancelled

This commit is contained in:
Mr-X-GTA 2024-09-30 14:48:40 +02:00 committed by GitHub
parent 7f29e70f4e
commit fa5c7cebdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 1 deletions

View File

@ -70,6 +70,9 @@ namespace big
// Patch script network check // Patch script network check
memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
// Increase Start Get Presence Attributes limit from 32 to 100
memory::byte_patch::make(g_pointers->m_sc.m_num_handles_patch, std::vector{0x64})->apply();
// Prevent the attribute task from failing // Prevent the attribute task from failing
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch, std::vector{0x90, 0x90})->apply(); memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch, std::vector{0x90, 0x90})->apply();
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch_2, std::vector{0xB0, 0x01})->apply(); memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch_2, std::vector{0xB0, 0x01})->apply();

View File

@ -2029,6 +2029,15 @@ namespace big
g_pointers->m_sc.m_start_get_presence_attributes = ptr.as<functions::start_get_presence_attributes>(); g_pointers->m_sc.m_start_get_presence_attributes = ptr.as<functions::start_get_presence_attributes>();
} }
}, },
// SGPA Num Handles Patch
{
"NHP",
"83 FD 20 0F 87 54 02 00 00",
[](memory::handle ptr)
{
g_pointers->m_sc.m_num_handles_patch = ptr.add(2).as<PVOID>();
}
},
// Read Attribute Patch // Read Attribute Patch
{ {
"RAP", "RAP",

View File

@ -11,6 +11,7 @@ namespace big
functions::update_presence_attribute_string m_update_presence_attribute_string; functions::update_presence_attribute_string m_update_presence_attribute_string;
functions::start_get_presence_attributes m_start_get_presence_attributes; functions::start_get_presence_attributes m_start_get_presence_attributes;
PVOID m_num_handles_patch;
PVOID m_read_attribute_patch; PVOID m_read_attribute_patch;
PVOID m_read_attribute_patch_2; PVOID m_read_attribute_patch_2;
}; };

View File

@ -345,7 +345,7 @@ namespace big
void player_database_service::update_player_states(bool tracked_only) void player_database_service::update_player_states(bool tracked_only)
{ {
constexpr auto bucket_size = 32; constexpr auto bucket_size = 100;
std::vector<std::vector<rage::rlScHandle>> gamer_handle_buckets{}; std::vector<std::vector<rage::rlScHandle>> gamer_handle_buckets{};