Page 1 of 3

[Mod] Mount Meru, 2 km tower/mountain [0.3.1] [meru]

PostPosted: Mon Mar 18, 2013 23:59
by paramat
Image


Download https://github.com/paramat/meru/archive/master.zip rename mod folder to 'meru'
On github https://github.com/paramat/meru

meru 0.3.1 by paramat
For Minetest 0.4.12 and later
Depends default
License WTFPL

Meru mod is a vertical 1 dimensional realm, 1D referring to large scale structure, and can act as a vertical connector between horizontal realms, such as the ground and the floatlands.
A single spike shaped mountain is created in newly generated chunks, at a random location within a chosen area; by default this area is +/-1024 for use in a new world, to add a mountain to an existing world you need to edit these area parameters to a completely ungenerated part of your world.
For testing this mod or for cheating edit parameter COORD = true, the co-ordinates of the mountain will be printed to terminal while within the generation area.
The mountain is a hollow cone made of stone and desert stone, with a smooth transition across biome boundaries. By default the height is 2km. There are a few cave entrances on the surface, these 'fissure system' caves expand under the surface helping the creation of a path upwards. If the mountain generates over water you can use the central conical void to jump down the last few hundred metres.
There are many parameters for fine tuning the structure, some parameters change smoothly with height or distance from the center. Reducing noise to zero at the center creates a perfect spike as a summit. Constant noise throughout often creates floating islands at the summit. Choosing zero noise throughout creates a smooth geometric conical shape. There is a parameter CONVEX to control whether the basic conical structure bulges outwards or is pinched inwards in the middle.


Image

PostPosted: Tue Mar 19, 2013 00:33
by Traxie21
+infinity^2


ZOMG
PLEASE.

Sheet. Now I have to clean the drool off my kindle.

PostPosted: Tue Mar 19, 2013 03:09
by Menche
Awesome! Found a patch of jungle on the side of one:
Image

PostPosted: Tue Mar 19, 2013 03:18
by jojoa1997
Does it affect lag a lot?

PostPosted: Tue Mar 19, 2013 03:27
by Menche
jojoa1997 wrote:Does it affect lag a lot?

Yes. The blocks that contain the mountain take a long time to generate.

PostPosted: Sat Apr 13, 2013 07:01
by Mihobre
SO COOL but im not downloading

PostPosted: Sun Apr 14, 2013 21:10
by J-Block
This. Is. Amazing.

The mountain is amazingly high, and it was really fun creating a hiking trail to the very top. I also like the idea of the mountain being hollow.

PostPosted: Mon Apr 15, 2013 14:45
by jolo10
how do I get the lag from my minetest?

PostPosted: Tue Apr 16, 2013 23:24
by paramat
Install all my mods then you'll get the lag big time ;)

PostPosted: Wed Apr 17, 2013 06:33
by Zeg9
I don't understand why all your mods are so laggy... Is it the perlin noise that takes time, or env:add_node ?

PostPosted: Wed Apr 17, 2013 23:28
by paramat
It's because my mods generate huge structures and LUA is slow, lag is unavoidable, ... I need a faster computer.

PostPosted: Fri Apr 19, 2013 03:41
by khonkhortisan
Shouldn't you have a link to the original flolands mod?

PostPosted: Sat Apr 20, 2013 07:26
by paramat
Good idea, done.

PostPosted: Sat Apr 20, 2013 09:35
by Zeg9
Just tried this. It seems to be not that laggy with luaJIT.

PostPosted: Sat Apr 20, 2013 15:20
by BrandonReese
I just installed this last night and scaled the mountain. I concur it wasn't too laggy with luaJIT.

PostPosted: Thu May 23, 2013 03:05
by GJH105775
paramat wrote:It's because my mods generate huge structures and LUA is slow, lag is unavoidable, ... I need a faster computer.


Lua is one of the fastes Launguages.

PostPosted: Thu May 23, 2013 05:11
by Linxx
it looks like an island from SAO i'm so excited about it o.o

PostPosted: Thu May 23, 2013 14:50
by ch98
maybe make placement random and create ones with lava in hollow core.

PostPosted: Fri May 31, 2013 01:26
by paramat
I've been playing with this, hoping to make the spawn random.
I found a way to control the noisyness of the structure, to enable smoother tower like shapes. The cave system will be the new fissure system which provide occasional paths upwards. This mod needed much attention i will release a new version soon.

PostPosted: Fri May 31, 2013 02:23
by Inocudom
I like the fissure system, so your next release will be an interesting one.

PostPosted: Fri May 31, 2013 05:09
by paramat
So here is my current problem, how to generate one tower at a random location (within x z +-1000). A solution i saw in the 'modding questions' thread will not work because a meru tower occupies hundreds of chunks and may take more than one session to generate.

So i thought of deriving a co-ordinate from the world seed, but that seed seems to be not easily or quickly accessible from within a LUA mod.

Any better ideas? I need one random x z co-ordinate per world for the tower that can be quickly checked against the current chunk by an on-generated function.

PostPosted: Fri May 31, 2013 13:32
by Jordach
You could use your perlin maps for three random places on the map.

PostPosted: Fri May 31, 2013 14:02
by Nore
Did you try using

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
local pr = PseudoRandom(seed)
local x = pr.next(-1000,1000)
local z = pr.next(-1000,1000)
?

PostPosted: Fri May 31, 2013 20:25
by paramat
Thanks for the suggestions, with kaeza's help i am now able to load the worldseed from map_meta.txt and will try using that to define a co-ordinate.

PostPosted: Fri May 31, 2013 22:43
by paramat
Thanks Jordach ... just realised it can be done with perlin noise :)

EDIT
It works.

PostPosted: Wed Jun 19, 2013 07:17
by paramat
Version 0.2.0. First post rewritten.
Wider, unlimited height, fissure cave systems, random spawn within a chosen area, parameters vary with height and distance from centre.

PostPosted: Sat Jun 29, 2013 16:38
by paramat
Version 0.2.0 now pushed to Github (at last), link in first post.

PostPosted: Sat Jun 29, 2013 22:24
by Johnyknowhow
I cant find the mountain!

PostPosted: Sun Jun 30, 2013 11:56
by prof-turbo
Johnyknowhow wrote:I cant find the mountain!

Same for me... Do we have to generate it or to find it?

PostPosted: Sun Jun 30, 2013 15:56
by LionsDen
I had to find it. I used the mapping program http://forum.minetest.net/viewtopic.php?id=2896 to map my world and found it and ran to it. Turned out it was out of my sight because of the low sight values.