world generator
#2
Hello,
welcome to the forum.

Please next time paste code in [ shcode=lua ] [ /shcode ] tags - that will syntax-highlight the code and will expand the box, so that no scrollbar is needed.

As for the error you're seeing, it looks as a bug in the server. Are you using a debug build or a release build of MCServer? (Debug build is something you build yourself, includes more checks). I think the debug build should terminate on encountering this error; if you run the server under a debugger, you will be able to see where exactly it happened, and what the callstack was. This would help us hunt the bug down.

Can you try changing your FillBlocks() function to temporarily add a layer of solid blocks somewhere? Like this:
function FillBlocks(ChunkDesc)
    ChunkDesc:FillBlocks(E_BLOCK_AIR, 0)
    ChunkDesc:FillRelCuboid(0, 15, 60, 60, 0, 15, E_BLOCK_STONE, 0)  -- Fill 1 layer with stone, at height 60
    ChunkDesc:SetUseDefaultBiomes(false)
    ChunkDesc:SetUseDefaultHeight(false)
    ChunkDesc:SetUseDefaultComposition(false)
    ChunkDesc:SetUseDefaultFinish(false)
end

As for the DefaultStructures, there has been a change recently in the generator, it no longer distinguishes between a structure and a finisher, so the function is "deprecated" - it is still in the API but does nothing except for a log message. You don't need to use it at all.

Custom generators are completely supported, as a proof you can see the Gallery server, it uses a custom generator to fill the galleries with the templates for the areas.
Reply
Thanks given by:


Messages In This Thread
world generator - by Seadragon91 - 05-04-2014, 10:05 PM
RE: world generator - by xoft - 05-04-2014, 10:31 PM
RE: world generator - by Seadragon91 - 05-04-2014, 11:39 PM
RE: world generator - by xoft - 05-05-2014, 12:34 AM
RE: world generator - by Seadragon91 - 05-05-2014, 05:06 AM
RE: world generator - by bearbin - 05-05-2014, 05:20 AM
RE: world generator - by NiLSPACE - 05-05-2014, 05:33 AM
RE: world generator - by xoft - 05-05-2014, 03:10 PM
RE: world generator - by Seadragon91 - 05-05-2014, 03:29 PM
RE: world generator - by tigerw - 05-05-2014, 08:06 PM
RE: world generator - by Seadragon91 - 05-05-2014, 09:00 PM
RE: world generator - by worktycho - 05-06-2014, 01:00 AM
RE: world generator - by worktycho - 05-06-2014, 01:12 AM
RE: world generator - by Seadragon91 - 05-06-2014, 03:16 AM
RE: world generator - by xoft - 05-06-2014, 04:52 AM
RE: world generator - by Seadragon91 - 05-06-2014, 05:00 AM
RE: world generator - by NiLSPACE - 09-20-2014, 08:02 PM
RE: world generator - by xoft - 09-21-2014, 01:03 AM
RE: world generator - by worktycho - 09-22-2014, 02:27 AM



Users browsing this thread: 1 Guest(s)