Page 26 of 27

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sat Oct 12, 2019 22:52
by paramat
I agree, i am not suggesting the method i described is a practical solution.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Oct 29, 2019 22:09
by Extex
How would I make a mod that places a duplicate of the terrain really high up.
Except replacing certain nodes with replacement nodes

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Oct 30, 2019 01:40
by duane
Extex wrote:How would I make a mod that places a duplicate of the terrain really high up.
Except replacing certain nodes with replacement nodes


You can either get into the C code of the game and make it duplicate terrain, or you can recreate the base mapgen in lua. Needless to say, this is easier if you just start with a lua mapgen. If you use realms, duplicating is as easy as adding a line to your realms.conf file.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Oct 30, 2019 22:30
by Extex
I don't really want to rely on any mods.
I want it to also duplicate buildings and trees placed on generation.
Is there some way I can use on_generated to place a duplicate with an offseted y pos?

Re: Post your mapgen questions here (modding or engine)

PostPosted: Thu Oct 31, 2019 23:55
by ShadMOrdre
Extex,

Instead of depending on the realms mod, why not simply take the relevant code sections from realms, (the API), and embed that code into your own project? I get not wanting to duplicate code; but there are, more than likely, huge parts of the realms mod that you do not want.

I've made the same mistake with lib_mat / lib_eco. A developing API, that is then buried in a larger project, and thus either not used, or heavily modified. ;p. I'd probably recommend separating the realms mod into a standalone API with the various mapgen "layers" offered as standalone mods, like Sokomines' mg_villages. If kilarin hasn't already done the separation, he might still be willing to consider it. Especially if others are adopting the API to create further functionality, as this duplicate layer idea suggests.

duane should have also suggested his own mapgen mod, although it probably does not contain the functionality that you requested. Still, I'd peek at the code if I were you. :)

Shad

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Nov 03, 2019 16:22
by Red_King_Cyclops
Is it possible for there to be flat biomes in a non-flat world (e.g. a salt flat biome)?

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Nov 03, 2019 16:54
by duane
Red_King_Cyclops wrote:Is it possible for there to be flat biomes in a non-flat world (e.g. a salt flat biome)?


Biomes don't affect the shape of the terrain -- they just control decorations and soil types.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Nov 03, 2019 20:21
by Red_King_Cyclops
duane wrote:
Red_King_Cyclops wrote:Is it possible for there to be flat biomes in a non-flat world (e.g. a salt flat biome)?


Biomes don't affect the shape of the terrain -- they just control decorations and soil types.

That makes sense. In that case, does that mean that underground biomes can change the stone node without altering cave generation?

Edit: I just realized that the caves will be the same if the stone node is ground content.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Nov 06, 2019 21:54
by paramat
> does that mean that underground biomes can change the stone node without altering cave generation?

Yes, and they do in MTGame in 2 of the desert biomes.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Dec 01, 2019 23:51
by ShadMOrdre
How would I appropriately use the heat, humidity, and the respective blend noises to have the blended heat/humidity map that the built in mapgens have?

Currently, I have a lua mapgen that uses a rough approximation of heat / humidity points to determine which biome to use, but the blending is far from perfect.

I've found that while the heightmap, biomemap, heatmap, and humiditymap mapgen objects are NOT available in singlenode, I can still use the "get_biome_data" function to get the biome data. This function, however, adds a WHOPPING 30 secs to each on_gen call. As such, I instead chose to use a simple if/then statement to determine the correct heat / humidity points to choose the biome. While I get the correct biome, I don't get the blended biomes that I would prefer.

If this can be solved, I'll gladly share the code that could be used by others to use any of the registered biomes on all singlenode lua mapgens. My own lib_mat / lib_eco mods do not add any significant overhead to lua mapgens, beyond the above test for heat / humidity points, which in itself is rather speedy.

Any help on deriving blended heat / humidty noises from the already included heat / humidity and their respective blend noises would be greatly appreciated.

Shad

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Dec 03, 2019 23:55
by paramat
I feel i might have misunderstood, but ...
See https://github.com/minetest/minetest/blob/ef8bf3cf3567b15feae4fd3ca1e2ea33bbd6600b/src/mapgen/mg_biome.cpp#L215
... for how heat and humidity for a point is calculated.

Heat is simply the value of the heat noise plus the value of the heat blend noise.
Likewise for humidity.
The 'blend' noises are small-valued and small-scaled variations added to the heat and humidity noises.
The default noise parameters are here https://github.com/minetest/minetest/blob/ef8bf3cf3567b15feae4fd3ca1e2ea33bbd6600b/src/mapgen/mg_biome.h#L139

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Dec 08, 2019 05:42
by Army_bloodcore
Hello everyone!
What I must do to make the world that consist from ONLY jungle hills biome????????

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Dec 08, 2019 23:30
by paramat
Hi, please describe in detail the terrain you want, then i might be able to suggest a suitable core mapgen and some custom noise parameters.
'Jungle' in MTGame is a biome (but it is more correctly called 'rainforest'), but hills are not related to biomes, so MTGame does not have a 'jungle hills' biome.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Mon Dec 09, 2019 18:04
by Army_bloodcore
paramat wrote:Hi, please describe in detail the terrain you want, then i might be able to suggest a suitable core mapgen and some custom noise parameters.
'Jungle' in MTGame is a biome (but it is more correctly called 'rainforest'), but hills are not related to biomes, so MTGame does not have a 'jungle hills' biome.

Hello!
Here is the concepts of the pictures that I requested:
Image
Image
Image
Image
Image
Image
Image
Image

Also, I has wrote one wonderful offline guide for minetest. I think, it will be good to learn minetest without any wiki (unlike minecraft), just downloaded this guide and have fun with all features that you can find. What about include this file in original repository, to help the other players to learn about game?
You should think about the times and cases that internet sites might be turned off, and if it will be happen, all the knowledges about craft recipes may be lost without offline guide. Plz, include this guide to the game files.
viewtopic.php?f=9&t=23472

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Dec 10, 2019 22:07
by paramat
Thanks. Hopefully in a few days i will post some parameters for you to use to customise mapgen V7.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Dec 11, 2019 13:34
by Army_bloodcore
What about include minetest offline guide in game files? I think, it is important question!

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Dec 11, 2019 18:33
by paramat
Offtopic for this thread.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Dec 17, 2019 21:31
by paramat
Army_bloodcore, sorry for the delay, will now work on that.
Please do not PM me without good reason, thanks, i will always see any posts in this thread.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Dec 17, 2019 22:01
by paramat
Army_bloodcore,
Add these lines to your minetest.conf file and start a new mgv7 world, using MTGame of course:

Code: Select all
mgv7_spflags = nomountains,ridges,nofloatlands,caverns
mg_biome_np_heat = {
    offset      = 100,
    scale       = 0,
    spread      = (1000, 1000, 1000),
    seed        = 5349,
    octaves     = 3,
    persistence = 0.5,
    lacunarity  = 2.0,
    flags       = eased
}
mg_biome_np_humidity = {
    offset      = 100,
    scale       = 0,
    spread      = (1000, 1000, 1000),
    seed        = 842,
    octaves     = 3,
    persistence = 0.5,
    lacunarity  = 2.0,
    flags       = eased
}
mgv7_np_terrain_base = {
    offset      = 1,
    scale       = 64,
    spread      = (600, 600, 600),
    seed        = 82341,
    octaves     = 5,
    persistence = 0.6,
    lacunarity  = 2.0,
    flags       = eased
}
mgv7_np_terrain_alt = {
    offset      = -16,
    scale       = 8,
    spread      = (600, 600, 600),
    seed        = 5934,
    octaves     = 5,
    persistence = 0.6,
    lacunarity  = 2.0,
    flags       = eased
}
mgv7_np_height_select = {
    offset      = 8,
    scale       = 0,
    spread      = (500, 500, 500),
    seed        = 4213,
    octaves     = 6,
    persistence = 0.7,
    lacunarity  = 2.0,
    flags       = eased
}

Seabed varies between y = -32 and y = 0.
Jungle hill islands cover half of the world area and have a (rare) maximum height of y = 129.
Rivers, no mountains.

If you need anything adjusting let me know, i can suggest alternative vlaues.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Dec 18, 2019 03:44
by Army_bloodcore
Thanks a lot!
I now feeling like a monkey, like a Mowglee or Tarzan, the hero of the Jungles.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sat Dec 21, 2019 23:45
by paramat
Army_bloodcore, i ask again, please do not PM me without good reason, you just did it again. Any mapgen questions you have (which was the content your last PM) should be asked here.
Also, asking publicly means more people can help, and everyone sees the useful information.
Private Messages are for messages that must be private for some good reason, or to chat privately to someone you know well.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Sun Dec 22, 2019 08:53
by Army_bloodcore
Hello again!
This works good and I have a beautiful worlds.
In the jungle no grass and no flowers. It would be desired from one my project, jungle city. How can I solve this problem with created world with 3 new homes?
I need just flowers.
Also, beaches now has a too low level (2 blocks deeper than water level), I think, this might be also improved.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Wed Dec 25, 2019 06:03
by Army_bloodcore
Update: I accidentally griefed my world and I am ready to create another world with mixed configuration of biomes - jungle/plains/forest, because flowers are growing only on the plains biome.
Update: 50% ocean, 25~40% jungles, 10~25% plains.

Re: Post your mapgen questions here (modding or engine)

PostPosted: Tue Dec 31, 2019 20:47
by paramat
You can have grass and flowers in jungles, and jungle beaches, if you want. Clear the registered biomes and decorations (in a mod that depends on 'default' and 'flowers' mods), and reregister them with the desired changes (grass as top node, flowers in jungle biomes, altered y-limits for jungle and jungle ocean biomes, removal of jungle swamp biome).

Re: Post your mapgen questions here (modding or engine)

PostPosted: Thu Jan 02, 2020 14:08
by Army_bloodcore
paramat wrote:You can have grass and flowers in jungles, and jungle beaches, if you want. Clear the registered biomes and decorations (in a mod that depends on 'default' and 'flowers' mods), and reregister them with the desired changes (grass as top node, flowers in jungle biomes, altered y-limits for jungle and jungle ocean biomes, removal of jungle swamp biome).

Okay, but for first, I need to get some balanced code. Jungle you're done, so, can you add little% grass to the jungle?Right now, I decided to start another new world, and I need to change some parameters with biome humidity or warmth. And, I playing minetest at the work, not home, I can do this only after holidays, which will be end 09.01.2020.