ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.11k stars 148 forks source link

how to save sentry file? #331

Closed Lix1993 closed 3 years ago

Lix1993 commented 3 years ago

I've set sentry foldere before cli login, but no sentry file created.

Lix1993 commented 3 years ago
>>> client = SteamClient()
>>> client.set_credential_location('D:/Data/Desktop/dota2_bot/abc')
>>> dota = Dota2Client(client)
>>>
>>>
>>> client
<SteamClient(None) offline>
>>> client.cli_login()
Username: dota2li
Password:
[2021-05-16 16:45:02,648] DEBUG SteamClient: Attempting login
[2021-05-16 16:45:02,649] DEBUG SteamClient: Connect initiated.
[2021-05-16 16:45:02,649] DEBUG CMServerList: Attempting bootstrap via WebAPI
[2021-05-16 16:45:02,652] DEBUG urllib3.connectionpool: Starting new HTTPS connection (1): api.steampowered.com:443
[2021-05-16 16:45:03,657] DEBUG urllib3.connectionpool: https://api.steampowered.com:443 "GET /ISteamDirectory/GetCMList/v1/?cellid=0&format=json HTTP/1.1" 200 788
[2021-05-16 16:45:03,658] DEBUG CMServerList: Recieved 100 servers from WebAPI
[2021-05-16 16:45:03,659] DEBUG CMServerList: Added 100 new CM addresses.
[2021-05-16 16:45:03,659] DEBUG Connection: Attempting connection to ('153.254.86.179', 27019)
[2021-05-16 16:45:03,694] DEBUG Connection: Connected.
[2021-05-16 16:45:03,694] DEBUG SteamClient: Emit event: 'connected'
[2021-05-16 16:45:03,747] DEBUG SteamClient: Incoming: <Msg(<EMsg.ChannelEncryptRequest: 1303> | ChannelEncryptRequest)>
[2021-05-16 16:45:03,747] DEBUG SteamClient: Emit event: <EMsg.ChannelEncryptRequest: 1303>
[2021-05-16 16:45:03,748] DEBUG SteamClient: Securing channel
[2021-05-16 16:45:03,750] DEBUG SteamClient: Outgoing: <Msg(<EMsg.ChannelEncryptResponse: 1304> | ChannelEncryptResponse)>
[2021-05-16 16:45:03,796] DEBUG SteamClient: Incoming: <Msg(<EMsg.ChannelEncryptResult: 1305> | ChannelEncryptResult)>
[2021-05-16 16:45:03,797] DEBUG SteamClient: Emit event: <EMsg.ChannelEncryptResult: 1305>
[2021-05-16 16:45:03,797] DEBUG SteamClient: Channel secured
[2021-05-16 16:45:03,797] DEBUG SteamClient: Emit event: 'channel_secured'
[2021-05-16 16:45:03,798] DEBUG SteamClient: Outgoing: <MsgProto(<EMsg.ClientLogon: 5514> | CMsgClientLogon)>
[2021-05-16 16:45:04,370] DEBUG Connection: Connection error (reader).
[2021-05-16 16:45:04,371] DEBUG Connection: Disconnected.
[2021-05-16 16:45:04,371] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.Multi: 1> | CMsgMulti)>
[2021-05-16 16:45:04,371] DEBUG SteamClient: Emit event: <EMsg.Multi: 1>
[2021-05-16 16:45:04,371] DEBUG SteamClient: Multi: Unpacking
[2021-05-16 16:45:04,372] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientLogOnResponse: 751> | CMsgClientLogonResponse)>
[2021-05-16 16:45:04,372] DEBUG SteamClient: Emit event: <EMsg.ClientLogOnResponse: 751>
[2021-05-16 16:45:04,372] DEBUG SteamClient: Emit event: 'error'
[2021-05-16 16:45:04,373] DEBUG SteamClient: Emit event: 'disconnected'
[2021-05-16 16:45:04,373] DEBUG SteamClient: Emit event: 'auth_code_required'
Enter email code: 8BD2Y
[2021-05-16 16:45:12,501] DEBUG SteamClient: Attempting login
[2021-05-16 16:45:12,501] DEBUG SteamClient: Connect initiated.
[2021-05-16 16:45:12,502] DEBUG Connection: Attempting connection to ('103.10.124.163', 27017)
[2021-05-16 16:45:12,692] DEBUG Connection: Connected.
[2021-05-16 16:45:12,692] DEBUG SteamClient: Emit event: 'connected'
[2021-05-16 16:45:12,880] DEBUG SteamClient: Incoming: <Msg(<EMsg.ChannelEncryptRequest: 1303> | ChannelEncryptRequest)>
[2021-05-16 16:45:12,880] DEBUG SteamClient: Emit event: <EMsg.ChannelEncryptRequest: 1303>
[2021-05-16 16:45:12,881] DEBUG SteamClient: Securing channel
[2021-05-16 16:45:12,882] DEBUG SteamClient: Outgoing: <Msg(<EMsg.ChannelEncryptResponse: 1304> | ChannelEncryptResponse)>
[2021-05-16 16:45:13,560] DEBUG SteamClient: Incoming: <Msg(<EMsg.ChannelEncryptResult: 1305> | ChannelEncryptResult)>
[2021-05-16 16:45:13,560] DEBUG SteamClient: Emit event: <EMsg.ChannelEncryptResult: 1305>
[2021-05-16 16:45:13,561] DEBUG SteamClient: Channel secured
[2021-05-16 16:45:13,561] DEBUG SteamClient: Emit event: 'channel_secured'
[2021-05-16 16:45:13,562] DEBUG SteamClient: Outgoing: <MsgProto(<EMsg.ClientLogon: 5514> | CMsgClientLogon)>
[2021-05-16 16:45:14,260] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.Multi: 1> | CMsgMulti)>
[2021-05-16 16:45:14,260] DEBUG SteamClient: Emit event: <EMsg.Multi: 1>
[2021-05-16 16:45:14,260] DEBUG SteamClient: Multi: Unpacking
[2021-05-16 16:45:14,261] DEBUG SteamClient: Multi: Decompressing payload (952 -> 1430)
[2021-05-16 16:45:14,261] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientServersAvailable: 5501> | not parsed)>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Emit event: <EMsg.ClientServersAvailable: 5501>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientServersAvailable: 5501> | not parsed)>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Emit event: <EMsg.ClientServersAvailable: 5501>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientLogOnResponse: 751> | CMsgClientLogonResponse)>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Emit event: <EMsg.ClientLogOnResponse: 751>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientAccountInfo: 768> | not parsed)>
[2021-05-16 16:45:14,261] DEBUG SteamClient: Emit event: <EMsg.ClientAccountInfo: 768>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientAccountInfo: 768> | not parsed)>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Emit event: <EMsg.ClientAccountInfo: 768>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientEmailAddrInfo: 5456> | not parsed)>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Emit event: <EMsg.ClientEmailAddrInfo: 5456>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientFriendsList: 767> | CMsgClientFriendsList)>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Emit event: <EMsg.ClientFriendsList: 767>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Incoming: <MsgProto(<EMsg.ClientPlayerNicknameList: 5587> | not parsed)>
[2021-05-16 16:45:14,262] DEBUG SteamClient: Emit event: <EMsg.ClientPlayerNicknameList: 5587>
[2021-05-16 16:45:14,263] DEBUG SteamClient: Logon completed
[2021-05-16 16:45:14,263] DEBUG SteamClient: Heartbeat started.
[2021-05-16 16:45:14,263] DEBUG SteamClient: Emit event: 'logged_on'
[2021-05-16 16:45:14,263] DEBUG SteamClient: Outgoing: <MsgProto(<EMsg.ClientRequestFriendData: 815> | CMsgClientRequestFriendData)>
[2021-05-16 16:45:14,264] DEBUG SteamClient.friends: Emit event: 'ready'
[2021-05-16 16:45:14,264] DEBUG SteamClient: Outgoing: <MsgProto(<EMsg.ClientChangeStatus: 716> | CMsgClientChangeStatus)>
<EResult.OK: 1>
rossengeorgiev commented 3 years ago

You may need wait a bit more after login. Steam will send EMsg.ClientUpdateMachineAuth which is the sentry blob.

Lix1993 commented 3 years ago

thanks