Page 2 of 2

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Sep 11, 2014 05:36
by Zombie471
I really like it, but it doesn't work with this Nether Mod: viewtopic.php?f=11&t=5790&hilit=nether ... ugh the default minetest mapgen is terrible... I can't decide to use that or this. Any chance of merge? I'd love to use both o3o

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Sep 11, 2014 18:16
by Krock
Zombie471 wrote:but it doesn't work with this Nether Mod
Any chance of merge?
Thanks but I'm not sure how I can add a good way to add ores with the function

Code: Select all

minetest.register_ore(table)
https://github.com/PilzAdam/nether/blob ... t.lua#L374

This is currently the weak point of this mapgen. I'll post it here if there's any success with my next tries.

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Fri Sep 12, 2014 19:56
by Krock
From newest Git:

Image

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Sun Sep 21, 2014 15:53
by Krock
After some small updates - A new feature showcase is required:
Modify the "details" setting to get a coarse terrain.
Image

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Oct 09, 2014 11:13
by Krock
After some noise changes and new grass generation, it got a new look:
Image
Image

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Sun Dec 21, 2014 09:39
by paramat
I saw your yappy multiplayer map in IRC. Keeping trees away from chunk borders is unnecessary because your trees should not be cutoff along chunk borders, the voxelmanip volume actually extends one 16 nodes beyond the chunk edges. Trees only get cutoff if you are placing "air" during mapgen, this is unnecessary since in singlenode the chunk comes already filled with "air".
The latest screenshots look good.

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Sun Dec 21, 2014 10:55
by Krock
paramat wrote:I saw your yappy multiplayer map in IRC. Keeping trees away from chunk borders is unnecessary because your trees should not be cutoff along chunk borders, the voxelmanip volume actually extends one 16 nodes beyond the chunk edges. Trees only get cutoff if you are placing "air" during mapgen, this is unnecessary since in singlenode the chunk comes already filled with "air".
The latest screenshots look good.
Oh thanks for this note. But there was a time when the trees were cut-off along the mapblocks.
I had to use those codes to prevent from getting those ugly parts.
Commit

I think the next step is to copy the normal/jungle tree generation code and add compability with the current MTG this way.

EDIT:
Image
Are you sure about what you said?

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Dec 25, 2014 08:08
by paramat
Yes i'm sure. Are you placing "air" in your mapgen? if not, do your trees check for "air" and "ignore" before placing? Outside the current mapchunk the tree nodes will be placed in "ignore" instead of "air". Also, if your trees exceed 16 nodes in height they will get chopped. That's all i can think of so far.

EDIT
All lines like this:

Code: Select all

if data[vil] == c_air then
    data[vil] = c_oak_tree
end
Should be:

Code: Select all

if data[vil] == c_air or data[vil] == c_ignore then
    data[vil] = c_oak_tree
end

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Dec 25, 2014 09:51
by Krock
paramat wrote:Outside the current mapchunk the tree nodes will be placed in "ignore" instead of "air". Also, if your trees exceed 16 nodes in height they will get chopped. That's all i can think of so far.
Oh, that was the problem. I did not expect any ignore nodes inside the loaded area.

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Fri Dec 26, 2014 22:49
by Hybrid Dog
I got problems with the riesenpilz mapgen. Somehow for a reason I don't know the big mushrooms generating doesn't work correctly:
Image

Re: [Mod] Again a Lua mapgen [yappy]

Posted: Thu Jan 29, 2015 23:45
by Wayward_One
This is now my favourite mapgen :D

Re: [Mod] MapGenerator - regular maps by Lua [lualandmg]

Posted: Sat Sep 23, 2017 12:02
by Krock
After three years I'm picking up this mod again to adjust it for the new API functions. This mod is now called "LuaLandMG", which is a slightly better name, which also marks an entire backwards compatibility break.
  • minetest.generate_ores()
    ...generates the ores now, instead of the custom function
  • minetest.get_mapgen_object() heightmap and heatmap
    This mapgen provides both tables as long the current chunk is being generated
  • Pine tree nodes from MTG are used now
  • New dry grass biome and dry grass decorations (requires MTG)
Hopefully soon: Biomes and decorations directly from the by-API registered definition tables.
The average time spent for a chunk (usually (5*16)^3) on the surface is about 300 ms using LuaJIT.