Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid player data" error when trying to join world and getting kicked to multiplayer world #109

Open
MythCracker opened this issue Dec 29, 2023 · 1 comment

Comments

@MythCracker
Copy link

MythCracker commented Dec 29, 2023

I added capsule 1.19.2-7.0.98 to All the Mods 8 -1.1.0 and the game itself loads without issue. However, when I try to join a single player world I get an error message saying "Invalid player data" and then I get kicked to the multiplayer menu. This also happened when trying to make a new world. No problems getting into the world with Capsule deactivated. I'm using GDLauncher. No crash logs and not sure what running logs to include, please let me know what other information I can provide.

@WenXin20
Copy link

WenXin20 commented Apr 17, 2024

I have this issue on 1.20.1 with Capsule v8.0.105 as well, this is the error I see in the log. After removing the Roughly Enough Resources mod, the world loaded

java.lang.ClassCastException: class capsule.loot.CapsuleLootEntry cannot be cast to class net.minecraft.world.level.storage.loot.entries.LootTableReference (capsule.loot.CapsuleLootEntry is in module capsule@1.20.1-8.0.105 of loader 'TRANSFORMER' @440d2d64; net.minecraft.world.level.storage.loot.entries.LootTableReference is in module minecraft@1.20.1 of loader 'TRANSFORMER' @440d2d64)
	at net.minecraft.world.level.storage.loot.entries.LootTableReference$Serializer.m_7219_(LootTableReference.java:58) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Serializer.m_6170_(LootPoolEntryContainer.java:80) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer$Serializer.m_6170_(LootPoolEntryContainer.java:74) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter.serialize(GsonAdapterFactory.java:125) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:88) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:70) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.ArrayTypeAdapter.write(ArrayTypeAdapter.java:104) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJson(Gson.java:825) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:695) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:672) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.serialize(TreeTypeAdapter.java:172) ~[gson-2.10.jar%23107!/:?]
	at net.minecraft.world.level.storage.loot.LootPool$Serializer.serialize(LootPool.java:206) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.world.level.storage.loot.LootPool$Serializer.serialize(LootPool.java:189) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:88) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:70) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:97) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:61) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJson(Gson.java:825) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:695) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:672) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.serialize(TreeTypeAdapter.java:172) ~[gson-2.10.jar%23107!/:?]
	at net.minecraft.world.level.storage.loot.LootTable$Serializer.serialize(LootTable.java:329) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.world.level.storage.loot.LootTable$Serializer.serialize(LootTable.java:291) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:88) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJson(Gson.java:825) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:695) ~[gson-2.10.jar%23107!/:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:672) ~[gson-2.10.jar%23107!/:?]
	at uk.me.desert_island.rer.RoughlyEnoughResources.sendLootToPlayers(RoughlyEnoughResources.java:53) ~[rer-2.9.0.jar%23794!/:?]
	at net.minecraft.server.players.PlayerList.handler$gff000$onPlayerConnect(PlayerList.java:4952) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.players.PlayerList.m_11261_(PlayerList.java:262) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_143699_(ServerLoginPacketListenerImpl.java:139) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_10055_(ServerLoginPacketListenerImpl.java:126) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_9933_(ServerLoginPacketListenerImpl.java:70) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.network.Connection.m_129483_(Connection.java:263) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:907) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23896!/:?]
	at java.lang.Thread.run(Thread.java:842) ~[?:?]
[17Apr2024 11:40:01.953] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: WenXin2 lost connection: Invalid player data
[17Apr2024 11:40:01.954] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: WenXin2 left the game

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants