• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iwi file structure
#1
Well, iwi's now have a different structure. Mostly interested thing for me is data block, cause шеэы may be highly compressed DDS or something different image type or something else.

I hoped guys with coding experience can help us to decompress them.

In my opinion:

[00] - always 0x1D. It's not a part of iwi header. It's reming me data base, where all filenames stored somewhere and all files into archive just have something like defined value, like "the iwi is starting now"

[01-03] - the "Iwi" header

[x04] - iwi version. Now it's always 0x1B

[x05] - saved image type. Like 0x0C is DXT3 image type, 0x0D is DXT5 etc.

[x06] - unknown flag

[x07-x08] - image width

[x09-x0A] - image height

[x0B] - unknown flag

[x0C-x0F] - those bytes are common for mostly iwi's. Not sure what is that.

[x10-0x3F] - 48 bytes totally. Theoretically it's a replacement for MipMaps (4 for all Cod's, except CoD:BO (it's 8). 4 bytes for each mipmap).

[0x40 - n] - Data block

Hopes someone have ideas what is unknown bytes mean.

Thx and GL.
[-] The following 4 users say Thank You to Gagarin for this post:
  • House, iPaddie, Pozzuh, surtek
  Reply
#2
[00] is not always 0x1D, it can be also 0x22 and other values. If you've examined the structure before an iwi file in some ipak file (I call it pre-header, its 128 bytes long, 128 bytes before iwi header), you will see that it contains info about the iwi blocks, I think they are compression blocks, and you need decompress each block individually. I think they are using custom compression, no tool can decompress that data. Also if you have dlc0_load_mp.ipak, unpack it and you will see that it contains a non compressed iwi (Black Ops I iwi)
[-] The following 1 user says Thank You to kokole for this post:
  • Gagarin
  Reply
#3
Thx for explanation. I'l check ipaks carefully.
  Reply
#4
(12-06-2012, 22:14)Gagarin Wrote: Thx for explanation. I'l check ipaks carefully.

Btw, you can check out my ipak extractor source in the download if you want
  Reply
#5
Arent there two different types of .iwi Files in BOII?
One can be converted to DDS the, but the newer wont work.
[Image: ctoc.jpg]
  Reply
#6
(12-07-2012, 15:18)Tomsen1410 Wrote: Arent there two different types of .iwi Files in BOII?
One can be converted to DDS the, but the newer wont work.

Newer iwi types are just compressed using a custom treyarch's algorithm, my extraction tool can already decompress the files in IPAK, just wait for my update.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Wink Preview Black ops 2 - CFG file dump SLiiTH3R 11 9,165 06-09-2013, 16:01
Last Post: dylankrajewski
  [Release] Modern Warfare 3 Fast File Sounds master131 5 9,254 05-21-2013, 16:46
Last Post: ZURA.
Question Help change single file lzma maker to multiple in c# raminr63 1 1,198 05-12-2013, 19:31
Last Post: raminr63
  [Release] Black Ops II Fast File Explorer master131 19 15,167 03-28-2013, 16:16
Last Post: kokole
  i want change mod to .iwd file ABDULMAILK 7 2,158 03-10-2013, 05:24
Last Post: DidUknowiPwn
  Black Ops II PC Fast File Key master131 19 9,765 12-08-2012, 13:53
Last Post: Gagarin
  Help how to save a weapon_camo_menu<weapon name>.iwi file? Slow 0 811 11-14-2012, 03:19
Last Post: Slow
  [Release] Modern Warfare 2 Fast File Sounds master131 3 4,916 11-13-2012, 07:19
Last Post: DidUknowiPwn
  Help writing text to file (VB2008) dylankrajewski 2 1,549 11-05-2012, 14:32
Last Post: dylankrajewski
  Help i have sound file for blac ops pap12322221112 2 907 10-22-2012, 08:08
Last Post: d0h!

Forum Jump:


Users browsing this thread: 1 Guest(s)