Difference between revisions of "Minetestmapper"

From Minetest Wiki
Jump to navigation Jump to search
(Created page with "The '''Minetestmapper''' creates 2D maps of your world, where one node equals one pixel. === Usage === This describes the usage of the C++ minetestmapper. The usage of minete...")
 
(added links, reformatting)
Line 1: Line 1:
The '''Minetestmapper''' creates 2D maps of your world, where one node equals one pixel.
+
The '''Minetestmapper''' creates 2D maps of your [[world]], where one [[Nodes|node]] corresponds one pixel.
  
 
=== Usage ===
 
=== Usage ===
 
This describes the usage of the C++ minetestmapper. The usage of minetestmapper.py is similar.
 
This describes the usage of the C++ minetestmapper. The usage of minetestmapper.py is similar.
  
Make sure there is a colours.txt in the same folder as the mapper. You might want to download VanessaE's more complete [http://digitalaudioconcepts.com/vanessa/hobbies/minetest/colors.txt colours.txt]
+
Make sure there is a colours.txt in the same folder as the mapper. You might want to download VanessaE’s more complete [http://digitalaudioconcepts.com/vanessa/hobbies/minetest/colors.txt colours.txt]
  
  
Line 16: Line 16:
  
  
The geometry option allows you to define an area to map. Use it between ./minetestmapper and the input -i.
+
The geometry option allows you to define an area to map. Use it between ./minetestmapper” and the input -i”.
 
  --geometry -10000:-10000+20000+20000
 
  --geometry -10000:-10000+20000+20000
Result: A 20.2mb file covering a 20,000 x 20,000 area staring in the lower left corner at -10,000x, -10,000y
+
Result: A 20.2 MiB file covering a 20,000 × 20,000 area starting in the lower left corner at X=-10,000; Y=-10,000
  
  
Line 28: Line 28:
  
 
==== minetestmapper in C++ ====
 
==== minetestmapper in C++ ====
The minetestmapper written into C++ by mireq. It is much faster. The code can be found on [https://github.com/mireq/minetest-mapper-cpp github] as well as an [https://github.com/mireq/minetest-mapper-cpp/downloads .exe] for windows. Also see the [https://forum.minetest.net/viewtopic.php?id=2896 forum].
+
The minetestmapper written into C++ by mireq. It is much faster. The code can be found on [https://github.com/mireq/minetest-mapper-cpp github] as well as an [https://github.com/mireq/minetest-mapper-cpp/downloads .exe] for Windows. Also see the [https://forum.minetest.net/viewtopic.php?id=2896 forum].

Revision as of 06:23, 2 October 2013

The Minetestmapper creates 2D maps of your world, where one node corresponds one pixel.

Usage

This describes the usage of the C++ minetestmapper. The usage of minetestmapper.py is similar.

Make sure there is a colours.txt in the same folder as the mapper. You might want to download VanessaE’s more complete colours.txt


On Linux open a terminal in the folder the mapper is. Create a map using this command.

./minetest_mapper -i /home/user/.minetest/worlds/my_world/ -o /home/user/map.png

Having minetest running in place you might have to modify the world path.


On Windows press shift and right click in the folder the mapper is in, select the command prompt. To create a map type this command.

minetest_mapper.exe -i "C:\your_path_to_minetest\Minetest\worlds\example\" -o map.png


The geometry option allows you to define an area to map. Use it between “./minetestmapper” and the input “-i”.

--geometry -10000:-10000+20000+20000

Result: A 20.2 MiB file covering a 20,000 × 20,000 area starting in the lower left corner at X=-10,000; Y=-10,000


Versions

Currently there are two mappers. It is recommended to use the C++ version.

minetestmapper.py

A mapper written in Python. It comes with Minetest and can be found in ./minetest/util/

minetestmapper in C++

The minetestmapper written into C++ by mireq. It is much faster. The code can be found on github as well as an .exe for Windows. Also see the forum.