[Mod] Above sea level pools [0.1.1] [highlandpools]

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

[Mod] Above sea level pools [0.1.1] [highlandpools]

by paramat » Sat Jan 25, 2014 07:15

Image


Download https://github.com/paramat/highlandpools/archive/master.zip rename to 'highlandpools'
Browse code https://github.com/paramat/highlandpools

Minetest 0.4.8 or later
Depends default
Licenses: code WTFPL

Developed for mgv6, may need some work to work perfectly in other mapgens.
Adds pools to floatlands too.
A search using the voxelmanip for natural water-retaining depressions in core mapgens, these are then filled with water and the trees removed.
Last edited by paramat on Tue Aug 09, 2016 04:41, edited 2 times in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Sat Jan 25, 2014 07:40

Nice.
Image
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Sun Jan 26, 2014 03:40

Version 0.1.1
Compatible with indev mapgen and will add pools to floatlands too, just set the maximum y for pools with parameter YMAX. Seems to work well in the farlands of indev, since the more extreme terrain creates more and deeper depressions. Pools on the floatlands are fairly small and rare.
Last edited by paramat on Sun Jan 26, 2014 03:42, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Sun Jan 26, 2014 09:39

You can move the get_content_id out of the functions, so you only get them once. That makes it slightly faster.

Can you explain how this works? You seem to try a very different attempt then my mod.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Tue Feb 04, 2014 23:07

Casimir wrote:You can move the get_content_id out of the functions, so you only get them once. That makes it slightly faster.

Can you explain how this works? You seem to try a very different attempt then my mod.

Hi, i'm following hmmmm's advice to get content ids as locals within the ongen function. As i understand him it is actually more efficient this way.

Hehe this is a complex method for a few small pools, i'll try to explain ...

After a chunk is generated the mod makes 81 attempts to form a pool, each attempt is centered on a particular XZ column and these are spread through the chunk in a grid, spaced 8 nodes apart.

For each 'attempt':

Working downwards through the column grass is searched for to find ground level, the mod then works on the XZ plane of nodes just above ground level, this will be the pool surface.

The mod then checks if the central node just above ground is surrounded on all sides by nodes (at any distance within the chunk), in order to contain water: from the central node just above ground the mod searches outwards in the 4 NESW horizontal directions, if any of these searches reaches a chunk border without hitting a node the current 'attempt' is aborted.

Passing that test water is then placed in the central node just above ground level, and then the water is spread horizontally through that 1 node high XZ plane: each water node creates 8 water nodes around it. If the water finds a way to leak out to the chunk border all water in the plane is erased and the 'attempt' aborted.

Finally, having passed all those tests water is allowed to flow downwards from the 1 node high XZ plane to fill any air gaps below.
Last edited by paramat on Tue Feb 04, 2014 23:07, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

Frai
Member
 
Posts: 14
Joined: Tue Apr 22, 2014 05:51

Re: [Mod] Above sea level pools in mapgen v6 [0.1.1] [highla

by Frai » Thu May 08, 2014 23:35

hi, i like this mod, but when i use it the mgv6 doesn't generate grass, papyrus and cactus anymore

edit: the same problem with your landup-mod. unfortunately i have no idea of lua and programming in general
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 41 guests

cron