I'm still also interested in how file compression works, but that's probably outside this question's scope. mca's or a discussion board related to this topic that'd be cool. If anyone could point me to a finished Java library, with source code, that opens. As far as getting my world fixed, I think I have a viable solution now. I've got a lead on understanding the problem because I have the NBTExplorer source code (see the answer I posted), but I'll have to update on how that pans out. He said he found an NBT library for Python, but it was rejecting his MCA files for being not-gzipped. mca files so that in python I can extract individual blocks? His question is with regard to a Python implementation. I found one specific copy of this question asked 5 months ago, but I had to make an account to comment. I've seen similar questions asked here, but all of them were either old (2016ish) with dead links to software that used to work, or they were recent and unanswered. Note: I still have not got the gzip software to work. To me that sounds like Unix, but the file I downloaded is for Windows? There aren't any exe's, but there are quite a few C files. It says use the "Shell Commands, 'configure', 'make' and 'make install'". mca file and I could read the bytes as expected, but I don't understand the installation instructions. I imagine if I could get this installed it would unzip this. I found this as a start to the gzip problem: I assume these bytes coming out as non-sense is a sign that the file is compressed. I just quickly filled in enough to read the bytes, not flesh out the UI function. Note: The class description in the screenshot is not accurate. Here's a screenshot of what actually came out: This is where I got my format information: I finished enough code to read some raw bytes, but the byte values didn't come out as I expected.Īccording to the info I have on NBT files, they all start with a CompoundTag and a CompoundTag starts as a single byte valued as 10, or x0A. I figured I could manually read out the bytes and edit them, but in my continued research I got conflicting answers as to whether region files are gzipped. I read up on the Anvil file format and imagined a scheme for reading NBT files. That led to quite a bit of lag when I opened the client and the regions failed to render. Note: I've opened the files and it seems entire sectors have their coordinates stored, not entities, hence the terrain itself is spatially mismatched with the region file name. I started by shifting the region files and combining them in one region folder, which seemed like the obvious solution and it almost worked. I want to combine my separate Minecraft worlds into a single world and it seemed like a relatively easy feat, but as I did research it evolved into the need to make a custom program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |