[Mod] Map Generation Library [mapgen_lib]

Post Reply
User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

[Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Post

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.
Just realize how bored we would be if the world was perfect.

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Krock » Post

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

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Post

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.
Just realize how bored we would be if the world was perfect.

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Inocudom » Post

Will this mapgen have all of the nodes from your forest mapgen for the sakes of compatibility and variety?

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Gael de Sailly » Post

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.
Just realize how bored we would be if the world was perfect.

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Inocudom » Post

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.

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

Re: [Mod] Map Generation Library [mapgen_lib]

by Shammmmmm » Post

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

Post Reply

Who is online

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