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

Arrange meetings with other people to play MP, announce your servers.
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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! :)
Last edited by luc on Mon Sep 26, 2016 12:30 am, edited 2 times in total.
Varonimus
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Sep 07, 2016 9:39 pm
Contact:

Re: New server browser

Post by Varonimus »

This is very useful! Especially if I search for players. :)
Nice work!
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

Re: New server browser

Post 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.
Varonimus
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Sep 07, 2016 9:39 pm
Contact:

Re: New server browser

Post by Varonimus »

What about a cookie with search params?
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

Re: New server browser

Post 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 ;)
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

Re: New server browser

Post 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.
Varonimus
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Sep 07, 2016 9:39 pm
Contact:

Re: New server browser

Post by Varonimus »

Very nice! Thank you!
Sacredd
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Fri Mar 18, 2016 9:30 am
Contact:

Re: New server browser

Post by Sacredd »

NIee, thanks.
Jürgen Erhard
Filter Inserter
Filter Inserter
Posts: 299
Joined: Sun Jun 12, 2016 11:29 pm
Contact:

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

Post by Jürgen Erhard »

Hey devs, hope you've seen this.
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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?
Jürgen Erhard
Filter Inserter
Filter Inserter
Posts: 299
Joined: Sun Jun 12, 2016 11:29 pm
Contact:

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

Post 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.
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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
Mendel
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Aug 17, 2015 1:51 pm
Contact:

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

Post by Mendel »

Excellent! Not merely suggesting a new server browser but implementing it as well!

Feature requests:

sort by country
sort by continent
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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?
Mendel
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Aug 17, 2015 1:51 pm
Contact:

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

Post 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?
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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 :)
Mendel
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Aug 17, 2015 1:51 pm
Contact:

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

Post by Mendel »

I would certainly use an executable version of your server browser if one was available. It would be a nice option.
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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.
luc
Fast Inserter
Fast Inserter
Posts: 229
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

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

Post 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!
Mendel
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Aug 17, 2015 1:51 pm
Contact:

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

Post 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.
Post Reply

Return to “Multiplayer”