• Я зарабатываю 100 000 RUB / месяц на этом сайте!

    А знаешь как? Я всего-лишь публикую (создаю темы), а админ мне платит. Трачу деньги на мороженое, робуксы и сервера в Minecraft. А ещё на паль из Китая. 

    Хочешь так же? Пиши и узнавай условия: https://t.me/alex_redact
    Реклама: https://t.me/yougame_official

Вопрос Protobuf with dota2 to listen to all network packet

  • Автор темы Автор темы Un1xCr3w
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
11 Фев 2023
Сообщения
126
Реакции
3
does any 1 have a clue how can i make this work ?

can some 1 explain in very good step by step details how can i listen to the network packets and act accordingly ?
 
does any 1 have a clue how can i make this work ?
what you tried?

can some 1 explain in very good step by step details how can i listen to the network packets and act accordingly ?
get ISteamGameCoordinator via steam_api
C++:
Expand Collapse Copy
ISteamGameCoordinator gc = SteamClient()->GetISteamGenericInterface(GetHSteamUser(), GetHSteamPipe(), "SteamGameCoordinator001");
and hook vmt for SendMessage/RetrieveMessage
 
what you tried?


get ISteamGameCoordinator via steam_api
C++:
Expand Collapse Copy
ISteamGameCoordinator gc = SteamClient()->GetISteamGenericInterface(GetHSteamUser(), GetHSteamPipe(), "SteamGameCoordinator001");
and hook vmt for SendMessage/RetrieveMessage
that's gc, he wants in-game network communications(not explicitly stated here but apparent from his previous posts)
does any 1 have a clue how can i make this work ?

can some 1 explain in very good step by step details how can i listen to the network packets and act accordingly ?
cant explain step by step cuz im busy rn but the gist is
get protobuf(dota uses 3.21.8, you want the same version for ABI compatibility)
Пожалуйста, авторизуйтесь для просмотра ссылки.
compile protoc and libprotobuf
Пожалуйста, авторизуйтесь для просмотра ссылки.
get dota2's .proto's, select what you need, compile with protoc, add the resulting .cc to your project/build script/whatever
link against libprotobuf in your project(or add the sources to your project in accordance with protobuf's build script), include the headers you need, voila
.proto files describe the format of the message(s) in a "generic" way, you use protoc to translate it to cpp.
libprotobuf provides the stuff you need to actually work with in-memory messages as well as serialization/deserialization
 
he wants in-game network communications
if its true, then u need to get netchan via source sdk
C++:
Expand Collapse Copy
CEngineClient* client = CreateInterface("Source2EngineToClient001");
CNetChan* netchan = client->GetNetChannelInfo();
and also hook vmt SendNetMessage/PostReceivedNetMessage
at this step it is already possible to work with raw data, but for complete happiness we do as Liberalist wrote
 
Назад
Сверху Снизу