antonpup / Dota2GSI

A C# library to interface with the Game State Integration found in Dota 2.

Home Page:https://www.nuget.org/packages/Dota2GSI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capture chat messages

Un1xCr3wR0x opened this issue · comments

thanks a lot for sharing this , does it support capturing chat ?

No, chat is not part of Game State Integration. I had a personal project for CSGO that read console, but in CS2 it's not easily doable. It can be done, but it's a janky solution.

If there is a way to read the console in Dota 2, this can be added.

I investigated this, having access to Dota's console does not allow access to the chat messages. They aren't printed in the console. On the other hand, chat messages do get printed in Counter-Strike 2's console.

Unless there is a way to get Dota 2 to print chat messages in console, there isn't a safe way to read chat messages.

After doing research, there are other projects that translate Dota 2 chat messages using methods ranging from screen text recognition to dll injection (https://github.com/WatcherApps/GameChatTranslator, https://github.com/patriksletmo/Dota2Translator, https://github.com/ur0/DotATranslator). I wouldn't trust dll injection out of risking potentially banning Dota2GSI's users. And screen text recognition is a heavy operation and is outside the scope of this project.