Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-105278

Compressed structure files can't be loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.40.23 Beta, 1.17.40.21 Beta, 1.17.20.20 Beta, 1.16.200.57 Beta, 1.16.200.53 Beta, 1.16.40 Hotfix, 1.16.210, 1.17.2 Hotfix, 1.17.30, 1.17.32, 1.19.2 Hotfix
    • Confirmed
    • Windows
    • 456272

      The bug

      Bedrock structure files are little-endian NBT files. They can be included in behavior packs to be loaded by structure blocks in-game.

      However, when the NBT files are compressed using standard NBT-type compression (gzip and zlib), the file fails to load. This results in structure files taking up more than 50 times the necessary amount of space!

      How to reproduce

      1. Download the attached world
      2. Press the buttons on the structure blocks from right to left
         Only the leftmost one, referencing the uncompressed file, loads

      Notes

      While activating the structure blocks referencing compressed files, the following error is displayed in the content log:

      "format_version" field, a required field, is missing from the structure.

      The three structure files are attached here, for convenience. All three contain an identical taiga structure.

        1. gzip.mcstructure
          6 kB
          [Mod] tryashtar
        2. structure bug.mcworld
          4.86 MB
          [Mod] tryashtar
        3. uncompressed.mcstructure
          339 kB
          [Mod] tryashtar
        4. zlib.mcstructure
          6 kB
          [Mod] tryashtar

            tryashtar [Mod] tryashtar
            Votes:
            6 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: