Page 1 of 1

How do you make a map image?

PostPosted: Wed Nov 30, 2011 14:11
by bwog
I've images of maps like this: http://c55.me/~celeron55/random/2011-11/map-2011-11-29.png

But I don't know how to make them.

PostPosted: Wed Nov 30, 2011 14:29
by celeron55
There is a tool called minetestmapper.py included in the minetest sources (util/ directory) that can generate those. You need python, python-imglib or whatever and knowledge how to run python scripts on command line to use it. (also, it is not compatible with 0.4 currently.)

PostPosted: Wed Nov 30, 2011 16:37
by bwog
Ok I ran it, but I can't find where the image is.

PostPosted: Thu Dec 01, 2011 03:56
by Menche
There should be "map.png" in the same folder as minetestmapper.py.

PostPosted: Thu Dec 01, 2011 13:09
by bwog
It runs but nothing happens.

I have it in a folder called "util" since that's what the name of the folder I got it from on GitHub was called.

PostPosted: Fri Dec 02, 2011 03:37
by Menche
The map.png should be in util alongside minetestmapper.py. Does the script actually run? You need python2, not 3, and a library called python imaging or pil. The script has to be run from inside the util folder to find the map. When I run the script, this is the output of a successful run:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
w=352 h=368
Processing sector 200 of 381 (52.5%) (ETA: 0m 4s)
Drawing image
Saving

What is the output when you run it?

PostPosted: Fri Dec 02, 2011 14:14
by bwog
I have Python 2.7.2. Where do I download the libraries? I don't get any output, I run it and it opens up a command prompt window, there's some text that goes by way too fast to read it, and then about a second later it closes.

PostPosted: Fri Dec 02, 2011 14:35
by Menche
The python imaging library is at http://www.pythonware.com/products/pil/index.htm. To read the output you can open it with an interpreter. On linux I use geany and on windows there's IDLE.

PostPosted: Fri Dec 02, 2011 14:43
by bwog
Looks like I won't be able to get it to work, the only pil library for my version of Python the installer for it crashes when it starts to install.

PostPosted: Fri Jan 06, 2012 02:13
by redcrab
celeron55 wrote:There is a tool called minetestmapper.py included in the minetest sources (util/ directory) that can generate those. You need python, python-imglib or whatever and knowledge how to run python scripts on command line to use it. (also, it is not compatible with 0.4 currently.)


What is the current support status of minetestmapper.py with 0.4 ?

PostPosted: Fri Jan 06, 2012 08:52
by sfan5
redcrab wrote:
celeron55 wrote:There is a tool called minetestmapper.py included in the minetest sources (util/ directory) that can generate those. You need python, python-imglib or whatever and knowledge how to run python scripts on command line to use it. (also, it is not compatible with 0.4 currently.)


What is the current support status of minetestmapper.py with 0.4 ?

Minetestmapper.py doesn't work for 0.4

PostPosted: Fri Jan 06, 2012 09:18
by redcrab
sfan5 wrote:
redcrab wrote:
celeron55 wrote:There is a tool called minetestmapper.py included in the minetest sources (util/ directory) that can generate those. You need python, python-imglib or whatever and knowledge how to run python scripts on command line to use it. (also, it is not compatible with 0.4 currently.)


What is the current support status of minetestmapper.py with 0.4 ?

Minetestmapper.py doesn't work for 0.4


It may works with freaky colors thanks to a tiny patch
see at http://c55.me/minetest/forum/viewtopic.php?pid=6735#p6735