ViaMCP icon indicating copy to clipboard operation
ViaMCP copied to clipboard

Infinite loading screen on 1.21+

Open Pelqsita opened this issue 6 months ago • 7 comments

When joining some servers (in this case, I tested on ShotBow) using ViaMCP on any version higher than 1.21, the client gets stuck on an infinite “Loading Terrain” screen.

The strange part is that there are no errors in the console at all. In fact, everything appears to work correctly on the server side, as if the player had fully joined the server. However, on the client side, the only thing visible is the endless “Loading Terrain” screen.

Another important detail is that this does not happen immediately when first joining the server. The first connection works perfectly fine. The issue starts when switching worlds, joining a minigame, or entering a different server mode. At that point, the client becomes stuck on the infinite loading screen.

Proof: https://streamable.com/fa9bx9

Pelqsita avatar May 17 '26 07:05 Pelqsita

  • You seem to be using LiquidBounce, why aren't you using ViaForge?
  • When this happened to me, I added a button to my client to proceed anyway and ignore the fact that terrain wasn't loaded.

6x68 avatar May 17 '26 14:05 6x68

  • When this happened to me, I added a button to my client to proceed anyway and ignore the fact that terrain wasn't loaded.

How did you do this?

Pelqsita avatar May 17 '26 18:05 Pelqsita

Screenshot same thing here

edit: i can hear other players, so the player is in-game but im guessing it's something due to terrain calls being incompatible with 1.8's rendering system.

unleg1t avatar May 26 '26 07:05 unleg1t

If your native version is below 1.9, send the ACCEPT_TELEPORTATION packet, you can read my commit for reference: https://github.com/ViaVersionMCP/ViaMCP/commit/7b2f0f13399a84f79a53e6d5ea672139a452a30a

Be noticed, it's only working on Viaversion < 5.9.0.

Ghost-Kokoro avatar May 26 '26 12:05 Ghost-Kokoro

  • When this happened to me, I added a button to my client to proceed anyway and ignore the fact that terrain wasn't loaded.

How did you do this?

Just add some sort of button or keybind, that when pressed, calls mc.setScreen(null)

6x68 avatar May 26 '26 17:05 6x68

If your native version is below 1.9, send the ACCEPT_TELEPORTATION packet, you can read my commit for reference: 7b2f0f1

Be noticed, it's only working on Viaversion < 5.9.0.

im using latest libs from the repo with maven, seems those haven't gotten the fix.

unleg1t avatar May 26 '26 21:05 unleg1t

If your native version is below 1.9, send the ACCEPT_TELEPORTATION packet, you can read my commit for reference: 7b2f0f1 Be noticed, it's only working on Viaversion < 5.9.0.

im using latest libs from the repo with maven, seems those haven't gotten the fix.

I'm sure the latest libs have fixed the teleport packets, it makes sure that you are not being kicked while switching a server. However, my fixes are based on Viaversion 5.8.x and it fixed infinite loading. To be clear, it is not supported on viaversion 5.9.x to send the packets yourself. The best solution is to skip the screen.

Ghost-Kokoro avatar May 27 '26 04:05 Ghost-Kokoro