MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Bug] Couldn't Join Game With Velocity #336

Open Xiaoyi311 opened 1 week ago

Xiaoyi311 commented 1 week ago

Minecraft and Mod version 🐞 Minecraft 1.21 & Easy_NPC 5.5.10

Describe the bug 🐞 When Using Velocity 3.3.0#436 With Easy NPC, Player Couldn't Join The Game, The following are Velocity errors:

exception encountered in com.velocitypowered.proxy.connection.backend.BackendPlaySessionHandler@7fdd8a93
io.netty.handler.codec.CorruptedFrameException: Error decoding class com.velocitypowered.proxy.protocol.packet.AvailableCommandsPacket Direction CLIENTBOUND Protocol 1.21 State PLAY ID 11
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.handleDecodeFailure(MinecraftDecoder.java:130) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.tryDecode(MinecraftDecoder.java:85) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.channelRead(MinecraftDecoder.java:60) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:509) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:407) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.IllegalArgumentException: Argument type identifier null unknown.
        at com.velocitypowered.proxy.protocol.packet.brigadier.ArgumentPropertyRegistry.deserialize(ArgumentPropertyRegistry.java:89) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at com.velocitypowered.proxy.protocol.packet.AvailableCommandsPacket.deserializeNode(AvailableCommandsPacket.java:210) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at com.velocitypowered.proxy.protocol.packet.AvailableCommandsPacket.decode(AvailableCommandsPacket.java:88) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        at com.velocitypowered.proxy.protocol.netty.MinecraftDecoder.tryDecode(MinecraftDecoder.java:83) ~[velocity-3.3.0-SNAPSHOT-436.jar:3.3.0-SNAPSHOT (git-2016d148-b436)]
        ... 28 more

Here is Some Easy_NPC Error On Mod Loading:

...... Some INFO Log .......
[23:05:16 INFO] [main]: [Easy NPC] πŸ—£ Register Easy NPC Entity Types ...
[23:05:16 ERROR] [main]: [Util] No data fixer registered for fairy
[23:05:16 ERROR] [main]: [Util] No data fixer registered for piglin_zombified
[23:05:16 ERROR] [main]: [Util] No data fixer registered for humanoid
[23:05:16 ERROR] [main]: [Util] No data fixer registered for humanoid_slim
[23:05:16 ERROR] [main]: [Util] No data fixer registered for orc
[23:05:16 ERROR] [main]: [Util] No data fixer registered for orc_warrior
[23:05:16 ERROR] [main]: [Util] No data fixer registered for zombie_raw
[23:05:16 INFO] [main]: [Easy NPC] πŸ—£ Register Easy NPC Registering Entities Attributes ...
...... Some INFO Log .......
[23:05:18 INFO] [Worker-Main-3]: [Easy NPC] πŸ—£ Register Easy NPC /easy_npc commands for Easy NPC ...
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:undead as it is missing following references: #easy_npc:skeletons (from easy_npc), #easy_npc:zombies (from easy_npc)
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:inverted_healing_and_harm as it is missing following references: #minecraft:undead (from vanilla)
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:sensitive_to_smite as it is missing following references: #minecraft:undead (from vanilla)
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:can_breathe_under_water as it is missing following references: #minecraft:undead (from vanilla)
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:wither_friends as it is missing following references: #minecraft:undead (from vanilla)
[23:05:18 ERROR] [Worker-Main-2]: [TagLoader] Couldn't load tag minecraft:ignores_poison_and_regen as it is missing following references: #minecraft:undead (from vanilla)

To Reproduce βš™οΈ Steps to reproduce the behavior:

  1. Setting Velocity 3.3.0 And Fabric 1.21 With Easy NPC
  2. Setting Minecraft 1.21 Client With Easy_NPC
  3. Connect The Server
  4. See error

Expected behavior βœ”οΈ Join The Sub Server

Screenshots πŸ“Έ Just The Error Log

Debugging πŸ› οΈ Couldn't Use Easy_NPC Debug Mode Command

Is the issue happening in combination with other mods? (If yes, please provide a full list) 🧩 I Disable All Other Mod Or Plugin On Velocity And Fabric, But Nothing Changed.

MarkusBordihn commented 1 week ago

Thank you for the report. The shared messages indicate a crash related to velocitypowered, not the EasyNPC mod.

Additionally, the error messages such as [TagLoader] Couldn't load tag minecraft:undead as it is missing the following references: #easy_npc:skeletons (from easy_npc), #easy_npc:zombies (from easy_npc) are generated by the game's TagLoader, not by the mod itself.

This suggests an incompatibility with velocitypowered, which seems unable to register the EasyNPC entities. This issue should be reported to the velocitypowered team.

If you come across any specific error messages or crash reports directly pointing to the EasyNPC mod, I’d be happy to investigate further. However, the provided logs do not indicate that the issue originates from this mod.

github-actions[bot] commented 2 days ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.