Here is a screenshot of the archive:
The bit marked in red is the number of archives, the green highlighted area is the filename and the blue highlighted area is the offset of the texture in the archive (little endian). 4 bytes before the offset is the file size of the textures I'm assuming.
So far I'm using this script by AlphaTwentyThree to extract the DDS files where it finds instances of them:
Code: Select all
findloc OFFSET string "DDS"
do
goto OFFSET
get DUMMY long
findloc NEXT_OFFSET string "DDS" 0 ""
if NEXT_OFFSET == ""
get SIZE asize
else
math SIZE = NEXT_OFFSET
endif
math SIZE -= OFFSET
log "" OFFSET SIZE
math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
How can I rewrite this to also get the filenames and extract the files with the names? Any help is appreciated.
Also a sample file if needed: https://mega.nz/#!1xw1FT6C!Z2bFmvHKYpLi ... F9xn-4XAAs