tryashtar / nbt-studio

An up-to-date NBT viewer and editor with lots of new features
521 stars 42 forks source link

Feature Request : Export to txt #41

Open SoftwarePixel opened 2 years ago

SoftwarePixel commented 2 years ago

I would really appreciate a feature that exports the nbt data to a txt file. If it were to be created, this would make it the ifrst NBT editor with the feature. Below is an example of how it shoud be:

Just like the example above would be great!

tryashtar commented 2 years ago

For specifically chunks?

SoftwarePixel commented 2 years ago

All the .mca files would be great, my goal is to search through the values with python, so I can find text signs and such. Also, I really appreciate how active you are in keeping this up-to-date. Most small projects like these are often abandoned.

tryashtar commented 2 years ago

Ah I see. What I would like is to make MCA files able to be "flattened" to NBT, that way we can just save and load them as SNBT. Maybe it could be automatic: if all the entries in the root compound are compounds named X,Z, the program treats it as a region file for purposes of controls, display, and saving. That gets more complicated than the first idea though. Automation is another thing that could use better support. It would definitely be a pain to individually save-as a bunch of files under new names. I should make it so the global "save as" when you have multiple files open prompts you to select a folder to save everything to. I'm glad you appreciate the project :) Although I'm afraid I may disappoint you -- lately I'm finding it very hard to find time to work on this, and it's in dire need of an overhaul that I'm too inexperienced to do :( The first version of this was made out of necessity for me. I'm happy to help others as well, but it can be hard :(

SoftwarePixel commented 2 years ago

Thank you for such swift replies! I think the flatten feature would be great, I really just need a way to be able to read the files in python. I am unable to find a way to extract any data from mca files using python, I am mainly looking for a way to do that. I am sad that you are struggling to up keep the project. It's currently the most capable NBT editor I was able to locate. An overhaul is not nessesary anyways. :)