SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
88 stars 18 forks source link

Missing A2S_RULES packet (missing details/links/workshop mods on server connect screen) #4003

Closed asineth0 closed 1 year ago

asineth0 commented 1 year ago

Roughly ~90% of the time or more, on my server, it won't show any of the details, links, workshop mods, or plugins on the server connect screen. For other servers, it works almost all of the time. I've included screenshots from my server and another server that seems to work. I've also included the IP & port for the server if it's needed for debugging.

The server seems to be dropping the A2S_RULES packet, which I can see in Wireshark (it begins with 0xffffffff45).

Screenshot from my server (top Unturned server):

image

IP: 198.251.83.220:28015 (horizonrp.life:28015)

Screenshot from inferior competitor's server:

image

IP: 104.129.132.73:27095

Any help or guidance is appreciated, have a nice day.

SDGNelson commented 1 year ago

Unfortunately I'm not sure either. I've noticed that when using a VPN the rules query almost never goes through. As far as I know it's outside the game's control, but I'll leave this open for now in case anyone else reading this has an idea.

ItsRodrigoAl commented 1 year ago

It gets fixed by just changing one minimal thing from any of the Browser configs (for example, just change something anywhere, so it will need to get 'refreshed' on your client because it have a new change and you'll see now the server details)

I know this because I also manage Unturned servers with a friend, and we've noticed this weird bug since time ago, where my friend can see the server details but I can't, or vice versa. Luckily I found a "solution" for this just doing the thing I just said.

Example: lets say the server descriptions says something like "best vanilla server" then just change it to "best vanilla server!!!" or "hehe temporal change" or "abc" (just random changes), restart the server and this will make it be visible again for you, and then just change it back to "best vanilla server"

The curious thing about this bug is that is just a client-side problem. I mean, while you can't see the server details, others can (I tried with your server and I can actually see your server detail).

asineth0 commented 1 year ago

when using a VPN the rules query almost never goes through

This is what I needed. I know almost no one else will probably be affected by this, but my MTU inside of the container that Unturned was running in was 1500, while the external interface's MTU was 1420 (WireGuard).

SDGNelson commented 1 year ago

@asineth0 Wow really? That's so interesting! So the server outbound traffic was going through a VPN and the lower MTU caused the A2S_RULES packet to be dropped? I guess maybe this is a bug in Steam that the packet is too big - most network code I've seen assumes an MTU of 1,000 to 1,200 bytes. I'll have to see if I can raise the MTU in my VPN.