fNbt icon indicating copy to clipboard operation
fNbt copied to clipboard

Open region files

Open sk-zk opened this issue 5 years ago • 6 comments
trafficstars

Is it possible to open region files (.mca) with fNbt? It fails with this message:

System.IO.InvalidDataException: 'Could not auto-detect compression format.'

(edit: nvm, rolled my own)

sk-zk avatar Feb 22 '20 23:02 sk-zk

How did you solved the problem? I am stucking at the same message.

DerMattinger avatar Feb 16 '21 10:02 DerMattinger

So basically, a region file is not an NBT file, but does store chunk data as NBT.

https://wiki.vg/Map_Format#.5Bregion.5D.mca https://wiki.vg/Region_Files

fNbt doesn't seem to have implemented this format.

sk-zk avatar Feb 16 '21 10:02 sk-zk

Ok, Thanks for the fast answer 👍 I will switch to Java and use this repository: https://github.com/Querz/NBT

DerMattinger avatar Feb 17 '21 08:02 DerMattinger

Is it possible to open region files (.mca) with fNbt? It fails with this message:

System.IO.InvalidDataException: 'Could not auto-detect compression format.'

(edit: nvm, rolled my own)

Hi, you mention you rolled your own. Care to share? I'm guessing this library can still be used for the Chunks but I can't reach them

josessin avatar Jan 28 '22 18:01 josessin

Sure:

https://github.com/sk-zk/EzNbt

I haven't touched it in two years though so if there have been any changes to the format it's probably broken

sk-zk avatar Jan 28 '22 19:01 sk-zk

Thank you! I was hacking something of my own but I like yours better, I'll give it a try.

josessin avatar Jan 30 '22 15:01 josessin