ValvePython / dota2

🐸 Python package for interacting with Dota 2 Game Coordinator
http://dota2.readthedocs.io
198 stars 32 forks source link

How can specify protobuf? #54

Closed LinarSharifullin closed 3 years ago

LinarSharifullin commented 3 years ago

Please show how you can specify protobuf, i can't figure it out. how get proto format and what to write to it?

image

rossengeorgiev commented 3 years ago

All protobuf messages are under dota2.protobufs.xxxxxxxxx. You need to pass a reference to the message. Together with the EMsg it will build a message for Steam. If it's incorrect or malform, you will either get no response or get kicked off. It rare to need this.

If the automatic resolution doesn't cover a particular EMsg+message combo, then they should be mapped in code.