Page 1 of 2

[Mod] Map [2] [map]

Posted: Fri Aug 10, 2012 11:29
by PilzAdam
Hello everyone!
I have made a mod that adds a map of the world. It uses the minetestmapper script wich is in the util folder of minetest.
If you have installed it the mod will create a image of the world (This will take some time depending on the size of the map). In the game you can craft a map like this:

Code: Select all

paper    paper
paper    paper
If you want a updated version of the map just delete the file map.png in the map/textures/ folder (the next loading of the world will create a new map wich takes some time too).

There is currently no working windows version.

Depends:
  • default
  • You need to have python installed otherwise the script wont work. You also need the PIL (python image libary).
Problems:
If there appears an error while creating the image you will see the command that need to be run in the debug.txt (something like "[map] Tried to run command "python ..."").

License:
The mod contains a copy of the python script minetestmapper.py wich has the license in line 4-8 in the script.
All other parts: WTFPL.

Download:

Posted: Fri Aug 10, 2012 12:44
by PilzAdam
New version. Version 1 didnt work.

Posted: Fri Aug 10, 2012 12:48
by pagliaccio
screen?

Posted: Fri Aug 10, 2012 14:55
by cornernote
Any chance of writing in c++ or something else that can be compiled and included with the mod?

Posted: Fri Aug 10, 2012 15:05
by PilzAdam
cornernote wrote:Any chance of writing in c++ or something else that can be compiled and included with the mod?
Nope (I think).

Posted: Mon Aug 20, 2012 13:25
by PewDiePie
Does this work with 0.4.2?
_Pewdy_

Posted: Mon Aug 20, 2012 14:30
by PilzAdam
PewDiePie wrote:Does this work with 0.4.2?
_Pewdy_
Only linux with python and PIL installed.

Posted: Wed Aug 22, 2012 14:29
by PewDiePie
so i cant use it?
_Pewdy_

Posted: Wed Aug 22, 2012 15:59
by tonyka
PewDiePie wrote:so i cant use it?
_Pewdy_
Sure you can use ... linux is free and better than that winbugg ...
I recommend to start Lubuntu know, you can install it under windows like a program (running Wubi.exe) and uninstall it if you do not like ...
and enjoy the power of open software and minetest
Image

I hope this is not considered spam....

y love Linux!!! & map mod...

Posted: Sat Aug 25, 2012 23:48
by tonyka
as I add blocks of mods?

Posted: Sun Aug 26, 2012 07:39
by leo_rockway
PilzAdam wrote:
cornernote wrote:Any chance of writing in c++ or something else that can be compiled and included with the mod?
Nope (I think).
Mapper in C++

Posted: Sun Aug 26, 2012 10:30
by PilzAdam
leo_rockway wrote:
PilzAdam wrote:
cornernote wrote:Any chance of writing in c++ or something else that can be compiled and included with the mod?
Nope (I think).
Mapper in C++
I already compiled one version for me and test it now. I will see how to implement it in this mod.

Posted: Sun Aug 26, 2012 14:43
by tonyka
which is how to compile it?
I only get errors ...

Posted: Tue Aug 28, 2012 00:24
by RabbiBob
Disclaimer: I read that it doesn't work under Windows

I've been away from Minetest for a bit and I've just resurrected my old server this afternoon, then got the updated Mapper to run on Windows with no changes to the script.

For anyone that cares to try, I think that you can do this under Windows, however it's the os.execute call that isn't working correctly under Win as it doesn't natively take the python call like that. I may add it to the env path later and test.

Requirements

Posted: Tue Sep 04, 2012 15:47
by sapier
can you make map be stored in world folder instead of mod folder?

Posted: Tue Sep 04, 2012 16:37
by PilzAdam
sapier wrote:can you make map be stored in world folder instead of mod folder?
Its difficult because its the texture for the map node.

Posted: Tue Sep 04, 2012 20:57
by sapier
didn't think about that ...
I asked because I tried with different worlds ... obviously getting wrong map on second and following worlds

Posted: Wed Sep 05, 2012 00:25
by bob
Can you put a screenshot please?

Posted: Wed Sep 05, 2012 17:45
by irksomeduck
No Windows version :(

Posted: Fri Sep 21, 2012 15:15
by Sokomine
Might it be possible to mix this mod with the new inventory_plus to display a more helpful extract of the map to the player? The complete map may grow quite large. Displayed in the size of a usual nodebox, the map is too small to recognize anything . Things like current position, home and other points of interest might be helpful as well. Especially their relative positions.
And please check your mails...seems mine got lost in a spamfilter - again :-(

Posted: Fri Oct 19, 2012 02:09
by GJH105775
Sweet, I am on a linux (ubuntu 12) and code in python.

Posted: Wed Oct 24, 2012 02:51
by mauvebic
Sokomine wrote:Might it be possible to mix this mod with the new inventory_plus to display a more helpful extract of the map to the player? The complete map may grow quite large. Displayed in the size of a usual nodebox, the map is too small to recognize anything . Things like current position, home and other points of interest might be helpful as well. Especially their relative positions.
And please check your mails...seems mine got lost in a spamfilter - again :-(
tried sticking a map in the formspec with mixed results:
Image
its smaller than if i walk up to it :-/

idea: try splitting the map texture into 4 parts. pageflip on punch or tile them on the wall.

Posted: Mon Oct 29, 2012 08:13
by paramat
Hi first post.
Thanks for this mod. My small map takes roughly 15 minutes to generate at the 'creating server ...' screen.
To view in game you can place it on a low ceiling above a torch, look straight up and move around underneath using WASD.

Posted: Mon Oct 29, 2012 21:16
by Dragonop
I NEED THIS but i have windows D:

Posted: Tue Oct 30, 2012 14:52
by RobSis
Amazing mod, thanks!

With mireq's C++ implementation of mapper it's real smooth, btw.