Globox1997 / LevelZ

https://modrinth.com/mod/levelz
https://www.curseforge.com/minecraft/mc-mods/levelz
GNU General Public License v3.0
51 stars 50 forks source link

Velocity Compatibility #208

Open GabriewF opened 2 years ago

GabriewF commented 2 years ago

[18:27:37 INFO]: [server connection] Username -> modded has connected [18:27:37 ERROR]: [server connection] Username -> modded: exception encountered in com.velocitypowered.proxy.connection.backend.BackendPlaySessionHandler@7d0b6512 com.velocitypowered.proxy.util.except.QuietRuntimeException: A packet did not decode successfully (invalid data). If you are a developer, launch Velocity with -Dvelocity.packet-decode-logging=true to see more.

I'm using Fabric 1.19.2, When I enter without using Velocity, I enter normally

Globox1997 commented 1 year ago

Pls send the latest log here

TheRealM18 commented 1 year ago

https://mclo.gs/ZrFBDOt

sammyshear commented 1 year ago

I had a similar issue because of the player list packet being too large. I can't find a way to disable the level in the player list in the config, so unless that is added as an option it doesn't seem to be compatible with Velocity.

sammyshear commented 1 year ago

After looking through the code, I noticed that it is actually possible to disable this functionality on the client with the showLevelList option, but I tried disabling it on the server. Upon disabling this on the client, however, it doesn't seem to work anyway. The level in the player list does disappear, but unfortunately, the velocity server gets the same packet error.

io.netty.handler.codec.CorruptedFrameException: Packet sent for class com.velocitypowered.proxy.protocol.packet.LegacyPlayerListItem was too
 big (expected 2158 bytes, got 2179 bytes)
adaliszk commented 1 year ago

Is there any workaround for this? Like installing a compatible Tabs mod that would modify the packets correctly?