Running the server with a flat height generator - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Running the server with a flat height generator (/thread-1771.html) |
Running the server with a flat height generator - Tommy Santerre - 02-13-2015 I want to start working on this issue https://github.com/mc-server/MCServer/issues/1606 . In order to reproduce the problem I would need to generate a world with a flat height (if i understand correctly). Could anyone guide me on how to do this. RE: Running the server with a flat height generator - xoft - 02-13-2015 Hello, welcome to the forum. You should make yourself familiar with the world configuration file, world.ini. It has all the settings that you want to manipulate in order to test this issue. We have a somewhat dated page about it in the wiki, it hasn't been updated for a year, so some of it is no longer valid, but it will at least give you the overall feel for things and it does indeed contain all the info about flat world generation: http://wiki.mc-server.org/doku.php?id=configure:world.ini#generator_section Basically, you need to set your [generator] section in world.ini to contain: Code: [Generator] Finally, there's an (unfinished) article in the repo itself about how MCServer generates terrain. It might give you insight into some of the internal workings. This is the file in GitHub, but it's better to open it directly from your repo clone: https://github.com/mc-server/MCServer/blob/master/docs/Generator.html RE: Running the server with a flat height generator - xoft - 02-13-2015 You might want to test the generators with FlatHeight=0 or FlatHeight=1 as well, there might be issues with that, too. RE: Running the server with a flat height generator - LO1ZB - 02-13-2015 This does not work for me, independent of what I set for flat high, it generate 3d terrain anyway. RE: Running the server with a flat height generator - Tommy Santerre - 02-14-2015 Where is the world.ini file being parsed. It could help me find the correct configuration. I'd like to read the code to understand the different options. I get a standard 3d world also. Great job on the world generation documentation, it's really interesting. RE: Running the server with a flat height generator - xoft - 02-14-2015 The entire generator is initialized in cChunkGenerator::Start() in $/src/Generating/ChunkGenerator.cpp. It chooses the main engine (which is Composable in 99.9% of the cases) and hands the individual initialization to it. The Composable generator (which you want for this) reads the INI file in cComposableGenerator::Initialize() in $/src/Generating/ComposableGenerator.cpp. That's probably the best place to start digging around. RE: Running the server with a flat height generator - Tommy Santerre - 02-15-2015 (02-14-2015, 08:27 AM)xoft Wrote: The entire generator is initialized in cChunkGenerator::Start() in $/src/Generating/ChunkGenerator.cpp. It chooses the main engine (which is Composable in 99.9% of the cases) and hands the individual initialization to it. Thanks, I was able to get a working flat world. However the value 255 doesn't seem to be valid. When I use it I only get water. Here is a working configuration for a flat world for anyone else. Code: [Generator] RE: Running the server with a flat height generator - xoft - 02-15-2015 The value 255 should be usable and should generate a regular world filled with blocks up to its top; if it doesn't, it's a bug worth solving. |