How to assign string "as filepath/filename" to a file?
I have made bms script but it use only last string from string table and assign it to all files.
Thank you.
Code: Select all
####################################
get SIGN4 long
idstring "SARC"
get VERSION long
get ENTRYSIZE long
get STRINGTABLE long
math ENTRYSIZE -= STRINGTABLE
math ENTRYSIZE /= 20
math FILES = ENTRYSIZE
for i = 0 < FILES
get FNAME string
next i
for i = 0 < FILES
get FILETYPE long
get OFFSET long
get SIZE long
get HASH0 long
get HASH1 long
if OFFSET == 0
log FNAME OFFSET 0
else
log FNAME OFFSET SIZE
endif
next i