Cuberite Forum
Compress already generated worlds - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Compress already generated worlds (/thread-2982.html)



Compress already generated worlds - nrgjrteherh435 - 06-27-2017

How do I compress an already generated world with player built structures that I don't want destroyed? Current world size is 1.4gb... The compression setting in the config is set to 6, but the file size doesn't change.

Please and thank you,
nrgjrteherh435.


RE: Compress already generated worlds - xoft - 06-27-2017

The compression setting is used only when writing modified chunks, it will not alter chunks that are not loaded at all.

We had a tool that would, among other things, recompress all chunks. I'm not sure if it still works, I'll have a look when I get back to a computer.


RE: Compress already generated worlds - xoft - 06-27-2017

Can you compile a program, or do you need an executable? When you initialize the Cuberite's repository with cmake, you can specify "-DBUILD_TOOLS=1" parameter to build additional tools, one of them being MCADefrag. That program, when run, reads all .mca files in current folder and recompresses them. Be sure to operate on a copy of your world first, verify that the recompressed data is still valid, and only then replace your original world files.


RE: Compress already generated worlds - nrgjrteherh435 - 06-29-2017

Alright, I compiled the tools. Seems to be working fine, thanks! Smile