Page 1 of 1

Volcano Map Generation

PostPosted: Fri Apr 26, 2013 13:55
by Jonathan
I personally would like to see volcanoes added to the map generation, which I think could be accomplished in the following way:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
# Map generation attributes.  Currently supported: volcanoes, trees, caves, flat, v6_biome_blend, v6_jungles, dungeons
mg_flags = trees, caves, v6_biome_blend, volcanoes


Also, it would be nice to have lava added at the bottom of the volcano in case I or someone else makes a "volcano eruption mod".

Edit:
If volcanoes are added, maybe add a special type of rock "Volcanic Rock" that can be found inside the volcano. Although, I can't think of a good use for it yet.

PostPosted: Fri Apr 26, 2013 13:58
by PilzAdam
Jonathan wrote:which I think could be accomplished in the following way:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
# Map generation attributes.  Currently supported: volcanoes, trees, caves, flat, v6_biome_blend, v6_jungles, dungeons
mg_flags = trees, caves, v6_biome_blend, volcanoes

So, you think adding it to the conf file is enough? :-p

PostPosted: Fri Apr 26, 2013 14:05
by Jonathan
PilzAdam wrote:
Jonathan wrote:which I think could be accomplished in the following way:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
# Map generation attributes.  Currently supported: volcanoes, trees, caves, flat, v6_biome_blend, v6_jungles, dungeons
mg_flags = trees, caves, v6_biome_blend, volcanoes

So, you think adding it to the conf file is enough? :-p


No, lol, what I meant was just showing how it would be nice to turn it on/off (so if a person did not want it they could turn it off). It sure would be nice if that is all we had to do :D

PostPosted: Fri Apr 26, 2013 15:23
by 12Me21
Volcanoes would be awesome, and to erupt them there could be an ABM that adds a lava source on top of all the lava inside the volcano and keeps doing it until the lava reaches a certain height above the volcano, and then the lava stops "rising". To make the lava go away after eruptions, it could turn into cooling lava which could be a falling node and then it would fall back into the volcano and turn into lava.

PostPosted: Fri Apr 26, 2013 15:48
by rubenwardy
I had this idea a while ago.

Along with earthquakes (smashes glass) and tidal waves (no idea how to do).

PostPosted: Fri Apr 26, 2013 15:57
by Jordach
Tidal waves would be this HUGE set of water sources that go away on their own.

Provided they flood the map first.

PostPosted: Fri Apr 26, 2013 19:20
by 12Me21
earthquakes happening over water could cause tidal waves

EDIT: and earthquakes could happen more right before volcanoes erupt

PostPosted: Mon Apr 29, 2013 16:35
by Jonathan
Hybrid Dog wrote:What do you think about this volcano?
http://forum.minetest.net/viewtopic.php?pid=83562#p83562


I was not able to get your lava cooling mod to work (which the map depends on) for me for some reason error below:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
12:20:36: ERROR[main]: ServerError: LuaError: error: ...bugfixes-win32\bin\..\mods\minetest\lavacooling\init.lua:82: bad argument #1 to 'ipairs' (table expected, got nil)


Used minetest 0.4.6 on Windows 7.

PostPosted: Mon Apr 29, 2013 18:48
by Jonathan
Hybrid Dog wrote:
Jonathan wrote:
Hybrid Dog wrote:What do you think about this volcano?
http://forum.minetest.net/viewtopic.php?pid=83562#p83562


I was not able to get your lava cooling mod to work (which the map depends on) for me for some reason error below:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
12:20:36: ERROR[main]: ServerError: LuaError: error: ...bugfixes-win32\bin\..\mods\minetest\lavacooling\init.lua:82: bad argument #1 to 'ipairs' (table expected, got nil)


Used minetest 0.4.6 on Windows 7.
Depends: default, xtrafcts
did you install xtrafcts?


No I didn't. That must be my issue.

Hybrid Dog wrote:I edited the lavacooling mod.
It adds basalt, sounds and an obsidianbrick.

Download: lavacooling
Github: https://github.com/HybridDog/lavacooling
Depends: default, xtrafcts


*facepalm* I should have read the depends lol.

Edit:
The map also seems to require this mod and others:
https://github.com/turbogus/steinheim/tree/master/steel

PostPosted: Mon Apr 29, 2013 21:07
by Jonathan
Hybrid Dog wrote:What do you think about this volcano?
http://forum.minetest.net/viewtopic.php?pid=83562#p83562


I would like to see the map generator create volcanoes that blend in more naturally with the terrain like:
http://www.destination360.com/central-america/costa-rica/arenal-volcano

Only instead it would be made with nodes of course.

PostPosted: Tue Apr 30, 2013 17:34
by Jonathan
All, here is my attempt to show how the volcano mod could work. (Note: This does not create volcanoes, it just deals with how to make the lava rise and fall.) Granted, this would probably need tweaked, or changed significantly, but at least it shows a way of doing it, and gives you something to look at.

Download: https://www.dropbox.com/s/68jppippaah8jt4/volcano.zip

First, place regular lava source nodes (Make sure not temporary lava source nodes) like so:
https://www.dropbox.com/s/4mi22z57uooxbvd/VolcanoStart.png

Then type in the command "/erupt". The volcano will start erupting :D (Might take a little while to get going. Also, I have an abm that has a small chance every hour to make lava erupt).
https://www.dropbox.com/s/ndgu07nu6c3w6qk/VolcanoErupt.png
https://www.dropbox.com/s/9nq3f1sdruww7bm/VolcanoErupt2.png

After a while the lava will eventually harden like so:
https://www.dropbox.com/s/ymn9gr6ps8rd9yk/VolcanoHarden.png

A little while after it hardens, the molten lava will disappear, and it will return to its original state. That way it can erupt at a later time again.

It might be possible to have it create stone, and not ever clog the volcano, but I am not sure how to ensure that a clean way. Also, would we want lava to have a chance of replacing stone, dirt or other materials ?

PostPosted: Tue Apr 30, 2013 17:35
by rubenwardy
Hmm nice.

PostPosted: Tue Apr 30, 2013 18:36
by Jonathan
Hybrid Dog wrote:for me it's too small


I agree, but that was just a volcano I manually created to test the mod. The mod causes the lava to rise and go back to its original state.

Edit: Does anyone think that is how the volcano mod should be done? Any suggestions or concerns?

PostPosted: Fri May 03, 2013 12:42
by paramat
I'm thinking it would be good to somehow have lava 'rising' (just adding a column of lava nodes up to the surface) from one of those underground lava resevoirs once you dig down far enough to generate one.
Perhaps i'll get some inspiration to work on this ...

PostPosted: Fri May 03, 2013 18:58
by Jonathan
paramat wrote:I'm thinking it would be good to somehow have lava 'rising' (just adding a column of lava nodes up to the surface) from one of those underground lava resevoirs once you dig down far enough to generate one.
Perhaps i'll get some inspiration to work on this ...


So once a lava pool was generated it would have a chance to replace all the squares above it, and reach the surface?

By the way did you get a chance to look at this mod:
http://forum.minetest.net/viewtopic.php?pid=87371#p87371

I made this mod (Although probably not coded the most efficient) to show how you could make a volcano erupt if it was generated in the map (Also, it would make lava pools have a chance to erupt while you are in a cave :D).

Also, I have seen some of your terrain generation mods, and I am impressed :).

PostPosted: Sat May 04, 2013 18:56
by paramat
Kinda yeah, an underground magma chamber would form a narrow 'conduit' above itself to the surface.
I think i know how to make a perlin generated mountain that slowly grows layer by layer after each eruption.
I saw your mod and thought it cool but haven't tried it out yet ... i'll have a look at your code, i guess your 'erupting lava' would sit at the top of this conduit and after each eruption an extra layer is added to the volcano.

PostPosted: Mon May 06, 2013 15:01
by Jonathan
paramat wrote:Kinda yeah, an underground magma chamber would form a narrow 'conduit' above itself to the surface:

Image

I think i know how to make a perlin generated mountain that slowly grows layer by layer after each eruption.
I saw your mod and thought it cool but haven't tried it out yet ... i'll have a look at your code, i guess your 'erupting lava' would sit at the top of this conduit and after each eruption an extra layer is added to the volcano.


Wow, neat idea! I think your idea is even better. Basically, after an eruption, mine resets back to the original state (unless something was burned).

PostPosted: Mon May 06, 2013 18:44
by prestidigitator
Here's another possibility for creating this: introduce magma, as opposed to lava. During an "eruption" (which could be determined based on a noise function that includes both space and time input coordinates) the magma bubbles up, eating away ANY kind of node above it and replacing it with more magma. The chance of replacing the node above can depend on the type of node above and on the built-up heat/pressure (metadata or param2), which increases when the magma doesn't rise and decreases for both the old and new nodes each time it does propagate (perhaps more so when it is propagating into air). When there isn't an "eruption" the magma can cool: to a minimum temperature/pressure value underground, to air if touching nothing but air and magma/lava, and to stone if touching air/magma/lava and any other node types.

But magma would only propagate straight up. To the sides it would create normal lava to replace air or water (or maybe anything that is buildable_to). That plus lava cooling in air should actually be enough to build your own volcano "naturally". The thing you'd have to watch out for is the volcano getting too high, so it might require a few little tweaks.

PostPosted: Mon May 06, 2013 19:16
by Jonathan
prestidigitator wrote:Here's another possibility for creating this: introduce magma, as opposed to lava. During an "eruption" (which could be determined based on a noise function that includes both space and time input coordinates) the magma bubbles up, eating away ANY kind of node above it and replacing it with more magma. The chance of replacing the node above can depend on the type of node above and on the built-up heat/pressure (metadata or param2), which increases when the magma doesn't rise and decreases for both the old and new nodes each time it does propagate (perhaps more so when it is propagating into air). When there isn't an "eruption" the magma can cool: to a minimum temperature/pressure value underground, to air if touching nothing but air and magma/lava, and to stone if touching air/magma/lava and any other node types.

But magma would only propagate straight up. To the sides it would create normal lava to replace air or water (or maybe anything that is buildable_to). That plus lava cooling in air should actually be enough to build your own volcano "naturally". The thing you'd have to watch out for is the volcano getting too high, so it might require a few little tweaks.


That seems like a neat idea as well. Imagine creating a house, and then one day a volcano erupts out of the living room (Talk about being shocked)! It still would be neat though to see volcanoes randomly generated on the map that could also erupt.

If included in the default minetest and/or survival game type, it probably would be good to not include it in the build game type so it does not destroy anything. At least not allow volcanoes to erupt in the build game type so they could still have map generated volcanoes, if desired.

PostPosted: Wed Jul 10, 2013 13:30
by paramat
Hybrid Dog wrote:I used the same way to make one.

That's a beautiful black volcano.

PostPosted: Thu Jul 11, 2013 15:07
by paramat
So yes this is a mod in development, it has an imaginative name too: 'volcano'. I will be making the volcano vent grow wider as it rises above sea level. Also a particle spawner on top. Any other good ideas?

PostPosted: Sat Jul 13, 2013 03:50
by Mossmanikin
Looks very nice with those particles.
I hope you can solve the problem with floating volcanoes.

PostPosted: Sat Jul 13, 2013 04:44
by Chinchow
paramat wrote:So yes this is a mod in development, it has an imaginative name too: 'volcano'. I will be making the volcano vent grow wider as it rises above sea level. Also a particle spawner on top. Any other good ideas?
You could have volcanic dust\ash form on the area around the volcano. This ash could be used as a sort of fertilizer for farms.

You could also have pumice or other igneous rocks form around the volcano as nice decorative blocks

PostPosted: Sat Jul 13, 2013 07:33
by webdesigner97
paramat wrote:Yes as you can see i have a problem with floating volcanos:


(...)

^ 2 particlespawners: lavabombs, rising ash cloud.


The first one looks aweseome! It's great!

PostPosted: Sat Jul 13, 2013 14:23
by paramat
Thanks for comments :)
Okay will release this soon, when lava cools on top of water a column of obsidian or stone is dropped to the ocean floor, this creates a dense forest of underwater pillars supporting the volcano. The pillars are obsidian or stone depending on whether the top node is obsidian or ash, this is to continue the ash pattern underwater.

PostPosted: Mon Jul 15, 2013 19:19
by Jonathan
Nice volcano though! :)
paramat wrote:Yes as you can see i have a problem with floating volcanos:


Image

PostPosted: Mon Jul 15, 2013 19:34
by Jordach
Jonathan wrote:Nice volcano though! :)
paramat wrote:Yes as you can see i have a problem with floating volcanos:


Image
Looks good; but the floating problem really needs to be addressed soon.

PostPosted: Mon Jul 15, 2013 20:08
by paramat
Floating problem was fixed in post 29 ;)