Developer knowledge network ยท moderated exchange

Komunitas Kode Tidak Dapat Diandalkan

Riset Pengembang, Rekayasa Terbalik & Komunitas Pengkodean

Knowledge indexHidup
4Categories
919Threads
2.8KPostingan
Release

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

rust_il2cpp_dev
IL2CPP Master
MEMBER
Reputasi: 165
Tanggal Bergabung: Oct 2020
Postingan: 7
Terima kasih: 16
1 bulan yang lalu ยท 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
Reputasi: 162
Tanggal Bergabung: May 2018
Postingan: 73
Terima kasih: 42
1 bulan yang lalu ยท 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
Reputasi: 215
Tanggal Bergabung: Mar 2018
Postingan: 86
Terima kasih: 61
1 bulan yang lalu ยท Jul 12, 2026 10:51 PM
#3

Clean memory list traversal.