Plethora777 / mcpe_viz

Minecraft Pocket Edition (MCPE) World Visualization & Reporting Tool with Web App
GNU General Public License v2.0
167 stars 39 forks source link

Fix "Did not find 'name' and/or 'val' tags in a chunk palette!" error… #92

Open marzipan42 opened 4 years ago

marzipan42 commented 4 years ago

… messages when reading chunks that were saved by 1.13.0 or newer

This fixes https://github.com/Plethora777/mcpe_viz/issues/91 at least for the worlds I've tried.

According to https://minecraft.gamepedia.com/Bedrock_Edition_level_format#SubChunkPrefix_record_.281.0_and_1.2.13_formats.29 the 'val' tag was eliminated and replaced with a 'states' tag in 1.13.0. The 'fix' in this pull request simply forges ahead without the 'val' tag, but makes no attempt to read the 'states' tag. I don't know what the 'val' data was used for, so without it some features of the web app may not work right, but at least the map looks much better than without this fix.