[Xbox] Star Wars: The Clone Wars - data.zwp file
Posted: Sun Oct 10, 2010 8:43 pm
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.
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
- 16 pixels = 10
32 pixels = 20
64 pixels = 40
128 pixels = 80
256 pixels = 01
512 pixels = 02
1024 pixels = 04
2048 pixels = 08
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