Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Jun 26, 2019 2:48 am

All times are UTC

Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jun 23, 2017 4:33 pm 

Joined: Fri Jun 23, 2017 4:29 pm
Posts: 1
I've posted this topic over at the Xentax forums already, but I figured that posting here too would be a good idea.

I need help with decompressing the .4x3 files from Iron Storm by 4X Studios. They are the 3D models from the game and they also contain the textures, materials and meshes used by the model.

After looking through the files in a hex editor, as well as searching through the game's executable, I think that the 3D models are using zip deflate compression. Additionally, the .4x3 files are full of "zip!" keywords, so I'm wondering if they could be .zip files too.

The .4x3 files are composed of several or more entries stored one after another. Every entry starts with the "zip!" keyword, followed by 4 bytes indicating the size of the entry in the file. The next 4 bytes indicates the type of file it is. From my understanding,

    TEXU = Textures
    MATL = Materials
    MESH = Meshes

There's more types than what I listed, but these are bigger ones and are the most common.

Finally, the next 4 bytes could represent the uncompressed size of the file. The compressed data follows, usually ending with "00 00 FF FF" followed by a null byte in case the aforementioned entry size is an odd number.

I tried using Offzip to decompress the deflated data from these files. Actually, the first entries (always textures) in every .4x3 file decompressed perfectly and I could view the image after editing its header afterwards. However, all subsequent entries just won't decompress at all. The only message I keep getting is:

zlib Z_DATA_ERROR, the data in this file is not in zip format or uses a different windowsBit value (-z). Try using -z 15

I've tried writing a script for QuickBMS that would inflate the compressed data streams and save them into a new file, but it yielded the same results.

I'm really unsure as to why the first entry would always decompress without issues but the rest fail. I want to be able to use these 3D models for editing and other uses, so I'm asking now if anyone has any idea how to solve this. Also, would it be a good idea to try and reverse engineer some .zip file using the decompressed data? There doesn't seem to be any CR-32 checksum values anywhere, which may be problematic.

I've uploaded a couple of .4x3 files taken directly from Iron Storm's Models.ibf archive. You can find them at this link. If anyone has any idea on what to do, please respond.

Thank you.

PostPosted: Fri Jul 21, 2017 7:33 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553

PostPosted: Wed Sep 12, 2018 1:44 pm 

Joined: Wed Sep 12, 2018 1:34 pm
Posts: 1
Thank you for your reply aluigi.
But could you help us open the extracted .DEF file now with your script?
I leave you a link containing .DEF files.

https://drive.google.com/open?id=1N1PWl ... qx1SDDr-zg

PostPosted: Wed Dec 12, 2018 11:32 pm 

Joined: Wed Dec 12, 2018 11:30 pm
Posts: 1
Sorry for hijacking this thread a bit, but I also tried decompressing the game files. I read however that you managed to "view the image after editing its header afterwards". Would you be able to show this, since this is kind of exactly what I need.

PostPosted: Thu Dec 13, 2018 8:55 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
here is Noesis python script to open your def textures. :D
tex_IronStorm_def.zip [770 Bytes]
Downloaded 21 times

supports dxt1 and dxt5, top level mip only
only works with def files from the TEXU folders.
and the files will export with proper names. :)

Quickbms.com link thread
Search bms scripts

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited