Example .wd files:
Code: Select all
http://www.mediafire.com/file/mmsdzm94prh8qgy/TW1_WD_EXAMPLES.rar
Maybe script for Two Worlds 2 and Raven's Cry will help here...
Raven's Cry .wd by Thief1987
Code: Select all
log MEMORY_FILE 0 0
get dirname basename
goto 0x24
get arcnamelen long
getdstring arcname arcnamelen
get dummy long
get filetablezsize long
savepos offset
clog MEMORY_FILE offset filetablezsize 0x10000000
get files long MEMORY_FILE
for i = 0 < files
get filenamelen byte MEMORY_FILE
getdstring name filenamelen MEMORY_FILE
get dummy byte MEMORY_FILE
get offset longlong MEMORY_FILE
get zsize long MEMORY_FILE
get size longlong MEMORY_FILE
set fullname = dirname
string fullname + "/"
string fullname + name
clog fullname offset zsize size
next i
Two Worlds 2 .wd by Ekey
Code: Select all
# Two Worlds 2 (WD format)
#
# Written by Ekey (h4x0r)
# http://www.progamercity.net
#
# script for QuickBMS http://quickbms.aluigi.org
comtype unzip_dynamic
idstring "WD"
goto 0x2c
get TABLESIZE long
savepos TABLEOFFSET
clog MEMORY_FILE TABLEOFFSET TABLESIZE TABLESIZE
get FILES long MEMORY_FILE
for i = 0 < FILES
get NSIZE byte MEMORY_FILE
getdstring NAME NSIZE MEMORY_FILE
get FLAG byte MEMORY_FILE
get OFFSET long MEMORY_FILE
get NULLS long MEMORY_FILE
get ZSIZE long MEMORY_FILE
get SIZE long MEMORY_FILE
get NULLS long MEMORY_FILE
if SIZE == ZSIZE
log NAME OFFSET SIZE
else
clog NAME OFFSET ZSIZE SIZE
endif
next i
Thank You for any help.