Jump to content

[1.7.10] [1.8] [SOLVED] Using NBTTagEnd to encode null objects.


Elix_x

Recommended Posts

Good day everybody, i have one little question:

Can i use NBTagEnd to encode null objects to nbt? Or should i use something else?

Note: these "ends" may appear in both compound and list tags.

 

Thanks for help!

If you have any questions - just ask!

Link to comment
Share on other sites

So, i can't use NBTTagEnd. I don't think i either can add new tag with null value.

So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"?

 

And that link to github you gave me, has some usefull things to learn for me. Because i'm working on something similar and it's working pretty nicely: MBT (Json, Gson. Nbt, Mbt. Get it?).

Link to comment
Share on other sites

So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"?

Which is why I choose the absolutely ridiculous key "_sc$null" (sc for SevenCommons).

Oh yeah, to not be mistaken with object's field, all i have to do is to use characters that cannot be used in field's name. So #NULL will be enough :D ...

 

(Json, Gson. Nbt, Mbt. Get it?).

No, not really :D

The why Gson is named Gson. Because Google's json?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried removed Sodium and iris but didn't help
    • same issue, crash on ubuntu 24 and stable on WIndows GraalVM 17 on 1.20.1 fabric Prominence II [RPG] modpack
    • look my mod-pack with 300+ plus mods is crashing and I'm not sure what mod is causing this it was working fine not that long ago... and if no one knows then my question would be is how do you read crash logs Crash Log https://pastebin.com/tak3uuEm 
    • I try to play with better combat, I install its dependency but it tells me that it needs version 1.0.2 and I already have it, what do I do? the dependency is player animator
    • I think my save file was potentially corrupted (based on what I have been reading online). The world has loaded and saved perfectly fine for weeks. Today I added about 6 new mods and updated 3 mod libraries, and then encountered the following error: "Errors in currently selected data packs prevented the world from loading. You can either try to load it with only the vanilla data pack ("safe mode"), or go back to the title screen and fix it manually." I have tried changing to a newer Forge version, reverting the updated mods back to original versions, removing the new mods, removing and readding all mods, removing my world file and loading the forge profile and adding it back, renaming the level.dat_old file as level.dat... Nothing has worked yet. Forge loads fine and I don't want to risk trying to reload the world in "safe mode" in case I end up losing mod-related content. Not sure how that works. I am having trouble reading the output log to determine what is causing the error. Any advice is better than none!! Thank you!     Info: Minecraft 1.20.1 Forge 47.1.3 Mod list (includes which mods are disabled, newly added before this error, and any changes I found after the error) : https://pastebin.com/nquXY1Hj Latest log: https://pastebin.com/U4fD0kAt
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.