Page 1 of 1

[mod] Underworlds [underworlds]

PostPosted: Sun Jan 29, 2017 11:02
by duane
This mod adds large underworlds to Minetest. Each is an open horizontal plane with different characteristics. The underzones table in init.lua contains all the data on each plane, including how far underground to generate it.

There are five default underworlds: Caina (ice realm), Phlegethos (fire and lava), Dis (city of hot iron and brass), Minauros (decay and pollution), and Styx (vast ocean).

Screenshots
+ Spoiler



The source is available on github.

Code: LGPL2

Mod dependencies: default

Download: https://github.com/duane-r/underworlds/ ... master.zip

Re: [mod] Underworlds [underworlds]

PostPosted: Sun Jan 29, 2017 11:03
by duane
Problems:
- document the underzones table

Re: [mod] Underworlds [underworlds]

PostPosted: Sun Jan 29, 2017 15:21
by azekill_DIABLO
duane stop doing such great mods, you kill the creativity of other poeple. how could they do better?!

+1

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 08, 2017 09:30
by texmex
Mod author is obviously on a creativity streak, great stuff duane! Will try it out, possibly on a server.
I wonder how those air particles are made? Where in the code is it built?

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 08, 2017 13:19
by azekill_DIABLO
mod is been added to voxellar 1.7!

Re: [mod] Underworlds [underworlds]

PostPosted: Thu Mar 09, 2017 00:53
by duane
texmex wrote:Mod author is obviously on a creativity streak, great stuff duane! Will try it out, possibly on a server.
I wonder how those air particles are made? Where in the code is it built?


Thanks. Those lights come from the flare gun in fun_tools. I use it a lot while exploring.

Re: [mod] Underworlds [underworlds]

PostPosted: Sat Mar 11, 2017 18:15
by Neuromancer
This mod absolutely needs to be added to Minetest Game!

Re: [mod] Underworlds [underworlds]

PostPosted: Sat Mar 11, 2017 22:50
by Diamond knight
I cant find the depth levels in the init.lua

Re: [mod] Underworlds [underworlds]

PostPosted: Sat Mar 11, 2017 23:23
by TheReaperKing
Some of my students were actually creating Olympus. This is soooo perfect for that theme, thanks for always making such cool stuff!

Re: [mod] Underworlds [underworlds]

PostPosted: Sun Mar 12, 2017 00:27
by duane
Diamond knight wrote:I cant find the depth levels in the init.lua


The high_chunk and low_chunk parameters set the top and bottom of the spaces.

Re: [mod] Underworlds [underworlds]

PostPosted: Mon Mar 13, 2017 11:05
by Milan*
I have the following problem:

I wanna create a world with geomoria, fun_caves, underworlds and caverealms.
To balance it, it should be parted into max height _and_ max depth.
Didn't see a "simple" option to alter the code of {geomoria, fun_caves, underworlds}.
Can u please help me with that / implement the max-height feature? :)

Re: [mod] Underworlds [underworlds]

PostPosted: Mon Mar 13, 2017 23:12
by duane
Milan* wrote:I have the following problem:

I wanna create a world with geomoria, fun_caves, underworlds and caverealms.
To balance it, it should be parted into max height _and_ max depth.
Didn't see a "simple" option to alter the code of {geomoria, fun_caves, underworlds}.
Can u please help me with that / implement the max-height feature? :)


I don't understand what you're asking. Geomoria and underworlds both have height settings. Are you trying to limit fun_caves to a certain range?

Re: [mod] Underworlds [underworlds]

PostPosted: Mon Mar 13, 2017 23:55
by Milan*
They have?
I only have seen a max depth setting of -31000 but i want to alter the max height setting as well.
I mean the whole thing, where to start and stop generating... .

Re: [mod] Underworlds [underworlds]

PostPosted: Tue Mar 14, 2017 04:51
by duane
Milan* wrote:They have?
I only have seen a max depth setting of -31000 but i want to alter the max height setting as well.
I mean the whole thing, where to start and stop generating... .


The underworld parameters are all in a table in "underworlds/init.lua". "high_chunk" and "low_chunk" define how deep each starts and ends. There are too many parameters to define in settings.

In geomoria, the variable is "geomoria_mod.geomoria_depth = -1", also in the init.lua. That could be a setting, but I suspect it would cause problems if anyone changed it after a world was created.

Depths are measured in map chunks, since there's no practical way to generate terrain in fractions of a map chunk. (I did it in squaresville, but it's very slow.)

Re: [mod] Underworlds [underworlds]

PostPosted: Tue Mar 14, 2017 09:57
by Milan*
Depths are measured in map chunks


So high_chunk = -12 would be -192 nodes, right?
Because i flied around there alot but didn't find anything with just underworlds activated.
Did i made miscalculations or are they just so rare?

In geomoria, the variable is "geomoria_mod.geomoria_depth = -1"

Oh i think geomoria itself is just fine also it will be a fresh world when everything is set up so no worries. :)

Just in case and to avoid misunderstandings due my language borders, the following picture shows what i am planning to do so far:

Image

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 15, 2017 12:38
by azekill_DIABLO
interesting!

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 15, 2017 13:09
by TheReaperKing
? could be the earths core

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 15, 2017 13:47
by azekill_DIABLO
underworlds can imitate the core IMHO. for me it would mostly be a dark place like the heart of shadwos

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 15, 2017 14:32
by TheReaperKing
That hell mod by d00med might be neat for the ? area too.

Re: [mod] Underworlds [underworlds]

PostPosted: Wed Mar 15, 2017 22:13
by Milan*
Got help from agaran, can continue with my plans, jey!

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 17, 2017 01:17
by duane
Milan* wrote:
Depths are measured in map chunks


So high_chunk = -12 would be -192 nodes, right?
Because i flied around there alot but didn't find anything with just underworlds activated.
Did i made miscalculations or are they just so rare?


-12 would be 48 + (80 * -12) = -912 on most maps (though chunk size can be changed). If I get some free time, I'll put altitude limits on fun_caves, but it's not as simple as just cutting them off at some point unless you want the caves to look obviously sliced away. Unfortunately, that will leave no caves in the rest of the world or grossly mismatched caves, since fun_caves isn't compatible with other caves.

Getting caverealms to fit in sounds very difficult. I can separate the cave generation from the decoration in fun_caves, so that they'll (theoretically) use any cave system. That should be as easy as commenting out the cave generator. There would still have to be some way to give caverealms priority in its volume, which could be a headache. Maybe just inserting fun_caves in the depends.txt for caverealms would be all it takes.

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 17, 2017 17:03
by Milan*
Thanks for the calculation formula, duane, i think it will help me alot as i though it is just the *16 thing.

The caverealms are not a huge deal - i configured them to don't crash inside the funcaves slice - a mixture is not wanted but yea - somehow one actually did crash inside them - adding the depends entry made it looking a bit better i guess - not 100% sure but i think the effect is different and better.

I am currently wondering why funcaves deco is near the top of the world, stops and went back deep below the world where the funcaves are supposed to spawn. But this is kinda out of topic here, i am sure i will figure this out - if not, i may write u a pm. :)

Thanks again for your work and help!

Re: [mod] Underworlds [underworlds]

PostPosted: Thu Mar 30, 2017 17:41
by texmex
I've investigated the mod a bit in order to see if it could work on my server. It is quite impressive! I was wondering if there's a way to not cut off the caves and veins from the regular mapgen, but have them more integrated into each other?
+ Spoiler

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 31, 2017 00:30
by duane
texmex wrote:I've investigated the mod a bit in order to see if it could work on my server. It is quite impressive! I was wondering if there's a way to not cut off the caves and veins from the regular mapgen, but have them more integrated into each other?
+ Spoiler


It's not only possible, it's easy... as long as you don't generate water or lava in your stock mapgen caves. The way the mapgen creates them leaves big balls of water/lava floating in the air in any space a lua mapgen creates afterward. I've never been able to come up with an adequate solution to this in either a mod or a change to the C code or any combination of them. That's why I don't use the stock mapgen caves.

I took this screenshot immediately upon entering Caina, so it happens a lot. In case this doesn't bother you, I added a switch to enable integration. This will work with lua caves of course, as long as you put the cave mod's name in the depends.txt for underworlds. Fun caves doesn't work that way at the moment, because I haven't figured out where the cave decorations should end.

Image

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 31, 2017 04:43
by TumeniNodes
gratuitous Nyan_Cat noted sir...
Are you part of the rebellion? :P

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 31, 2017 07:23
by texmex
Thank you, I'll try it out. But am I understanding this correctly then:
as long as you don't generate water or lava in your stock mapgen caves

Meaning, all lava and water from, say, mgv7 needs to go?

Re: [mod] Underworlds [underworlds]

PostPosted: Fri Mar 31, 2017 22:05
by Diamond knight
TumeniNodes wrote:gratuitous Nyan_Cat noted sir...
Are you part of the rebellion? :P


SO THAT WAS YOU ON SKYWARS!!


lol

Re: [mod] Underworlds [underworlds]

PostPosted: Sat Apr 01, 2017 12:36
by texmex
texmex wrote:Meaning, all lava and water from, say, mgv7 needs to go?

I guess that's not what you meant, because here's a regular mgv7 lava cave at ≈-900, which makes me happy.
+ Spoiler


If I want to disable certain cave layers, how should I do it? Simply erase it's definition in underworlds_mod.underzones?