Developer knowledge network ยท moderated exchange

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Knowledge indexLive
4Categories
919Threads
2.8KPosts
Release

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

rust_il2cpp_dev
IL2CPP Master
MEMBER
Rep: 165
Join Date: Oct 2020
Posts: 7
Thanks: 16
1 months ago ยท 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
Rep: 162
Join Date: May 2018
Posts: 73
Thanks: 42
1 months ago ยท 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
Rep: 215
Join Date: Mar 2018
Posts: 86
Thanks: 61
1 months ago ยท Jul 12, 2026 10:51 PM
#3

Clean memory list traversal.