Pre-generating part of a map
Pre-generating part of a map
hi
how can i pre-generate part of a map (say rect 4096x4096 with zero in the center or some radius over the center)
without boring flying over the whole part manually?
especially if has used heavy mods for biomes, this ability is very needed.
how can i pre-generate part of a map (say rect 4096x4096 with zero in the center or some radius over the center)
without boring flying over the whole part manually?
especially if has used heavy mods for biomes, this ability is very needed.
Re: Pre-generating part of a map
create a mod with this line:
adjust the y values to suit your purpose
Code: Select all
minetest.emerge_area ({x=2048,y=0,z=2048},{x=-2048,y=128,z=-2048})
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: Pre-generating part of a map
Or use the chat command " /emergeblocks (-2048, 0, -2048) (2048, 128, 2048) ". Beware, this might take a while, so I recommend generating smaller map parts first to check whether it works as desired.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 1482
- Joined: Fri Apr 19, 2013 16:19
- GitHub: twoelk
- IRC: twoelk
- In-game: twoelk
- Location: northern Germany
Re: Pre-generating part of a map
not sure if they still work but there are mods that let a bot fly around in a defined pattern such as:
explore_map by echo and
os_explore by oleastre
also you might get hold of the code that powered the luigi-bots and derivats somewhere but beware that might be dangerous terrain out there and you might get banned on sight - so please don't use such devices on other people servers.
explore_map by echo and
os_explore by oleastre
also you might get hold of the code that powered the luigi-bots and derivats somewhere but beware that might be dangerous terrain out there and you might get banned on sight - so please don't use such devices on other people servers.
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Pre-generating part of a map
Those mods probably shouldn't be used - they're inefficient. They were written before emergearea was added
Re: Pre-generating part of a map
its awesome!
both solutions is what i need
its a great command, even with realtime statistics of generating process
and
is nice for automatisation, but what happens may be seen only over cpu loading and change size of map.sqlite file
this issue was a big pain in the ass :)
thanks a lot guys!
both solutions is what i need
Code: Select all
/emergeblocks (-512,0,-512) (512,64,512)
and
Code: Select all
minetest.register_chatcommand("gen1", {
params = "",
description = "",
func = function()
minetest.emerge_area ({x=512,y=0,z=512},{x=-512,y=64,z=-512})
end,
})
this issue was a big pain in the ass :)
thanks a lot guys!
- DrFrankenstone
- Member
- Posts: 231
- Joined: Tue May 24, 2016 05:36
- GitHub: treer
- Location: Australia
- Contact:
Re: Pre-generating part of a map
hmmm, in a fresh v7 map I could emergeblocks for 5km in each direction at floatlands altitude, then create a Carpathian game and replace its sqlite map file with the one containing floatlands -> a Carpathian land with floatlands!
-
- Member
- Posts: 12
- Joined: Fri Jan 12, 2018 03:39
Re: Pre-generating part of a map
When I use this command and specify a non-trivial area I get assertion failures and crashes. For instance, when I ran this:
minetest quit shortly after with this message:
If I shrink the z difference down to 300 it works.
Code: Select all
/emergeblocks (-2048, 0, -1500) (2048, 128, -1000)
Code: Select all
minetest: /build/minetest-oSA5qg/minetest-0.4.17.1/src/emerge.cpp:391: bool EmergeManager::popBlockEmergeData(v3s16, BlockEmergeData*): Assertion `count_peer != 0' failed.
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: Pre-generating part of a map
Have you reported it in https://github.com/minetest/minetest ?michael314 wrote:When I use this command and specify a non-trivial area I get assertion failures and crashes. For instance, when I ran this:
minetest quit shortly after with this message:Code: Select all
/emergeblocks (-2048, 0, -1500) (2048, 128, -1000)
If I shrink the z difference down to 300 it works.Code: Select all
minetest: /build/minetest-oSA5qg/minetest-0.4.17.1/src/emerge.cpp:391: bool EmergeManager::popBlockEmergeData(v3s16, BlockEmergeData*): Assertion `count_peer != 0' failed.
Who is online
Users browsing this forum: No registered users and 10 guests