Page 1 of 1

Help code Map

PostPosted: Thu Feb 07, 2013 16:16
by socramazibi
Hello, i was looking at a map mod that of PilzAdam user Map 2 sand the file minetest_mapper.exe to see if I could adapt it to windows7. I've gotten it to work, I think the map problem and makes the capture of the map, I want to update the map again I think the map and not updated.

As could tell the code to delete the old map and updates the image?

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

local path = minetest.get_modpath("map").."/"
local map = io.open(path.."/textures/map.png", "r")
if not map then
    print("[map] No map image found. Creating image... (This will take some time)")
    local result = os.execute(" "..path.."minetest_mapper.exe -i "..minetest.get_worldpath().." -o "..path.."/textures/map.png")
    print("[map] debug: "..result)
    if result ~= 1 then
        print("[map] Failed!")
        print("[map] Tried to run command " "..path.."minetest_mapper.exe -i "..minetest.get_worldpath().." -o "..path.."/textures/map.png"")
    end
end



Thanks

PostPosted: Thu Feb 07, 2013 16:32
by Likwid H-Craft
Well, if you think you can, fix it up for windows do so.
So we Windows owners don't get all this stuff.
Oh and like always For The Win! FTW!

PostPosted: Thu Feb 07, 2013 19:20
by socramazibi
Likwid H-Craft wrote:Well, if you think you can, fix it up for windows do so.
So we Windows owners don't get all this stuff.
Oh and like always For The Win! FTW!


Thanks.

PostPosted: Thu Feb 07, 2013 19:21
by socramazibi
Thank you for your attention, I have already solved.

greetings

They can close the issue. I do not think it useful to post.