ValvePython / dota2

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

How i can create dota2 personal lobby? #63

Closed Mrfull closed 3 years ago

Mrfull commented 3 years ago

I try to made something like this, but it doesn't work

import dota2
from dota2 import features, client, common_enums
from dota2.protobufs.dota_gcmessages_common_match_management_pb2 import CSODOTAPartyInvite

test = features.lobby.Lobby.EVENT_LOBBY_NEW = 'test'
# print()
features.lobby.Lobby.create_practice_lobby(password="", options=test)

features.lobby.Lobby.EVENT_LOBBY_INVITE = "test"
common_enums.ESOType.CSODOTALobby = 2004

# @client.socache.on(('new', CSODOTAPartyInvite))
# def new_party_invite(message):
#     pass
# features.lobby.Lobby.create_practice_lobby(password='', options=None)
rossengeorgiev commented 3 years ago

All features are inherited in the Dota2Client. See https://github.com/ValvePython/dota2/issues/62

Mrfull commented 3 years ago

It's possible to do it, the same, but from website, so there no way try to open user Steam, maybe by steam api order user to lobby, but i don't know how to do it yet