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
Server IP cache #1154
Comments
A more detailed explanation: When Teeworlds is started and the master servers are not reachable, no server list is available. The suggestion is to save the list of servers to a file on disk when it is received from the master servers, so on later starts of the game this list can be used as a fallback. |
Always reading the server list from disk and only updating it with the master servers seems to be the best version – it can start up immediately and only later request the server lists. |
Ok, I had some more free time. The only thing is that I can not test it fully (I can only verify stuff gets loaded and saved) because from master I am afraid I have to do something in order to get a correct list of server from the master servers because there was some retro-compatibility going on. Could somebody point me to what I should change in the code to have server coming from the master servers? |
I wonder if anybody is still interested in this? I implemented it here: https://github.com/Henningstone/AllTheHaxx/blob/master/src/engine/client/serverbrowser.cpp#L700-L824 I can create a revised version for vanilla 0.7 if you like. To try it, just download and compile AllTheHaxx source code ;) |
For situations where the masters are down, it would be nice to have the server lists from previous sessions cached.
The text was updated successfully, but these errors were encountered: