filter high ping/latency players? (0.14.7)

Arrange meetings with other people to play MP, announce your servers.
Post Reply
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

filter high ping/latency players? (0.14.7)

Post by impetus maximus »

is there a way to filter players with high latency when hosting a server?
starting a Co-Op group, and want to keep it fairly local. (east coast/mid west US)

thanks

luc
Fast Inserter
Fast Inserter
Posts: 218
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by luc »

You could block IP addresses from outside that region in a firewall (iptables for example). There was a site capable of generating lists of IP ranges for countries, I don't remember where. You could also extract the data (or read it dynamically) from Maxmind's free geoip database.

Not knowing much about Factorio's mod system, that's the only way I can think of. I suppose if you can get the ping from the game for each player, you can also kick them automatically.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by impetus maximus »

damn, was hoping there was a setting i could change in vanilla.
thanks for the ideas. maybe i'll suggest it as a feature to the developers.

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 597
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by Gergely »

luc wrote:You could block IP addresses from outside that region in a firewall (iptables for example). There was a site capable of generating lists of IP ranges for countries, I don't remember where. You could also extract the data (or read it dynamically) from Maxmind's free geoip database.

Not knowing much about Factorio's mod system, that's the only way I can think of. I suppose if you can get the ping from the game for each player, you can also kick them automatically.
Factorio mods can't ban or kick players, or even get the ping of each player. Mods can only alter gameplay. (In Factorio 0.13.20)
You can find the proof in your Factorio's root file\doc-html\LuaPlayer.html
It lists every way mods can interact with players.

luc
Fast Inserter
Fast Inserter
Posts: 218
Joined: Sun Jul 17, 2016 9:53 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by luc »

Okay, thanks for the info and link.

For the record, I'm kinda against geoblocking. Choosing a team in/around a specific timezone for coordination reasons (so that you're online around the same time) makes sense, but especially in 0.14 outright blocking of poor/distant connections is a bit unnecessary. If you choose to do so, at least include it in the tags or description so that people know (something like "US exclusive" or "US east only"). Then 1) people can see and 2) In case more servers start doing this, they can be hidden from people who wouldn't be able to connect anyway.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by impetus maximus »

i have nothing against EU players, it's just packets jumping across oceans affects game play.
my server (if i can get it running) will say it's for US east coast/mid west players.

a message to players "you have been kicked for high ping" would be good.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by ssilk »

I doubt that this board is read by the devs... you might write that into Suggestions board.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: filter high ping/latency players? (0.14.7)

Post by impetus maximus »

ssilk wrote:I doubt that this board is read by the devs... you might write that into Suggestions board.
done :)

Post Reply

Return to “Multiplayer”