[Mod] Above sea level pools [0.1.1] [highlandpools]
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
[Mod] Above sea level pools [0.1.1] [highlandpools]
Download https://github.com/paramat/highlandpool ... 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.
- Krock
- Developer
- Posts: 4649
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Nice.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
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.
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.
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
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.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.
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.
Re: [Mod] Above sea level pools in mapgen v6 [0.1.1] [highla
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
edit: the same problem with your landup-mod. unfortunately i have no idea of lua and programming in general
- Wuzzy
- Member
- Posts: 4786
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
Quite interesting mod. It is simple and clean. I like the lakes. They vary greatly in size and depth. Some lakes are really cool:
I don't really like the very flat lakes which are pretty large but only 1-2 blocks deep. They seem too … artificial. They look more like a puddle than an actual lake.
It has a few bugs. It currently does not seem to remove flowers and grass, so they end up being in the lake.
Sometimes (but rarely) this mod seems to obliterate trees and cut trunks in half which looks really strange (leads to floating trees):
The strange thing is, this happens at places very far from lakes.
I'm considering using this mod for MineClone 2 (but I don't like the flower and tree bugs) . It seems to fit almost perfectly. Using this mod in any subgame is really just a matter of replacing node names. Cool. :-)
I suggest:
- Create lakes in snowy biomes
- Replace node names like default:dirt with mapgen_dirt to ease subgame integration even further
- Maybe add random variety to the ground (sand, gravel, stone)
- Fewer puddle-like lakes, or tweak them
I don't really like the very flat lakes which are pretty large but only 1-2 blocks deep. They seem too … artificial. They look more like a puddle than an actual lake.
It has a few bugs. It currently does not seem to remove flowers and grass, so they end up being in the lake.
Sometimes (but rarely) this mod seems to obliterate trees and cut trunks in half which looks really strange (leads to floating trees):
The strange thing is, this happens at places very far from lakes.
I'm considering using this mod for MineClone 2 (but I don't like the flower and tree bugs) . It seems to fit almost perfectly. Using this mod in any subgame is really just a matter of replacing node names. Cool. :-)
I suggest:
- Create lakes in snowy biomes
- Replace node names like default:dirt with mapgen_dirt to ease subgame integration even further
- Maybe add random variety to the ground (sand, gravel, stone)
- Fewer puddle-like lakes, or tweak them
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
Maybe replace them with waterlillies, at the watersurface ?Wuzzy wrote:Quite interesting mod. .. It has a few bugs.
It currently does not seem to remove flowers and grass, so they end up being in the lake.
'My' wiki-pages: Build-a-home - basic-robot - basic_robot_csm - basic-machines - digtron - xdecor -
Map-Database
Map-Database
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
This mod needs updating for new nodes and new biomes, the stuff it removes needs updating.
This works by filling an already-existing depression with water using a flood-fill method (which is why it can be very slow). So a shallow depression still gets filled. Maybe it could be edited to only fill deeper depressions.
This works by filling an already-existing depression with water using a flood-fill method (which is why it can be very slow). So a shallow depression still gets filled. Maybe it could be edited to only fill deeper depressions.
-
- Member
- Posts: 4276
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
I like those not so deep mini-lakes more than the much deeper ones. Especially if there's rich plantlife around it.Wuzzy wrote: - Fewer puddle-like lakes, or tweak them
A list of my mods can be found here.
- Hamlet
- Member
- Posts: 766
- Joined: Sat Jul 29, 2017 21:09
- IRC: H4mlet
- In-game: Hamlet
- Location: Lombardy, Italy
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
I've tried this mod and I like it very much.
It doesn't seem to work with mgv7, not sure though.
It doesn't seem to work with mgv7, not sure though.
My repositories: Codeberg.org | My ContentDB's page
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
Yes, we need this for 5/7/valleys/carpathian mapgens as well!
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
Also using river water to fill the lakes would be a good idea. This could generate specific types of mobs in lakes
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
I realize the mod code was last modified 5 years ago but I still find it extremely charming to have these pools at elevation dotted around the world.
at some point you said
ps. I forked the code https://github.com/acidzebra/highlandpools and changed max_height to suit my world, changed the water type to river water so it doesn't go on a water flow rampage, and added dissolve code written by casimir (viewtopic.php?f=9&t=8917) for leaves, flora, flowers and a custom group "dissolve".
at some point you said
how would you do this?paramat wrote:Maybe it could be edited to only fill deeper depressions.
ps. I forked the code https://github.com/acidzebra/highlandpools and changed max_height to suit my world, changed the water type to river water so it doesn't go on a water flow rampage, and added dissolve code written by casimir (viewtopic.php?f=9&t=8917) for leaves, flora, flowers and a custom group "dissolve".
-
- Member
- Posts: 4276
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Above sea level pools [0.1.1] [highlandpools]
This mod is far too nice to sit around more or less ignored. There ought to be more lakes in the world! Inspired by this mod here, I've written the lakes mod, which follows a diffrent algorithm and adds rich vegetation around the shore.
A list of my mods can be found here.
Who is online
Users browsing this forum: No registered users and 13 guests