偶然發現sonic4的obb檔案不是一般的rsb(1sbr)格式,檔案頭如下:
'offset 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
'00000000 4c 50 4b 00 01 00 0c 09 77 00 01 00 20 00 00 00 lpk w
'00000016 50 24 00 00 60 24 00 00 bd cb c3 17 13 03 01 00 p$ `$ 剿?
type tsonic4oob
lsign as
long
irev as
integer
inumfiles as
integer
inumdirs as
integer
irev1 as
integer
lofftable1 as
long
'0x20
llentable1 as
long
'0x2450
lofffileoff as
long
'0x2460
loffnametable as
long
'0x17c3cbbd
llennametable as
long
'01031317
endtype
type tsonicofftable
loff as
long
lsize as
long
lsize1 as
long
idirindex as
integer
ifileindex as
integer
endtype
後面是檔案索引偏移表,loffnametable 是目錄名表接著檔名表,這樣就可以解包得到了所有檔案。
但是它的檔案格式很特殊,amb是zlib壓縮格式,然後解壓縮以後有些是zip!頭的zlib檔案,解壓縮以後可以用abmpacker也可以手動解出dds檔案,但是慢著,裡面混雜了ktx檔案格式,只好用pvrtextool再轉png,這是有多無聊才搞這個?太麻煩了。
常見的檔案格式
常用的副檔名 圖形檔案 gif jpg png psd bmp 聲音檔案 w 文件檔案 txt doc wps docx xls xlsx pdf 壓縮檔案 rar zip z linux 可執行檔案 exe com 光碟映象檔案 iso 臨時檔案 tmp 程式設計方面的檔案 htm html 超文...
DPK4 檔案格式
uint32 header dpk4 uint32 archive size in bytes uint32 directory length not including these 4 fields uint32 number of files in the archive for each fi...
Fragmented MP4檔案格式
mp4 iso base media檔案格式標準允許以fragmented方式組織box,這也就意味著mp4檔案可以組織成這樣的結構,由一系列的短的metadata data box對組成,而不是乙個長的metadata data對。fragmented mp4檔案結構如圖1所示,圖中只給出了兩個f...