[Mod] Map Generation Library [mapgen_lib]

User avatar
Gael de Sailly
Member
 
Posts: 671
Joined: Sun Jan 26, 2014 17:01
Location: Lyon, France
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

[Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Wed Sep 24, 2014 15:32

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.
Last edited by Gael de Sailly on Sun Oct 19, 2014 16:21, edited 1 time in total.
Contributor of Minetest and OpenStreetMap, on Ubuntu 16.04. ~ ~ ~ Meet me on MinetestForFun, VanessaE's Basic, Capture the Flag and Inside the Box.
 

User avatar
Krock
Developer
 
Posts: 4147
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Map Generation Library [mapgen_lib]

by Krock » Wed Sep 24, 2014 15:37

+1
Sadly, it's not possible to make a sandy beach .. yet
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Gael de Sailly
Member
 
Posts: 671
Joined: Sun Jan 26, 2014 17:01
Location: Lyon, France
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: [Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Wed Sep 24, 2014 18:32

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.
Contributor of Minetest and OpenStreetMap, on Ubuntu 16.04. ~ ~ ~ Meet me on MinetestForFun, VanessaE's Basic, Capture the Flag and Inside the Box.
 

User avatar
Inocudom
Member
 
Posts: 3018
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Map Generation Library [mapgen_lib]

by Inocudom » Wed Sep 24, 2014 19:14

Will this mapgen have all of the nodes from your forest mapgen for the sakes of compatibility and variety?
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

User avatar
Gael de Sailly
Member
 
Posts: 671
Joined: Sun Jan 26, 2014 17:01
Location: Lyon, France
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: [Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Wed Sep 24, 2014 19:55

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.
Contributor of Minetest and OpenStreetMap, on Ubuntu 16.04. ~ ~ ~ Meet me on MinetestForFun, VanessaE's Basic, Capture the Flag and Inside the Box.
 

User avatar
Inocudom
Member
 
Posts: 3018
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Map Generation Library [mapgen_lib]

by Inocudom » Wed Sep 24, 2014 21:13

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.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

Shammmmmm
Member
 
Posts: 27
Joined: Sat Sep 20, 2014 21:31
Location: Philippines
GitHub: Shammmmmm
IRC: Shammmmmmm
In-game: Shammmmmm

Re: [Mod] Map Generation Library [mapgen_lib]

by Shammmmmm » Sat Nov 29, 2014 19:36

like this mod +1 :)
You Can call me Sham
New mods incoming by me :)
 


Return to WIP Mods



Who is online

Users browsing this forum: Google [Bot] and 3 guests