ValvePython / dota2

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

Can't recieve invite into lobby and GC D2Client doesn't work #78

Closed Severes closed 2 years ago

Severes commented 2 years ago

Didn't change code for a year, and it was working Now i can't do anything with Dota2Client, also i have an error in logs like this: [2021-11-15 02:11:04,508] ERROR Dota2Client: Failed to parse: -4294967272 Can someone help me, what changed in Game Coordinator? Documentation is the same but it doesnt work... When i'm trying to get invite into lobby, i can create lobby, but invite is not coming (i have all permissions in steam)

k0mar12 commented 2 years ago

Yes it is. I dont remember what exectly, coz half year ago i fixed it too.

Severes commented 2 years ago

It looks like Dota2CLient can't get right proto, because it must be a string but incoming as int, That's why in proto() returns None

def _process_gc_message(self, emsg, header, payload):
        emsg = get_emsg_enum(emsg)
        proto = find_proto(emsg)
        message = proto()
        message.ParseFromString(payload) 

Maybe u remember anything? Can't find how to fix this

Severes commented 2 years ago

Fixed