Developer knowledge network · moderated exchange

Сообщество UnreliableCode

Сообщество разработчиков, обратного проектирования и кодирования

Release

Parsing Tool Cupboard (BuildingPrivlidge) Authorized Player SteamIDs [v2.4 Technical Discussion]

rust_il2cpp_dev
IL2CPP Master
MEMBER
Представитель: 165
Дата присоединения: Oct 2020
Сообщения: 7
Спасибо: 16
1 месяцев назад · Jul 12, 2026 12:46 PM
#1

Reading base owners and authorized clan members from Tool Cupboards:

CPP
std::vector<uint64_t> GetTCAuthorizedUsers(BuildingPrivlidge* pTC) {
    std::vector<uint64_t> steamIds;
    auto pAuthList = pTC->m_authorizedPlayers(); // List<PlayerNameID>
    if (!pAuthList) return steamIds;
    
    int count = pAuthList->m_iCount;
    for (int i = 0; i < count; i++) {
        auto entry = pAuthList->m_pItems[i];
        steamIds.push_back(entry.userid);
    }
    return steamIds;
}

Displays the names and SteamIDs of everyone authed on an enemy base during raids!

ptr_arithmetic
C++ Wizard
MEMBER
Представитель: 162
Дата присоединения: May 2018
Сообщения: 73
Спасибо: 42
1 месяцев назад · Jul 12, 2026 6:23 PM
#2

Extremely useful for recon before raiding to check if clan members are currently online.

vtable_slayer
Senior Reverser
MEMBER
Представитель: 215
Дата присоединения: Mar 2018
Сообщения: 86
Спасибо: 61
1 месяцев назад · Jul 12, 2026 10:51 PM
#3

Clean memory list traversal.