Page 1 of 2

New server browser (sort by distance, search mods and players, etc.)

Posted: Tue Sep 13, 2016 12:21 am
by luc
The in-game server browser has limited filtering options, so I made a new one!

Open server list in your browser

Image


The source code is on Github and very easy to run on any PHP+MySQL system. Any bugs can be reported in this topic, or directly on Github if you have an account.

Let me know what you think. Is it ugly? Not useful? Amazing? Needs another feature? Let me know! :)

Re: New server browser

Posted: Tue Sep 13, 2016 11:40 pm
by Varonimus
This is very useful! Especially if I search for players. :)
Nice work!

Re: New server browser

Posted: Tue Sep 13, 2016 11:54 pm
by luc
Thanks! I'm glad it's of use to you :)

Since it's not officially from Factorio, but I do think it can be of use to many people, spread the word so others can find it too ;)

-------------

In other news, version 1.0 was just released. Since the announcement sorting was added, linking servers was fixed, and some back-end things got better. It's complete and reliable enough, so this is 1.0!

I still have some ideas to add (the ones on Github and more), but right now the community response seems a bit timid. Perhaps a better server browser is not as necessary as I thought, or people didn't see it, I don't know. In any case, I'm going to pause adding features unless more people respond (here/reddit/irc/whatever) or more people start using it.

Re: New server browser

Posted: Thu Sep 15, 2016 7:46 am
by Varonimus
What about a cookie with search params?

Re: New server browser

Posted: Thu Sep 15, 2016 11:57 am
by luc
You mean store your last search settings for next time you open the page? That's a good idea. Give me a few minutes ;)

Re: New server browser

Posted: Thu Sep 15, 2016 11:46 pm
by luc
Oops, forgot to respond after uploading the feature.

If you previously visited the site, there is now a button to load the previous settings. You can try it by searching for something, closing the tab, and opening it again (Ctrl+Shift+T reopens a closed tab).

I made it a button because I thought it would be confusing to automatically apply previous settings, as they may have been very specific and might show no servers at all, or randomly filter the one out that you might be looking for. Let me know if this is not a good solution for some reason.

Re: New server browser

Posted: Tue Sep 20, 2016 12:52 pm
by Varonimus
Very nice! Thank you!

Re: New server browser

Posted: Tue Sep 20, 2016 8:37 pm
by Sacredd
NIee, thanks.

Re: New server browser (search by country, mods, player name, etc.)

Posted: Thu Sep 22, 2016 11:46 pm
by Jürgen Erhard
Hey devs, hope you've seen this.

Re: New server browser (search by country, mods, player name, etc.)

Posted: Thu Sep 22, 2016 11:51 pm
by luc
The devs are aware of this: I asked for permission to run it.

What do you want them to do with it, integrate these options in the game?

Re: New server browser (search by country, mods, player name, etc.)

Posted: Fri Sep 23, 2016 12:40 pm
by Jürgen Erhard
luc wrote:The devs are aware of this: I asked for permission to run it.

What do you want them to do with it, integrate these options in the game?
Well of course.

Re: New server browser (search by country, mods, player name, etc.)

Posted: Fri Sep 23, 2016 1:12 pm
by luc
Post in feature requests, if there isn't a topic already ;)

I like having a server browser outside of the game though. Makes it a lot easier to just open a tab, check if someone's online that you want to play with, and then decide whether to open up (and load) the game. In another game that had a serverlist on a website, everyone did that a lot. But yeah, in-game would be useful to have too. And you could sort by ping in-game, that's something missing here too. So many features to add, so little free developer time... :P

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 12:33 pm
by Mendel
Excellent! Not merely suggesting a new server browser but implementing it as well!

Feature requests:

sort by country
sort by continent

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 12:57 pm
by luc
Thanks!

Thinking about the suggestions... maybe I have an even better idea: sort by distance. It would obtain your location from your IP address and compute how far each server is away. How does that sound?

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 4:10 pm
by Mendel
Sounds interesting and certainly worth a try if you think it is a better approach.
Also maybe sort by ping if that´s possible?

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 4:18 pm
by luc
I wanted to do that, but unfortunately this is only possible from a client, not from a website.

Factorio does not communicate over HTTP, or even TCP (the underlaying layer of HTTP) so there is no way to communicate with Factorio game servers from your browser. And of course the measurement must be done from your computer, locally, not from my server, or it would be no use at all for people in a different country than my server.

The game could totally do this though, ping all servers and sort by that, and I know games that do, but Factorio doesn't have that feature (yet?). I could also write a program that supplies the ping from your computer to my serverlist, but I wasn't sure whether people would trust that program or care enough to run it, even if it is open source, so I haven't made it (yet?).

Good ideas though, keep 'em coming if you have more :)

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 5:48 pm
by Mendel
I would certainly use an executable version of your server browser if one was available. It would be a nice option.

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sat Sep 24, 2016 5:53 pm
by luc
It wouldn't be a complete replacement, only something that runs in the background to provide the website (upon loading the page) with ping times to all servers.

Even if I would make a full client, which would be a lot of double work, I'm not sure it could launch Factorio and connect to a server directly. The game seems to need some code to connect (this code is visible in the API data, called "game_secret") and Factorio doesn't have a command option to provide that code when connecting directly to a server.

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sun Sep 25, 2016 1:25 am
by luc
New version!

Lots of big and small improvements, I'll list the bigger ones here:

- Sort by distance from you!

Image

- Loading time improved hugely. For me it went from 2.8 seconds to 150ms (network traffic time not included, though that's improved too).

- You can now find mods by just, y'know, clicking on them!

Image

- The user_verification_required field in the API became active, so this is new:

Image

- New link (alias for the old one): serverlist.lgms.nl -- that should work a lot nicer in your autocompletion. Instead of remembering my (albeit short) domain, you type "serverlist" and it should autocomplete the rest :)

Test the new features now (click here) and let me know if you run into any trouble. Or if you have more ideas!

Re: New server browser (search by country, mods, player name, etc.)

Posted: Sun Sep 25, 2016 12:22 pm
by Mendel
Oh it seems like the sort by distance is indeed better idea than the sort by country, but I see you implemented both, which is nice!

I had my doubts about how it might work for some reason but yes, sort by distance actually finds Finnish, Russian, Swedish and Norwegian servers for me first (me living in Finland). So it is probably the best way for me to find a low latency server.