MDLDecompiler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
'''MDLDecompiler''' is a tool written by [[User:Cannonfodder|Cannonfodder]] for decompiling [[Source]] models.
'''MDLDecompiler''' is a tool written by [[User:Cannonfodder|Cannonfodder]] for decompiling [[Source]] models back into they're component parts; namely [[SMD]], [[VTA]] and [[QC]] files.


{{warning|'''MDLDecompiler''' only works with Episode 1 engine based models. It cannot decompile Orangebox models.}}
MDLDecompiler''' only works with version 44 MDL files from the orignal HL2 or Episode 1 and cannot decompiled newer Orangebox models which are version 48. A work around for this is to edit the MDL in a HEX editor (such as PSPad) and change the 5th byte from hex 0x30 to 0x2C or, in ASCII, from a "0" (zero) to "," (comma).
{{note|There is a workaround to decompiling Orangebox models. Simply open the model in [http://notepad-plus.sourceforge.net/uk/site.htm Notepad++] (standard notepad will not work) and in the first line, change IDST'''0''' (Zero) to IDST''',''' (Comma) and save the .mdl.}}  
 
Some issues with the original Cannonfodder decompiler were fixed by [[User:Erix920|Erix920]] but some bugs still remain.
 
{{note|MDLDecompiler is not 100% reliable and has some issues with certain MDL files. It also doesn't produce a "perfect" decompile and you may need to rework the QC file to be able to recompile a model properly.}}


== External links ==  
== External links ==  
You can download working versions of the tools from the links below.  
You can download working versions of the tools from the links below.  
* [http://files.filefront.com/mdldecompilerexe/;4997154;/fileinfo.html MDLDecompiler]  
 
* [http://www.chaosincarnate.net/cannonfodder/cftools.htm Cannonfodder's original MDLDecompiler]
* [http://files.filefront.com/mdldecompilerexe/;4997154;/fileinfo.html Erik's fixed version of MDLDecompiler]  
* [http://files.filefront.com/Studiocompilerzip/;11680523;/fileinfo.html StudioCompiler]  
* [http://files.filefront.com/Studiocompilerzip/;11680523;/fileinfo.html StudioCompiler]  


[[Category:Modeling]]
[[Category:Modeling]]
[[Category:Third Party Tools]]
[[Category:Third Party Tools]]

Revision as of 16:34, 17 November 2008

MDLDecompiler is a tool written by Cannonfodder for decompiling Source models back into they're component parts; namely SMD, VTA and QC files.

MDLDecompiler only works with version 44 MDL files from the orignal HL2 or Episode 1 and cannot decompiled newer Orangebox models which are version 48. A work around for this is to edit the MDL in a HEX editor (such as PSPad) and change the 5th byte from hex 0x30 to 0x2C or, in ASCII, from a "0" (zero) to "," (comma).

Some issues with the original Cannonfodder decompiler were fixed by Erix920 but some bugs still remain.

Note.pngNote:MDLDecompiler is not 100% reliable and has some issues with certain MDL files. It also doesn't produce a "perfect" decompile and you may need to rework the QC file to be able to recompile a model properly.

External links

You can download working versions of the tools from the links below.