local gameutils = {} function gameutils.getMapPath(maptype, mapname) local dir = gameutils.getMapDirectory(maptype, mapname) local path = dir .. "map.lua" core.debug:print("game/utils", "path is " .. path) return path end function gameutils.getMapDirectory(maptype, mapname) if (maptype ~= "battle") and (maptype ~= "sti") then error("Map type " .. maptype .. " doesn't exist.") end return "datas/gamedata/maps/" .. maptype .. "/" .. mapname .. "/" end return gameutils