This directory contains various scripts to use when debugging and compiling mcmap.
json2bsonis used to encode the color file before pasting it in the code;nbt2jsontakes a NBT file (as found inlevel.dat) and pastes its output as json;regionReaderreads a region file (.mcafiles) and prints all the chunks present in it;extractChunkextracts a chunk from a given region file;
To print a chunk as json, you can pipe those scripts together:
./extractChunk <region file> X Z | ./nbt2json | python -m json.tool
Compile using -DNBT_TOOLS=1 when calling cmake.