[mod] Islands - Experimental lua mapgen [islands]

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

[mod] Islands - Experimental lua mapgen [islands]

by Termos » Tue Oct 01, 2019 19:39

Image

The goal of this experiment is to create non crazy, possibly realistic, familiar looking terrain, mundane yet varied and memorable.

Currently there are three distinct terrain features - beaches, cliffs and mountains.
At this stage, this experiment doesn't concern itself with ores, caves, item availability etc., decorations are few and makeshift just to spice things up a bit.

adjusted for reasonable view range:
Even the most beautiful terrain is worth nothing, if it's features are so large that they can't be appreciated during normal gameplay on reasonable view settings.
I'm testing it with view range of around 300, which is a reasonable tradeoff, performs well on most systems, but you'll often get to see terrain generate in front of you. (hint: max_block_distance and max_block_generate_distance can both be set to view_range/16 rounded if the system can handle it)

simplicity and performance:
2d noise only, because I feel the capabilities of 2d noise haven't been fully explored, and because I've yet to see anything good come out of using 3d noise for terrain. The result is relatively fast for a lua mapgen.

known problems:
- distances between islands can be vast sometimes, this is necessary to keep the world sailable, otherwise islands tend to connect and create large inland lakes.
- singlenode mapgen has to be selected when creating new world - set_mapgen_setting override doesn't seem to work. solved


License: MIT
Depends: default
Download: https://github.com/TheTermos/islands/archive/master.zip

Some compatible mods to spice up exploration:
1. zombiestrd + mobkit - now sharks spawn in the sea, so swimming to another island becomes not such a good idea.
2. If not swim, then why not to use Eran's sailory to sail across dangerous waters.
3. ...or mine: Sailing Kit
Attachments
islands001.jpg
(49.83 KiB) Not downloaded yet
Last edited by Termos on Sun Oct 20, 2019 19:44, edited 6 times in total.
 

Eran
Member
 
Posts: 90
Joined: Fri May 03, 2019 16:46

Re: [mod] Islands - Experimental lua mapgen [islands]

by Eran » Tue Oct 01, 2019 21:13

This is really pretty, nice work! I kind of want to port the boat from the sailing mod now.

Sadly I'll have to add one to the known problems: The dofile that starts registerstuff.lua and also some of the place schematics functions use '\' in file paths. This makes it crash on linux and propably also mac. If you use '/' instead, it works on both windows and unix based machines.
It would be also cool if you could make the dependency on default optional, so it can be easily ported to other games. Maybe this could be done with and islands.set_content_ids function.
 

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Islands - Experimental lua mapgen [islands]

by Termos » Tue Oct 01, 2019 22:57

Eran wrote:Sadly I'll have to add one to the known problems: The dofile that starts registerstuff.lua and also some of the place schematics functions use '\' in file paths. This makes it crash on linux and propably also mac. If you use '/' instead, it works on both windows and unix based machines.

Keep forgetting about that dammit, should be fixed now, thanks.

Eran wrote:It would be also cool if you could make the dependency on default optional, so it can be easily ported to other games. Maybe this could be done with and islands.set_content_ids function.

This is possible, but I'd have to do my own decorations and drop the boat and binos, so this is for another time.
 

User avatar
duane
Member
 
Posts: 1591
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

Re: [mod] Islands - Experimental lua mapgen [islands]

by duane » Tue Oct 01, 2019 23:51

Wow! That is some gorgeous terrain. Those cliffs and mountains are beautiful. I thought I'd be stuck with dinky islands and too much sailing, but this is completely playable.

I'm copying it into my mapgen (with your license and credit, of course).

Outstanding.
Believe in people and you don't need to believe anything else.
 

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Islands - Experimental lua mapgen [islands]

by Termos » Wed Oct 02, 2019 13:21

Glad it's being used so soon.
Sorry for messy code, I've been changing stuff around a lot (and I'm not done yet)

Should you need even less dinky islands, there's 'mult' variable to scale things up.
 

Kor
Member
 
Posts: 10
Joined: Fri Nov 30, 2018 08:53
In-game: Kor

Re: [mod] Islands - Experimental lua mapgen [islands]

by Kor » Wed Oct 02, 2019 21:06

Now all we need are ships, movable und buildable with blocks *.*

Arrr!!
 

Gundul
Member
 
Posts: 616
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [mod] Islands - Experimental lua mapgen [islands]

by Gundul » Thu Oct 03, 2019 07:34

Very beautiful islands with sometimes cliffs and even lagoons.
Suits very well to mobkit and sharks :)

For my taste maybe just a bit few vegetation all over. And snow below
cloud level does not really suit to tropical islands. Bare rock would look
better I guess :)

Reminds me sometimes at Koh Tao island, Thailand.
Now I need some holiday in RL :D
My servers: Jungle, Lilly in the valley, ZombieTest
 

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Islands - Experimental lua mapgen [islands]

by Termos » Fri Oct 04, 2019 11:57

Gundul wrote:Suits very well to mobkit and sharks

There's definitely some synergy between the two projects. Sometimes I just know what I to do next because that's the next logical step given what already is. This could turn into a game some day.
 

ShadMOrdre
Member
 
Posts: 545
Joined: Mon Dec 29, 2014 08:07
Location: USA
GitHub: ShadMOrdre
In-game: shadmordre

Re: [mod] Islands - Experimental lua mapgen [islands]

by ShadMOrdre » Fri Oct 04, 2019 18:43

Termos,

This looks very nice. I wish that Lua mapgens could use the registered biomes, ores, and decorations.

Perhaps someone, *cough *cough @duane * cough *cough, could take a crack at creating a singlenode mapgen that provides the mapgen objects, (biomes, ores, decos, humidity, temperature, and heightmap).

I would like to also point out, that using settings similar to this map_meta.txt file, one can achieve somewhat similar results. This is a mgv7 map_meta file, tweaked over the last couple of years, to create some natural looking terrain, minus cliffs. This also allows using the registered biomes, ores, decos.
+ Spoiler


Keep up the great work!!!

Shad
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.
 

User avatar
duane
Member
 
Posts: 1591
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

Re: [mod] Islands - Experimental lua mapgen [islands]

by duane » Sat Oct 05, 2019 01:04

ShadMOrdre wrote:Perhaps someone, *cough *cough @duane * cough *cough, could take a crack at creating a singlenode mapgen that provides the mapgen objects, (biomes, ores, decos, humidity, temperature, and heightmap).


Huh? They're already available to lua. If you want something that places them all, my experimental mapgen can do everything but the ores, but it's never going to be exactly the same. I'm not even sure how the game handles stacking biomes.

ShadMOrdre wrote:This is a mgv7 map_meta file, tweaked over the last couple of years, to create some natural looking terrain, minus cliffs.


The cliffs are the most ingenious part. Making inland cliffs is painful, since you can't determine whether they match the slope without bogging everything down. Islands avoids the issue and makes lovely cliffs where they should be -- it's a marvel of simplicity.
Believe in people and you don't need to believe anything else.
 

User avatar
runs
Member
 
Posts: 929
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [mod] Islands - Experimental lua mapgen [islands]

by runs » Sat Oct 05, 2019 12:12

I had an idea. A new tropical island biome! This included in default V7 mapgen!

Corals. And maybe some palm trees too.

;-)
 

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Islands - Experimental lua mapgen [islands]

by Termos » Sun Oct 06, 2019 09:09

ShadMOrdre wrote:I wish that Lua mapgens could use the registered biomes, ores, and decorations.

But they can, ores and decos are single function calls, biomes need more work probably.

ShadMOrdre wrote:I would like to also point out, that using settings similar to this map_meta.txt file, one can achieve somewhat similar results. This is a mgv7 map_meta file, tweaked over the last couple of years, to create some natural looking terrain, minus cliffs.

What you did to V7, and what I did to Carpathian is basically mutilate them into not doing what they're designed to do.

Generating terrain that looks nice watched from above with unlimited view range is relatively easy. The tricky part is to make it look good during normal gameplay at the ground level with limited view distance.
For example mountains look the best watched from the distance and if there's stuff between the beholder and the mountains (e.g. trees). So if we had a 100 node high mountain, and default view distance of 100, then by the time we get to see the mountain we're standing at it's base already.
 

User avatar
paramat
Developer
 
Posts: 3483
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [mod] Islands - Experimental lua mapgen [islands]

by paramat » Sun Oct 06, 2019 22:39

See these 2 functions https://github.com/minetest/minetest/blob/825579b43d6454cc33607ab8eff4e896b003b801/doc/lua_api.txt#L4404
Anything related to registered biomes does not function in singlenode mapgen, however, ores and decorations can be registered and placed, they just cannot be located by biome.
 

Termos
Member
 
Posts: 263
Joined: Sun Dec 16, 2018 12:50

Re: [mod] Islands - Experimental lua mapgen [islands]

by Termos » Sat Oct 19, 2019 15:05

Update 191019

changes:
    * enabled ore generation
    this also appears to have an unexpected beautifying effect on cliffs and hills.

    * added cotton bush decorations
    so building a boat like this becomes possible

    * solved the issue with overriding mapgen name
    paramat's example uses 'mgname' while the parameter is actually 'mg_name'.
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 3 guests