[Two Worlds 1 PC] .wd files extraction help

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
squerol
Posts: 3
Joined: Sun Apr 02, 2017 9:14 am

[Two Worlds 1 PC] .wd files extraction help

Post by squerol »

Hello. I want to extract .wd files from Two Worlds 1 PC game. I saw scripts for Two Worlds 2 and Raven's Cry .wd files, but they aren't working with Two Worlds 1. Will someone be able to make quickmbs script for it, please?

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.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: [Two Worlds 1 PC] .wd files extraction help

Post by Savage »

squerol
Posts: 3
Joined: Sun Apr 02, 2017 9:14 am

Re: [Two Worlds 1 PC] .wd files extraction help

Post by squerol »



Thanks but I've tried it already before - I'm getting "HRESULT 0x8007000b" error with any version of this tool, it has something to do with x64 systems.

That's why I'm searching for quickmbs script for TW1.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: [Two Worlds 1 PC] .wd files extraction help

Post by Savage »

You right, i remember to install a Windows XP in virtual machine to use this tool, if nobody fix the script i recommend to do this
squerol
Posts: 3
Joined: Sun Apr 02, 2017 9:14 am

Re: [Two Worlds 1 PC] .wd files extraction help

Post by squerol »

Savage wrote:You right, i remember to install a Windows XP in virtual machine to use this tool, if nobody fix the script i recommend to do this


Thank You for idea! I was doing something like that with Gothic 3 ModKit, didn't tried with TW1 tool.
Even had VB installed and enabled shared folders :lol:

Thank You once more! It works