Sonic2423 / NeoForwarding

Enables modern player information forwarding in NeoForge servers for use with Velocity
GNU General Public License v3.0
4 stars 2 forks source link

Problem connecting to a 1.21 NeoForge Server #2

Closed MarkapToGo closed 2 months ago

MarkapToGo commented 2 months ago

I use your mod to connect a 1.21 NeoForge Server with a Velocity Server. Therefore I have ambassador installed on the velocity server.

Velocity.toml: https://mclo.gs/hIHHE56 Installed Modpack on server: All The Mods 10 Installed Mod on NeoForge: neoforwarding-1.0.0-1.21-NeoForge.jar

enableForwarding = true | online-mode: (in server.properties) false

Error Log on Velocity: https://mclo.gs/SJTna6g Console - NeoForge: https://mclo.gs/h9oGswJ

Sonic2423 commented 2 months ago

Ambassador is not intended for 1.21. Try without ambassador. Server hopping should also work without ambassador ("/server "). If the error persists i will have a look at the logs etc.

MarkapToGo commented 2 months ago

Thank you for your answer. I have tried it without Ambassador, but the same problem persists... The errors that appear are still the same!

When stopping the server, I get this NeoForwarding Server: https://mclo.gs/Ckvz9mm

Sonic2423 commented 2 months ago

This seems to be an issue with velocity. A limit (64) for known packets was introduced a couple months back which breaks some modded servers. removing this limit in velocity itself makes atm10 work with neoforwarding. in the attached screenshot i have added a packCount readout to velocity and removed the limit check: grafik

For the crash at server stop i have made another issue. i will fix this in all branches the coming days and add 1.21.1 support.

Sonic2423 commented 2 months ago

Running velocity with -Dvelocity.max-known-packs=256 should fix your issue. If you ever encounter "too many known packets" in your velocity log again after the modpack grows you can alway increase the amount. Dont make it too high though as it is meant as a protective measure against DOS attacks (eg. increase the number by 16 and repeat until it works).

MarkapToGo commented 2 months ago

Thank you! This solved the problem!