Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Savage master support #6

Open
illwieckz opened this issue Jan 23, 2015 · 2 comments
Open

add Savage master support #6

illwieckz opened this issue Jan 23, 2015 · 2 comments

Comments

@illwieckz
Copy link
Contributor

Hi, for XQF we used some ugly hacks to browse Savage master support, but I think the better place to do it is in QStat itself.

QStat already knows how to query Savage servers, but not Savage Masters.

The Savage Master query is an HTTP query on this url:
http://masterserver.savage.s2games.com/gamelist_full.dat

The answer is a binary file with this format:

[0x7E header byte]
[0x41 header byte]
[0x03 header byte]
[EOF]
[EOF]
[ip1 byte1]
[ip1 byte2]
[ip1 byte3]
[ip1 byte4]
[port1 word byte1]
[port1 word byte2]
[ip2 byte1]
[ip2 byte2]
[ip2 byte3]
[ip2 byte4]
[port2 word byte1]
[port2 word byte2]
…

There is a working proof of concept (shell script) here:
https://github.com/XQF/xqf/blob/1f3790133a5416e6d2a09e27366608d1fd3f785f/src/qstat_savage.sh

@stevenh
Copy link
Contributor

stevenh commented Jan 23, 2015

That should be totally possible.

Unfortunately I don't have time to spend on this ATM, so feel fee to put in a pull request which implements this and I'm make time to review it :)

@illwieckz
Copy link
Contributor Author

Yes, I will work on it right after finishing the Teeworlds support. 😄
About Teeworlds, can you answer to this question : #4 (comment) ? 😉

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants