Please anyone can help me out to repack this files. Or at least BMS script with reimport possible? Game is Sacred 2 and X360 version.Index file is readable with texts...
Code: Select all
http://dl.dropbox.com/u/38234344/Sacred_2_X360.rarCode: Select all
http://dl.dropbox.com/u/38234344/Sacred_2_X360.rar
Code: Select all
# Sacred 2 UNFINISHED!
# comtype is not correct or tuned!
open FDDE "index"
string DATA p= "%03d" 0
open FDDE DATA 1
comtype xmemdecompress # doesn't work
endian big
math FILES = 0x7fffffff
math j = 0
for i = 0 < FILES
get LEVEL byte
get NAME_OFF threebyte
get SIZE long
get ZSIZE long
get OFFSET long
if LEVEL >= 9
putarray 0 j NAME_OFF
putarray 1 j OFFSET
putarray 2 j ZSIZE
putarray 3 j SIZE
math j += 1
endif
if LEVEL == 0
if NAME_OFF == 0
if SIZE == 0
math FILES = i
endif
endif
endif
next i
math FILES = j
savepos NAMES_OFF
math NAMES_OFF -= 4
for i = 0 < FILES
getarray NAME_OFF 0 i
getarray OFFSET 1 i
getarray ZSIZE 2 i
getarray SIZE 3 i
math NAME_OFF += NAMES_OFF
goto NAME_OFF
get NAME string
clog NAME OFFSET ZSIZE SIZE 1
next i