Page 1 of 1

[0.12.29] Can't connect with too many mods

Posted: Thu Mar 24, 2016 6:20 pm
by scitor
This is networking stuff...

Description:
The game seems to exchange all the installed mods on connection request. It does this within the first UDP packet it sends.
It seems that when you activate too many mods, this packet gets fragmented and not always fully transmitted -> you can't connect, even to a server with matching modlist.

How to reproduce:
Activate more mods than fit into a single UDP packet and try to connect to any server.

Expected behaviour:
Connecting to a game with any amount of mods should work to any network.

Current behaviour:
Connecting to a game with too many (client side) mods causes a connection failure in specific configurations
(Couldn't establish network communication with server.)

Tested on
0.12.26 - 0.12.29
Win (64, p.forward on router), Linux (32&64, wan interface & open ports)
more details
even more details
modlist

Re: [0.12.29] Can't connect with too many mods

Posted: Tue Apr 05, 2016 1:59 pm
by kovarex
Does it happen always, or just randomly?
As with fragmented packet, the probability that all of the parts are transfered is lower.

Re: [0.12.29] Can't connect with too many mods

Posted: Sun Apr 10, 2016 1:27 pm
by scitor
Yes, I can reproduce it every time.

I've narrowed it down to a firewall rule:

Works:

Code: Select all

iptables -A INPUT -p udp -m udp --dport 29000 -j ACCEPT
Doesn't work:

Code: Select all

iptables -A INPUT -p udp -m udp --dport 29000 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
This works with any other service / game, and it works as long as the packets are valid.

Re: [0.12.29] Can't connect with too many mods

Posted: Sun Apr 17, 2016 8:58 am
by scitor
Well, it seems to work with the experimental alpha version 0.12.30.

The problem doesn't seem to appear anymore, so this issue can be closed.