How do you make a map image?

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

How do you make a map image?

by bwog » Wed Nov 30, 2011 14:11

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.
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Wed Nov 30, 2011 14:29

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.)
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Wed Nov 30, 2011 16:37

Ok I ran it, but I can't find where the image is.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Thu Dec 01, 2011 03:56

There should be "map.png" in the same folder as minetestmapper.py.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Thu Dec 01, 2011 13:09

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.
Last edited by bwog on Thu Dec 01, 2011 13:10, edited 1 time in total.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Fri Dec 02, 2011 03:37

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?
Last edited by Menche on Fri Dec 02, 2011 03:38, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Fri Dec 02, 2011 14:14

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.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Fri Dec 02, 2011 14:35

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.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Fri Dec 02, 2011 14:43

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.
 

User avatar
redcrab
Member
 
Posts: 831
Joined: Tue Dec 13, 2011 13:45

by redcrab » Fri Jan 06, 2012 02:13

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 ?
Last edited by redcrab on Fri Jan 06, 2012 02:14, edited 1 time in total.
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net

It's nice to be important but it is more important to be nice.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Jan 06, 2012 08:52

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
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
redcrab
Member
 
Posts: 831
Joined: Tue Dec 13, 2011 13:45

by redcrab » Fri Jan 06, 2012 09:18

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
Last edited by redcrab on Fri Jan 06, 2012 09:18, edited 1 time in total.
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net

It's nice to be important but it is more important to be nice.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 23 guests

cron