Help code Map
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?
Thanks
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