ValvePython / dota2

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

Value out of range: 32 bit steam_id #70

Closed knkitten closed 3 years ago

knkitten commented 3 years ago

Hello.

I use the practice_lobby_kick(account_id) method where account_id is a 32 bit integer. But the member's account_id `` raises an error. ValueError: Value out of range:

What to do with IDs that are more than 2147483647 (32-bit int)?

FedorAronov commented 3 years ago

@knkitten this message requires 32-bit Steam ID.

from steam.steamid import SteamID

for member in dota_client.lobby.all_members:
    dota_client.practice_lobby_kick(SteamID(member.id).as_32)
knkitten commented 3 years ago

Thanks. To be closed