Help code Map

socramazibi
Member
 
Posts: 81
Joined: Mon Jan 28, 2013 12:29

Help code Map

by socramazibi » Thu Feb 07, 2013 16:16

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
Last edited by socramazibi on Thu Feb 07, 2013 16:17, edited 1 time in total.
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Thu Feb 07, 2013 16:32

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!
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

socramazibi
Member
 
Posts: 81
Joined: Mon Jan 28, 2013 12:29

by socramazibi » Thu Feb 07, 2013 19:20

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.
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
 

socramazibi
Member
 
Posts: 81
Joined: Mon Jan 28, 2013 12:29

by socramazibi » Thu Feb 07, 2013 19:21

Thank you for your attention, I have already solved.

greetings

They can close the issue. I do not think it useful to post.
Last edited by socramazibi on Thu Feb 07, 2013 20:20, edited 1 time in total.
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 29 guests

cron