Page 1 of 1
filter high ping/latency players? (0.14.7)
Posted: Mon Sep 19, 2016 9:30 am
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
Re: filter high ping/latency players? (0.14.7)
Posted: Tue Sep 20, 2016 1:02 am
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.
Re: filter high ping/latency players? (0.14.7)
Posted: Tue Sep 20, 2016 8:10 am
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.
Re: filter high ping/latency players? (0.14.7)
Posted: Tue Sep 20, 2016 3:51 pm
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.
Re: filter high ping/latency players? (0.14.7)
Posted: Tue Sep 20, 2016 11:13 pm
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.
Re: filter high ping/latency players? (0.14.7)
Posted: Wed Sep 21, 2016 7:39 am
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.
Re: filter high ping/latency players? (0.14.7)
Posted: Thu Sep 22, 2016 9:29 am
by ssilk
I doubt that this board is read by the devs... you might write that into Suggestions board.
Re: filter high ping/latency players? (0.14.7)
Posted: Thu Sep 22, 2016 11:31 am
by impetus maximus
ssilk wrote:I doubt that this board is read by the devs... you might write that into Suggestions board.
done 