ValvePython / dota2

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

Cant launch lobby with selection_priority_rules option. #61

Closed SpOOnySk closed 3 years ago

SpOOnySk commented 3 years ago

I can create lobby with code bellow:

    settings = {
        'game_name': 'Something Awesome',
        "game_mode": DOTA_GameMode.DOTA_GAMEMODE_CM,
        "pass_key": "PWA",
        "selection_priority_rules": DOTASelectionPriorityRules.Automatic
    }
    dota.create_practice_lobby(settings)

but I cant launch lobby. I wrote a script that checks lobby chat and when they write "gg" the lobby should start but the lobby wont start. I couldnt find any other function that can start a lobby with option selection_priority_rules.

@channel.on('message')
def do_stuff(channel, message):

    if message.text == "gg":
        dota.launch_practice_lobby()
SpOOnySk commented 3 years ago

If you want to launch lobby with DOTASelectionPriorityRules.Automatic option there must be assigned teams in lobby.