Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = io.open("map/r.0.0.mcr", "rb")
- local content = f:read("*all")
- chunks={}
- for x=0,31 do
- chunks[x]={}
- for z=0,31 do
- local pos=4*(x%32+4*(z%32))
- local posStr=content:sub(pos,pos+4)
- chunks[x][z]={}
- chunks[x][z].posStr=posStr
- local offset=--[[???]]--*4*1024
- local leng=--[[???]]--*4*1024
- chunks[x][z].data=content:sub(offset,leng)
- print(x,z,chunks[x][z].posStr,offset,leng,chunks[x][z].data)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement