mstefarov / fNbt

A C# library for reading and writing Named Binary Tag (NBT) files and streams. A continuation of libnbt project, originally by Erik Davidson (aphistic).
116 stars 31 forks source link

Open region files #32

Open sk-zk opened 4 years ago

sk-zk commented 4 years ago

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)

DerMattinger commented 3 years ago

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

sk-zk commented 3 years ago

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.

DerMattinger commented 3 years ago

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

josessin commented 2 years ago

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

sk-zk commented 2 years ago

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

josessin commented 2 years ago

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