Open
Description
Version:
dota2==1.0.0
steam==1.0.1
Hi, I use create_tournament_lobby
method to create a tournament lobby. But I get error message
dota.create_tournament_lobby(password=password,tournament_game_id=12345, tournament_id=12345, options=options)
File "/home/ubuntu/dota2/venv/lib/python3.7/site-packages/dota2/client.py", line 200, in send
self._send(emsg, data, proto)
File "/home/ubuntu/dota2/venv/lib/python3.7/site-packages/dota2/client.py", line 213, in _send
proto_fill_from_dict(message, data)
File "/home/ubuntu/dota2/venv/lib/python3.7/site-packages/steam/utils/proto.py", line 86, in proto_fill_from_dict
desc = field_descs[key]
KeyError: 'tournament_game'
I look into the source code, find https://github.com/ValvePython/dota2/blob/master/dota2/features/lobby.py#L99 with a dictionary command
. When I remove the key tournament_game
with value True
, still get error message: KeyError: 'tournament_game_id
, guess some error with proto fields?
Update:
Maybe key needs update....
I use create_practice_lobby
and config_practice_lobby
methods to bypass upon error. With config_practice_lobby
, use key with leagueid
, not tournament_game_id
.