GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.88k stars 270 forks source link

Error while loading chunk; Invalid tag type: 12 #1144

Closed cd-FileX closed 3 weeks ago

cd-FileX commented 2 months ago

Title: Invalid tag on minecraft world (1.16)

Glowstone build: 2021.8.0

When inserting a world into the worlds folder played in minecraft (1.16) originally, the following error occurs:

```[SEVERE] Error while loading chunk (16,6) java.io.IOException: Invalid tag type: 12 at net.glowstone.util.nbt.TagType.byIdOrError(TagType.java:52) at net.glowstone.util.nbt.NbtInputStream.readCompound(NbtInputStream.java:87) at net.glowstone.util.nbt.NbtInputStream.readTagPayload(NbtInputStream.java:176) at net.glowstone.util.nbt.NbtInputStream.readTagPayload(NbtInputStream.java:169) at net.glowstone.util.nbt.NbtInputStream.readCompound(NbtInputStream.java:97) at net.glowstone.util.nbt.NbtInputStream.readTagPayload(NbtInputStream.java:176) at net.glowstone.util.nbt.NbtInputStream.readCompound(NbtInputStream.java:97) at net.glowstone.util.nbt.NbtInputStream.readTagPayload(NbtInputStream.java:176) at net.glowstone.util.nbt.NbtInputStream.readCompound(NbtInputStream.java:79) at net.glowstone.util.nbt.NbtInputStream.readCompound(NbtInputStream.java:57) at net.glowstone.io.anvil.AnvilChunkIoService.read(AnvilChunkIoService.java:66) at net.glowstone.chunk.ChunkManager.loadChunk(ChunkManager.java:167) at net.glowstone.chunk.GlowChunk.load(GlowChunk.java:232) at net.glowstone.generator.populators.StructurePopulator.populate(StructurePopulator.java:36) at net.glowstone.chunk.ChunkManager.populateChunk(ChunkManager.java:257) at net.glowstone.chunk.ChunkManager.forcePopulation(ChunkManager.java:272) at net.glowstone.GlowWorld.prepareSpawn(GlowWorld.java:976) at net.glowstone.GlowWorld.setKeepSpawnInMemory(GlowWorld.java:948) at net.glowstone.GlowWorld.(GlowWorld.java:441) at net.glowstone.GlowServer.createWorld(GlowServer.java:2311) at net.glowstone.GlowServer.start(GlowServer.java:809) at net.glowstone.GlowServer.run(GlowServer.java:635) at net.glowstone.GlowServer.main(GlowServer.java:499) ```

To reproduce the exact same scenario:

(Just for ensurance; is this project still maintained? Would be sad if not.. (I can't really program Java though if I could help something I would do so))

mastercoms commented 2 months ago

1.16 is not supported right now. We are working on upgrading the project to past 1.12 but it's introduced a big wall to momentum.

cd-FileX commented 2 months ago

I see. Guess that's the problem. So, the project is still in active development, just behind the scenes? If that's the case, as I can't really program java I would maybe like to help with the documentation

mastercoms commented 2 months ago

Thank you for the offer! It's quite slow right now, there's lots of hard problems, and once we solve those, we can think about documentation and we'll let you know if you're interested 🙌

cd-FileX commented 2 months ago

Alright. Then good luck and try your best

mastercoms commented 3 weeks ago

I'm going to close this issue because it seems solved in the dev branch (tag type 12, long array is implemented).