generate a "map of the map"

Post Reply
User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

generate a "map of the map"

by burli » Post

Is it possible to generate a map of a map? It need not be ingame. Just a script that generates an image of the map with the spawning point or free coordinate in the center and maybe 1000 or 2000 nodes in each direction, just enough to see where are oceans, forests, jungles, deserts and so on

User avatar
Krock
Developer
Posts: 4564
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: generate a "map of the map"

by Krock » Post

If the terrain already exists in the world's map database, you can use a mapping application:

MinetestMapperGui
Official Minetestmapper
Python & numpy mapper
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: generate a "map of the map"

by burli » Post

I choose the Python mapper. Works ok. But I guess only for sqlite3. And only for existing map data.

Is it possible that minetest generates a map without playing everything?

User avatar
paramat
Developer
Posts: 3691
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: generate a "map of the map"

by paramat » Post

You mean a world preview before generating terrain?
It's possible by reproducing core mapgen in a mod.

User avatar
twoelk
Member
Posts: 1391
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: generate a "map of the map"

by twoelk » Post

some sort of seed preview or tester might indeed be interesting as standalone program.

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: generate a "map of the map"

by stu » Post

twoelk wrote:some sort of seed preview or tester might indeed be interesting as standalone program.
Didn't someone already make something like this? Might have been Krock but I am not sure if he released it.

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

I have a simple mod that teleports the player around a rectangular spiral to force the mapgen to generate blocks.
This is a simple way initialize a world and then I use minetestmapper to generate a map.

This gives you a rough idea of the different biomes and interesting area locations.
If you want to try it: https://github.com/oleastre/os_explore

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: generate a "map of the map"

by burli » Post

Works nice, but it crashes after a while

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

Do you have some more info ?
Like the number of steps or spiral size you did ?
And where you playing in single player or in server mode with other people ?
And last but not least, can you monitor your memory usage while exploring ? Maybe it's too fast and your computer cannot keep up generating blocks and storing them (in that case, you can increase the "wait" parameter at the beginning of the file ).

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: generate a "map of the map"

by burli » Post

Set delay to 20. Until now everything is ok. But this method doesn't work if the player is underground because of some high mountains. In the lower left area is just rock. Try it again with a flying player

Image
Attachments
map.jpg
(556.54 KiB) Not downloaded yet

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

Yes of course, a flying player is quite mandatory and the exploration is done on the starting height of your player.
I could add an option to automate the exploration at different altitudes.
I generally start at an altitude around 60.
And I often get gray zones as mountains goes higher; but at least I have a first map to help me manually explore the world.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: generate a "map of the map"

by Don » Post

On minetestville (shut down now) We had a slippy map to show map on the website. You can do a lot with the map.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
Napiophelios
Member
Posts: 1019
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: generate a "map of the map"

by Napiophelios » Post

oleastre wrote:Yes of course, a flying player is quite mandatory and the exploration is done on the starting height of your player.
I could add an option to automate the exploration at different altitudes.
I generally start at an altitude around 60.
And I often get gray zones as mountains goes higher; but at least I have a first map to help me manually explore the world.
Oleastre you're mod is sounds very similar to Echo's explore map mod and I always thought thats what his mod was missing
a way to automate exploration of different altitudes and depths.
I am definitely going to try yours out to see how they compare.

User avatar
yyt16384
Member
Posts: 46
Joined: Mon Nov 03, 2014 12:16
GitHub: yyt16384
IRC: yyt16384
In-game: yyt16384
Location: China

Re: generate a "map of the map"

by yyt16384 » Post

You can use minetest.emerge_area to force generate a block.

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

@Napiophelios: yes it's similar but follows a square spiral instead of a round one; the height automation is not already done but is quite easy to add.

@yyt16384: I was not aware of that one, I think I will just add a command to use this in a quick way.

Stay tuned :)

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

I added a /mapgen chat command to my small mod that uses the emerge_area.
Just call /mapgen 1000 to generate a 2000x2000 map around your player position.

And if you use /mapgen 1000 100; it will do the same but for a 2000x2000 box from your player's altitude up to 100.

User avatar
yyt16384
Member
Posts: 46
Joined: Mon Nov 03, 2014 12:16
GitHub: yyt16384
IRC: yyt16384
In-game: yyt16384
Location: China

Re: generate a "map of the map"

by yyt16384 » Post

oleastre wrote: @yyt16384: I was not aware of that one, I think I will just add a command to use this in a quick way.
There is also /emergeblocks chat command.

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: generate a "map of the map"

by oleastre » Post

I think I will stop trying to re-implement existing stuff...
/emergeblocks is not documented in the minetest wiki and you could have tell everyone about that command in your first post.
But thanks anyway to make us aware of this.

Post Reply

Who is online

Users browsing this forum: TenPlus1 and 3 guests