UGX-Mods

Call of Duty 5: World at War => Applications & Tools => Custom Maps, Mods & Tools => 3rd-Party Applications & Tools => Topic started by: RSX on April 11, 2017, 01:40:02 pm

Title: IWITool (Decompile and Recompile T5, T6, IW4, IW5 IWI's)
Post by: RSX on April 11, 2017, 01:40:02 pm
Features:


Usage:
Code Snippet
Plaintext
 IWITool.exe InputType Input (Additional input settings) ExtractType Extract (Version)
Full usage.
Code Snippet
Plaintext
To dump an IWI:
 IWITool.exe IWI t5_weapon_m60e3_env.iwi DIR T5Test

To recompile a dumped IWI:
 IWITool.exe DIR T5Test IWI Recompiled.iwi

To create a brand new IWI (Sample pixel format: RGBA:512x512x6):
 IWITool.exe NEW [PixelFormat - PIXELTYPE:WIDTH:HEIGHT:SURFACES] DIR newTest 13

To convert an IWI with a single surface to another game:
 IWITool.exe IWI t5_weapon_m60e3_env.iwi IWI T6.iwi 27

To compile a BMP (NOT RECOMMENDED):
The correct flags can be obtained from dumping a similar IWI.
You may want to experiment with removing or adding 3, 2 bitwise flags to your flag depending on the game.
 IWITool.exe BMP [FLAGS] [GAMMA] test.bmp IWI Test.iwi 27


Known issues/planned features:
IssueWorkaroundsFixed
Bad user input validationCheck the arguments you pass to the toolNo - Low priority
Odd skybox (cube) texture detectionNone.No - High priority
No support for version 5 IWIs (unk game)None.No - High priority
No support for dumping entire dirsPass an IWI instead, silly.No - Low priority
Add T6 IPAK supportUse the tool mentioned at the bottom of the post.No - Medium priority
Add T7 supportNone.No - Medium priority

List of supported (IWI) versions: 6, 8, 9, 13, 27

IWITool Download:  https://i.itsghost.me/DG7duCAnRYJMkvu.zip (https://i.itsghost.me/DG7duCAnRYJMkvu.zip)
IWITool GUI: Pending.

(Note: when editing BMPs in paint.net, you will need this plugin to save the alpha values:
https://forums.getpaint.net/index.php?/topic/11201-alpha-32bits-bitmap-support-for-paintnet/ (https://forums.getpaint.net/index.php?/topic/11201-alpha-32bits-bitmap-support-for-paintnet/) )

(Note: when decompiling T6 IWIs, you'll need kokole's IPAK tool.
https://www.itsmods.com/forum/Thread-Release-IPAK-extractor-library-and-source-V2-60.html (https://www.itsmods.com/forum/Thread-Release-IPAK-extractor-library-and-source-V2-60.html) )