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

Binary string tag support for Bedrock Edition entity data #40

Open
xiaoqch opened this issue Jun 8, 2022 · 3 comments
Open

Binary string tag support for Bedrock Edition entity data #40

xiaoqch opened this issue Jun 8, 2022 · 3 comments

Comments

@xiaoqch
Copy link

xiaoqch commented Jun 8, 2022

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

@tryashtar
Copy link
Owner

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

@tryashtar
Copy link
Owner

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
Copy link
Owner

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

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

No branches or pull requests

2 participants