Difference between revisions of "Mdldecompiler"

From Valve Developer Community
Jump to: navigation, search
m (Added workaround for decompiling OB models.)
 
(28 intermediate revisions by 13 users not shown)
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 their component parts; namely [[SMD]], [[VTA]] and [[QC]] files.
  
{{warning|'''MDLDecompiler''' only works with Episode 1 engine based models. It cannot deompile Orangebox models.}}
+
'''You don't have to change anything in Hooch's fixed version, link at the bottom of page'''
{{note|There is a workaround to decompiling Orangebox models. Simply open the model in notepad and change IDST'''0''' (Zero) to IDST''',''' (Comma) and save the .mdl.}}
 
  
== External links ==
+
'''Animations: Certain mdl's only have animations in them, but come with a .ani file. Same procedure: Change the .mdl's header to IDST, and the .ani's header to IDAG, NOTE THE COMMA'''
You can download working versions of the tools from the links below.
+
 
* [http://www.ecct2.com/files/mdldecompiler.exe MDLDecompiler]
+
Some issues with the original Cannonfodder decompiler were fixed by [[User:Erix920|Erix920]] but some bugs still remain.
* [http://www.ecct2.com/files/StudioCompiler.exe StudioCompiler]
+
 
{{note|The above are patched versions of the original tools, released by [[User:Erix920|Erix920]].}}
+
{{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.}}
 +
 
 +
{{note|When browsing for the .mdl file you wish to decompile it might give an error and shut down the program. When it does this try deselecting the "Use Steam File Access" inside the mdldecompiler program at the bottom. Once deselected then you should be able to browse for the .mdl files.}}
 +
 
 +
{{note|When using Orange Box, don't place the mdldecompiler in "sourcesdk/bin/orangebox/bin/", this does not work. You need to place the mdldecompiler.exe in "sourcesdk/bin/ep1/bin/" at all times.}}
 +
 
 +
== See also ==
 +
* [[Crowbar]] - A more up-to-date tool for decompiling models
 +
* [[Studiocompiler]]
 +
* [[Source_model_skin_editor|Source model skin editor]]
 +
 
 +
== External links ==
 +
You can download working versions of the tools from the links below.
 +
 
 +
* [http://gamebanana.com/tools/5083 Hooch's fixed version of MDL Decompiler (2013) (No need to change "IDST0" to "IDST," and no more AppId error)]
 +
* [http://www.chaosincarnate.net/cannonfodder/cftools.htm Cannonfodder's original MDLDecompiler (for an updated version use studiocompiler)]
 +
* [http://web.archive.org/web/20090106152445/http://www.kathar.net/hl2modding/applications.php Erik's fixed version of MDLDecompiler] (internet archive / wayback machine)
 +
* [http://cannonfodder.chaosincarnate.net/cftools.php?program=studiocompiler StudioCompiler (updated 2011)] - the official website.
 +
* [http://steamcommunity.com/groups/CrowbarTool Crowbar MDL Decompiler]
  
 
[[Category:Modeling]]
 
[[Category:Modeling]]
 
[[Category:Third Party Tools]]
 
[[Category:Third Party Tools]]

Latest revision as of 06:21, 1 March 2017

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

You don't have to change anything in Hooch's fixed version, link at the bottom of page

Animations: Certain mdl's only have animations in them, but come with a .ani file. Same procedure: Change the .mdl's header to IDST, and the .ani's header to IDAG, NOTE THE COMMA

Some issues with the original Cannonfodder decompiler were fixed by 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.
Note:When browsing for the .mdl file you wish to decompile it might give an error and shut down the program. When it does this try deselecting the "Use Steam File Access" inside the mdldecompiler program at the bottom. Once deselected then you should be able to browse for the .mdl files.
Note:When using Orange Box, don't place the mdldecompiler in "sourcesdk/bin/orangebox/bin/", this does not work. You need to place the mdldecompiler.exe in "sourcesdk/bin/ep1/bin/" at all times.

See also

External links

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