Вопрос Guys how can i get all the chat messages ?

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
11 Фев 2023
Сообщения
120
Реакции
3
i wanna get the chat messages to make auto translation feature , how can i achieve something like that ?
 
You can hook CreateNetChannel (NetworkSystemVersion001 26'th function) and then PostReceivedNetMessage.

C++:
Expand Collapse Copy
INetChannel* CreateNetChannel(CNetworkSystem* thisptr, int unk, void* ns_addr, const char* str, unsigned int uUnk, unsigned int uUnk2) {
    INetChannel* ret = oCreateNetChannel(thisptr, unk, ns_addr, str, uUnk, uUnk2);
   
    // Here you can hook ret's 86's function
}

// ......
void PostReceivedNetMessage(INetChannel* thisptr, NetMessageHandle_t* messageHandle, google::protobuf::Message* msg, NetChannelBufType_t const* type, int bits) {
// ......
}
(Indexes could be outdated)

But you have to deal w\ google::protobuf and it's kinda headache.
 
the problems i had before was the protobuff there is no other ways to do that without protobuff ?
 
Назад
Сверху Снизу