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