Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[Xbox] Star Wars: The Clone Wars - data.zwp file

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

[Xbox] Star Wars: The Clone Wars - data.zwp file

Post by Acewell »

Image
Hello i have some files from Pandemic Studio's 2003 game Star Wars: The Clone Wars for Xbox.
I am trying to get to the models and textures and hopefully find a way to convert them to a usable format.
I would be grateful if someone can help figure out how to extract the contents.
Thank You! :)

edit
after looking through the Gamecube version of these same files i was able to determine that all of the models and textures are compressed into the data.zwp file in the Xbox version, now we just need to find a way to unpack it. I think the models are already in msh format which is good news since there is already tools that can convert this format to usable ones.

I managed to unpack data.zwp with offzip using this:
offzip.exe -a data.zwp c:\offzip 0x0
All of the files will have a .dat extension but you can open the files in HxD and see which type they really are then change the extension accordingly. :D
The best way to unpack the zwp file is to use aluigi's bms script (thank you aluigi!) posted in this thread, this way you'll have the file names and extensions intact.


The model files are msh files which can be viewed or converted in SWBFViewer, MeshTool or Unwrap3d(needs the msh import plugin).

The texture files are xbt files which can be opened in TextureFinder.v21.
You'll have to shift them 32 pixels over then save as bmp and crop the bottoms off in Photoshop and flip them vertically before saving. The xbt files are just dds textures with custom headers, so if you don't want to mess with TextureFinder you can just remove the first 2 lines(32 bytes total) in the xbt file and insert a real dds header. You can use TextureFinder to quickly identify the width and height and dds type and then insert the right dds header.


xbt custom header info
  • First 4 bytes is image width
    next 4 bytes is image height
    next 4 bytes is unknown
    next 4 bytes is dxt type (0C=dxt1, 0E=dxt3)
    next 4 bytes is unknown
    next 4 bytes is unknown
    next 4 bytes is unknown
    next 4 bytes is unknown
image dimensions and their hex representation for xbt/dds
  • 16 pixels = 10
    32 pixels = 20
    64 pixels = 40
    128 pixels = 80
    256 pixels = 01
    512 pixels = 02
    1024 pixels = 04
    2048 pixels = 08
here is some information i found from converting various xbt files to dds based on their size on disk.
xbt file size - width/height - type
  • 1kb - 32x32 - dxt1
    2kb - 32x32 - dxt3

    3kb - 64x64 - dxt1
    6kb - 64x64 - dxt3

    11kb - 128x128 - dxt1
    22kb - 128x128 - dxt3

    33kb - 512x128 - dxt1
    65kb - 1024x128 - dxt1

    43kb - 256x256 - dxt1
    86kb - 256x256 - dxt3

    129kb - 1024x256 - dxt1
    257kb - 512x512 - dxt3

    171kb - 512x512 - dxt1
    342kb - 512x512 - dxt3

    513kb - 1024x1024 - dxt1
    1025kb - 1024x1024 - dxt3
Last edited by Acewell on Mon Feb 08, 2016 1:57 pm, edited 15 times in total.
User avatar
Evin
ultra-veteran
ultra-veteran
Posts: 348
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 2 times
Been thanked: 160 times
Contact:

Re: [Xbox] Star Wars: The Clone Wars *.bin files

Post by Evin »

Simple zlib compressed files. But I think these are just animation data.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: [Xbox] Star Wars: The Clone Wars *.bin files

Post by Acewell »

Thank you, did you successfully extract the files from both archives?
The bin files from what i can see are the only resource files on the disc other than music and sound files, the bin files must contain animations, models, textures and scripts etc. :?:

here are some more bin samples
*Samples provided on request*

You said the bin file is compressed with "simple zlib" so i must use offzip to decompress it right?



edit
After looking through the other files again i found one that may also contain some of the game's sources, data.zwp is 116MB and upon inspection in HxD there are references to odf and msh files which look like the same type Pandemic Studio used in Star Wars Battlefront. Please have a look at it also. thanks


[other info]
The sound files (ambient, VO, effects and other streams) will play in Windows Media Player as they are but to play the music files i had to install the ADCPM Codec.



edit2
*See first post
Last edited by Acewell on Mon Feb 08, 2016 1:59 pm, edited 3 times in total.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: [Xbox] Star Wars: The Clone Wars - data.zwp file

Post by aluigi »

script for quickbms:

Code: Select all

idstring "NORK"
get DUMMY long
get DUMMY long
get FULL_SIZE long
get FILES long
get OFFSET long
goto OFFSET
for i = 0 < FILES
    get ZERO long
    get NAMESZ byte
    getdstring NAME NAMESZ
    get OFFSET long
    get SIZE long
    get ZSIZE long
    if ZSIZE == SIZE
        log NAME OFFSET SIZE
    else
        clog NAME OFFSET ZSIZE SIZE
    endif
next i
Teancum
veteran
Posts: 99
Joined: Tue Nov 27, 2007 8:30 pm
Has thanked: 22 times
Been thanked: 7 times

Re: [Xbox] Star Wars: The Clone Wars - data.zwp file

Post by Teancum »

I've looked at the Gamecube version of the game and it doesn't use ZWP archives, however it does show the folder structure for where all the files go. Would that be helpful at all in creating a recompiling script?
Teancum
veteran
Posts: 99
Joined: Tue Nov 27, 2007 8:30 pm
Has thanked: 22 times
Been thanked: 7 times

Re: [Xbox] Star Wars: The Clone Wars - data.zwp file

Post by Teancum »

The contents of this post was deleted because of possible forum rules violation.
Post Reply