I don't know how to use Mappy's native map format. The dll I found doesn't have any documentation or examples of how to use it.
You could try something like this though:
NumOfTilesX = 64
NumOfTilesY = 64
mapname$="mymap.txt"
dim TileMap(NumOfTilesX - 1, NumOfTilesY - 1)
open to read 1,mapname$
for y = 0 to NumOfTilesY - 1
read string 1,s$
for x = 0 to NumofTilesX - 1
index = findComma(s$)
value = val(left$(s$, index))
s$ = right$(s$, len(s$)-index)
TileMap(x, y) = value
next x
next y
close file 1
function findComma(s as string)
for i = 1 to len(s)
if mid$(s,i) = "," or i = len(s) then exitfunction i
next i
endfunction -1
I got the comma function from the forum - and probably the loading code too. I think Ianm's utilities has a split function that could replace that and maybe make for easier code.
Your map file will look like:
0,0,0,0
1,1,1,0
23,24,25,0
etc.
To get that format in Mappy I use this
Mappy exporter.
I edited my version of the exporter to strip out what I don't want but if you don't want to do that you can just edit the text file it generates to strip out everything except the map data.
I also like the
Tiled editor. It has an option to save map data in csv and you can just edit the native map format with notepad to strip out whatever you don't want.
Basically Tiled's native format is an xml file, so if you can figure out how to parse and xml file you have probably figured out how to load a Tiled map.
It is sort of weird that neither one of those map editing tools seems to get that much attention on the forums.
Hope that helps some anyway.