generate a "map of the map"

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

generate a "map of the map"

by burli » Sat Apr 09, 2016 09:58

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
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: generate a "map of the map"

by Krock » Sat Apr 09, 2016 12:54

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

MinetestMapperGui
Official Minetestmapper
Python & numpy mapper
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

Re: generate a "map of the map"

by burli » Sat Apr 09, 2016 18:02

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?
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: generate a "map of the map"

by paramat » Sat Apr 09, 2016 22:40

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

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: generate a "map of the map"

by twoelk » Sun Apr 10, 2016 14:45

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

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: generate a "map of the map"

by stu » Sun Apr 10, 2016 14:51

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 » Sun Apr 10, 2016 19:37

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: 1313
Joined: Fri Apr 10, 2015 13:18

Re: generate a "map of the map"

by burli » Sun Apr 10, 2016 20:31

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 » Sun Apr 10, 2016 23:33

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: 1313
Joined: Fri Apr 10, 2015 13:18

Re: generate a "map of the map"

by burli » Mon Apr 11, 2016 11:16

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
map.jpg (556.54 KiB) Viewed 2267 times
 

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 » Mon Apr 11, 2016 11:28

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: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: generate a "map of the map"

by Don » Tue Apr 12, 2016 02:34

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: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: generate a "map of the map"

by Napiophelios » Tue Apr 12, 2016 05:51

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

Re: generate a "map of the map"

by yyt16384 » Tue Apr 12, 2016 06:09

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 » Tue Apr 12, 2016 08:18

@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 » Tue Apr 12, 2016 20:34

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

Re: generate a "map of the map"

by yyt16384 » Wed Apr 13, 2016 03:23

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 » Wed Apr 13, 2016 06:37

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.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 19 guests

cron