Mantis Burn Racing (.*VFSDATA)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
StreamThread
Posts: 54
Joined: Fri May 27, 2016 2:28 pm

Mantis Burn Racing (.*VFSDATA)

Post by StreamThread »

Code: Select all

#Mantis Burn Racing BMS Script *.VFS;*.VFSDATA

Open FDDE VFSHDR 1 CF_FOUND #check .vfshdr file at same folder

if CF_FOUND == 0
get fileCnt long 0
get DUMMY long 0
xmath checkFO "(fileCnt * 36) + 0x8" #if archive with .vfs ext check possibly files start offset (especially for root.vfs file)
goto checkFO 0 SEEK_SET
get zlibP short 0
if zlibP != 0x9c78

print "*.vfshdr file missing or unsupport"
else
goto 0x8 0 SEEK_SET
for i = 1 to fileCnt do
get UNK1 long 0
get UNK2 long 0
get offset long 0
get DUMMY long 0
get size long 0
get DUMMY long 0
get zsize long 0
get DUMMY longlong 0
math offset + checkFO

if size != zsize
cLog "" offset zsize size 0
else
Log "" offset size 0 
endif


next i

endif
else
get fileCnt long 1
get DUMMY long 1

for i = 1 to fileCnt do
get UNK1 long 1
get UNK2 long 1
get offset long 1
get DUMMY long 1
get size long 1
get DUMMY long 1
get zsize long 1
get DUMMY longlong 1

if size != zsize
cLog "" offset zsize size 0
else
Log "" offset size 0
endif


next i
endif