Open Cightline opened 6 years ago
The master server has been deprecated for a while now and seems to be broken, maybe steam.client.builtins.gameservers.SteamGameServers
from https://github.com/ValvePython/steam works better.
@Cightline your timeout is because the master server yields a list of servers that are not responding at the time (or your UDP packets are dropped because of network congestion).
The code that you're using doesn't have a second try/except placed in such a way that the failure of a single server to respond to your query will stop your whole script, instead of just marking that one server as unresponsive.
See my PR above.
After adding the try/except statements, the code raises further exceptions later but I think that they have already been reported as separate issues in the github issue tracker.
@overfl0 Ok sweet. Thanks for the update.
I'm getting a timeout while looking up Arma III servers.
python-valve version:
0.2.1
python version3.5.3
and3.6.3
Tested on Debian and Arch using this code https://gist.github.com/Cightline/12c6def0bddce9bb3a88335895f809c1
One test was on my local machine, the other was on a VPS.
Here is the output:
@vin173 has mentioned that Bohemia Interactive changed their protocol, I'm not sure what that would mean to you guys.
Here are a couple links from BI: https://community.bistudio.com/wiki/STEAMWORKSquery https://community.bistudio.com/wiki/Arma_3_ServerBrowserProtocol2