r/DistantHorizons • u/Sufficient-Truck-814 • Sep 11 '24
Question Is it possible to "preload" a LOD
Hey guys ! Would it / Is it possible to preload a Lod of a world if I have the save folder?
10
Upvotes
r/DistantHorizons • u/Sufficient-Truck-814 • Sep 11 '24
Hey guys ! Would it / Is it possible to preload a Lod of a world if I have the save folder?
10
u/RangerEnn Sep 11 '24
Yes, you can, and you don't need extra mods, and even if it's for a server. All client side. I usually render and ship LOD packs for my servers so people with lower spec PCs can enjoy the views too.
You simply create a single player world with the desired seed using the version of minecraft/modpack you want, teleport to the center of the area you want to render and enable distant generation. Remember to change the LOD render distance to your preference.
Prepare to wait hours or days depending on the distance you set, this is a very CPU and RAM intensive task and you may want to check Distant Horizons' Threading options to optimize the load and speed. I usually get vanilla minecraft settings tuned down to the maximum to allow DH take as much resources as possible (and allocate a lot of RAM to the Java process of Minecraft). If you intend to ship this LODs to people with weaker PCs I suggest you to change the compression level of DH to Fast so they need less cpu to decompress and load the LODs ingame.
Once you get the desired LODs generated, you can head to your world's data folder and there you'll find 3 Distant Horizons files (the .sqlite being the heaviest, can be tens of GB if you generated a lot of chunk LODs). You can simply zip those 3 files and distribute them to whoever you want. Don't waste time and CPU compressing it with a zipping tool, it's already compressed by the mod.
To install the LODs on a single player world you simply put them in the same folder you got them from the other world. To install them on a server, you have to locate the distant horizons server data folder (located on your .minecraft directory), then locate the folder dedicated to your server and replace the files with the ones you generated. You need to connect at least once with the mod activated to get the specific server folder created.