here is a link to download a little r2beat's pak file
http://www.yourfilelink.com/get.php?fid=501200
end of the file,can see a byte 0x12,is idstring
before 4 bytes are FILES
before 4 bytes are FILELISTOFFSET
goto FILELISTOFFSET
get filenamelen byte
get filetype byte(filetype= 0x01 is a file,filetype = 0x02 is a folder)
get OFFSET long
get ZSIZE long
get SIZE long
getdstring filename FILENAMELEN
this is my bms code ,but can not extract the pak file.plz help me
sorry for my english-_-!
Code: Select all
goto "EOF"
savepos OFFSET
math OFFSET -= 1
goto OFFSET
get FILETYPE byte
math OFFSET -= 4
goto OFFSET
get FILES long
math OFFSET -= 4
goto OFFSET
get LISTOFFSET long
goto LISTOFFSET
for i = 0 < FILES
get FNAMELEN byte
get FILESTYPE byte
MATH FILNAMELEN += 1
get OFFSET long
get ZSIZE long
get SIZE long
getdstring NAME FNAMELEN
clog NAME OFFSET ZSIZE SIZE
next i