-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Invalid tag value #25
Comments
Can you provide the files you tested? |
That is a valid schematic, so no issues there. How are you getting the |
With this function:
|
My best guess at this is that you're somehow loading the older |
Okay, the only two packages i'm using in this context are those:
Can you approve this ? |
I also ran into this same issue. This is my JS code
|
in general this error means the NBT data is invalid. in your provided code i'm a bit confused by the random substring call there? |
Yeah, that was the base64 api adding metadata about the encoding to the string, should have commented that |
I managed to find the Root of this issue The Problem is the getTagType function of the tag.js file. a transative dependency of SchematicJS it checks what type the tag is instanceof. However the function receives an object with following format ```{value:"examplevalue"}````
|
hmm, is that from a deeply nested tag, or the root tag? i wonder if this is just an issue around root tag handling, as that differs between Sponge Schematic v2 & v3 |
So is there a way to fix this problem ? |
Hey,
I tried to load a .schem file and a .nbt file and ran in both cases in this issue:
Error: Invalid tag value
at getTagType (nbt.js:15:9)
at nbt.js:30:12
at Array.forEach ()
at tagToRecord (nbt.js:28:20)
at loadVersion2 (version2.js:49:5)
at loadSchematic (loader.js:45:15)
at renderer.js:113:13
at Generator.next ()
at renderer.js:44:66
at new ZoneAwarePromise (zone.js:2702:25)
This is the configuration i used:
The text was updated successfully, but these errors were encountered: