Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

THIS SITUATION IS CAUSED BY PACKET ERROR!

 

-----------------------------------------------------------------

 

Original post:

Hello Everyone, it's a newbee modder here.

My mod works fine when runClient. And runServer also works fine until player is trying to join in server.

Here is what happen when player trying to connect server:

ON SERVER CONSOLE:

[18八月2020 15:14:05.120] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@3f183a2a
[18八月2020 15:14:05.123] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[/192.168.0.104:10376] logged in with entity id 176 at (55.5, 63.0, -44.5)
[18八月2020 15:14:05.124] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Dev joined the game
[18八月2020 15:14:05.129] [Netty Server IO #8/ERROR] [net.minecraft.command.arguments.ArgumentTypes/]: Could not serialize net.minecraftforge.server.command.ModIdArgument@3e41a31e (class net.minecraftforge.server.command.ModIdArgument) - will not be sent to client!
[18八月2020 15:14:05.129] [Netty Server IO #8/ERROR] [net.minecraft.command.arguments.ArgumentTypes/]: Could not serialize net.minecraftforge.server.command.EnumArgument@6349126 (class net.minecraftforge.server.command.EnumArgument) - will not be sent to client!
[18八月2020 15:14:05.174] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected
[18八月2020 15:14:05.174] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Dev left the game

ON PLAYER CLIENT:

Internal Exception: io.netty.handler.codec.DecoderException: io.netty.handler.codec.EncoderException: java.io.UTFDataFormatException: malformed input around byte 9

 

Edited by HeidFanatic
Add Details

  • Author
53 minutes ago, diesieben07 said:

Add the system property forge.logging.mojang.level=DEBUG to both server and client.

Then reproduce the issue and then post the server and client debug.log.

Thank you so much! I added server & client debug.log to the post! 

  • Author
2 hours ago, diesieben07 said:

The client log stops before the disconnect unfortunately.

I checked it for several time including repeatedly reconnecting.

I'm sure that the debug.log stop logging at the exact moment this sentence show up:

 [Netty Client IO #8/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.

Here is what I got from server console when I set -Dforge.logging.console.level=all

Gist

Edited by HeidFanatic

  • Author
45 minutes ago, HeidFanatic said:

I checked it for several time including repeatedly reconnecting.

I'm sure that the debug.log stop logging at the exact moment this sentence show up:


 [Netty Client IO #8/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.

Here is what I got from server console when I set -Dforge.logging.console.level=all

Gist

OK... Sometimes There is one more sentence after that:

[18八月2020 20:01:50.440] [Netty Client IO #2/DEBUG] [net.minecraftforge.coremod.transformer.CoreModBaseTransformer/COREMOD]: Transforming func_192799_a with desc (Lnet/minecraft/network/play/server/SAdvancementInfoPacket;)V

 

  • Author
15 minutes ago, diesieben07 said:

No idea then. the log should not stop like that.

I'm really sorry I didn't add forge.logging.mojang.level=DEBUG correctly.

I have already used stacktrace find my bugs.

Really thank you for your help and your patience!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.