Page 1 of 1

[Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 15:32
by Gael de Sailly
This mod is still experimental and unstable.

By creating Forest, I've realised that making a map generator by the Lua VM is a complex work. But I think it could be made easier, especially the PerlinNoiseMaps.

This mod adds lua functions about map generation, for example a method of VoxelAreas which returns a perlin map that you can use by the voxelarea.
And the equivalent in 2D : FlatArea (still some problems with FlatArea:iter and iterp, don't use it for now), used, unlike VoxelArea, only for perlin noise maps, not for setting VoxelManip's datas.
And a GUI for setting mapgen params at the beginning of the game :

Image
Image
Image
Image

Git repo
Download (rename to "mapgen_lib)

You can download and use it but it's still very unstable.

I'm looking for contributors.
If you're interested, don't hesitate.

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 15:37
by Krock
+1
Sadly, it's not possible to make a sandy beach .. yet

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 18:32
by Gael de Sailly
A sandy beach ? Sorry, I don't understand. Are you sure that you post your reply at the good place ?

You can try the mapgen "flatmountains.lua", it sometimes generate beaches on the seashore.

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 19:14
by Inocudom
Will this mapgen have all of the nodes from your forest mapgen for the sakes of compatibility and variety?

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 19:55
by Gael de Sailly
Forest and mapgen_lib are two different things. But, if you want, you can rewrite the Forest mapgen to use this library, but it's not the library which defines the nodes.

I'm not sure to have understood what you tell me.

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Wed Sep 24, 2014 21:13
by Inocudom
Gael de Sailly wrote:But, if you want, you can rewrite the Forest mapgen to use this library, but it's not the library which defines the nodes.

That will do just fine. In the process, would forest be able to incorporate ores and plants from other mods? Is this library capable of that? The big ones I am hoping for are plantlife, moretrees (the more, the merrier,) darkage (CraigyDavi's fork,) moreores, and technic.

Again, I really, really do hope that forest will be used by people in the future. I posted screenshots of it in the topic for it before (in previous posts.)

Of course, compatibility with mods that generate ores and plants would serve this library in and of itself well as well.

Re: [Mod] Map Generation Library [mapgen_lib]

PostPosted: Sat Nov 29, 2014 19:36
by Shammmmmm
like this mod +1 :)