Cancel chunk generating - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Cancel chunk generating (/thread-1241.html) |
Cancel chunk generating - tonibm19 - 09-13-2013 I want to make server don't generate chunks, only load existing. Is there any way of doing that? I saw there is a OnChunkGenerating hook but wiki says that is you return true no other plugin calls hook, but it dont says chunk is not loaded. RE: Cancel chunk generating - xoft - 09-13-2013 Chunk is generated only when it cannot be loaded from any of the supported storage schemas. So when you get an OnChunkGenerating hook, you already know that the chunk cannot be loaded. Now, no matter what that hook returns, the server will still generate the chunk; but you can manipulate the ChunkDesc parameter to force an almost-empty chunk generation - just fill the chunk with all air and set it as not using the default generators. Of course, this is not exactly cancelling the generation, but the MCServer architecture dictates that "any chunk must be available on request, either loaded, or generated". We do not support holes in the chunkmap - and neither does the client. RE: Cancel chunk generating - tonibm19 - 09-13-2013 A chunk filled with air will use less ram and disk space? RE: Cancel chunk generating - xoft - 09-13-2013 It will use the same amount of ram as any other chunk (for now, until we have chunk-sparsing), but it will use very little diskspace - about 4 KiB RE: Cancel chunk generating - tonibm19 - 09-13-2013 Ok, I want to use a pregenerated map and I don't want to use too much diskspace and also save ram because players wont be able to load more chunks , they cant walk on air. RE: Cancel chunk generating - tonibm19 - 11-24-2013 Client/server supports holes, just try nonewchunks bukkit plugin. |