nbt-studio icon indicating copy to clipboard operation
nbt-studio copied to clipboard

Binary string tag support for Bedrock Edition entity data

Open xiaoqch opened this issue 3 years ago • 3 comments
trafficstars

Starting from 1.18.30, Bedrock Edition uses a binary string tag to store entity storageKey data, which cannot be displayed correctly by this software and cannot be edited

A example data:
image
image
image

Attachment:
actorprefix780000000f000000c9.zip

xiaoqch avatar Jun 08 '22 08:06 xiaoqch

Can Bedrock go 5 seconds without inventing the stupidest NBT spec breaks imaginable?

tryashtar avatar Jun 08 '22 09:06 tryashtar

Anyway... my plan will probably be like this:

  • add \uXXXX unicode escapes to SNBT parser just like JSON
  • and add a thing to SnbtOptions that decides when to serialize them
  • by default, only does for control characters
  • in inline preview, replace specifically \u0000 with some placeholder char
  • for edit box, any ideas? It's supposed to be "raw" text so no escapes, but obviously we can't have null characters hanging around in there. Maybe the string editor can have a byte view tab?

tryashtar avatar Jun 08 '22 10:06 tryashtar

Also, I will most likely not work on this any time soon :(

tryashtar avatar Jun 08 '22 10:06 tryashtar