MDLDecompiler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (TF2CutContent moved page Mdldecompiler to MDLDecompiler)
 
(27 intermediate revisions by 15 users not shown)
Line 1: Line 1:
'''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.
{{lang|MDLDecompiler|title=MDLDecompiler}}
{{mdldecomp|4.1}} is a tool written by [[User:Cannonfodder|Cannonfodder]] for decompiling [[Source]] models back into their 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). If the 5th byte is a "." change it to a comma anyway, it still works!
'''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 {{code|clear|IDST,}} and the .ani's header to {{code|clear|IDAG,}} NOTE THE COMMAS'''


Some issues with the original Cannonfodder decompiler were fixed by [[User:Erix920|Erix920]] but some bugs still remain.
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.}}
{{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.}}
==Cannonfodder's other source engine tools==
*{{studiocompiler|4.1}}
*{{3dmaxexport|4.1}}
*{{dispgen|4.1}}
*{{winbspzip|4.1}}
== See also ==
* [[Crowbar]] - A more up-to-date tool for decompiling models
* [[XBLAH's Modding Tool]] - Integrated model decompiling feature
* [[Studiocompiler]]
* [[Source_model_skin_editor|Source model skin editor]]


== 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://www.chaosincarnate.net/cannonfodder/cftools.htm Cannonfodder's original MDLDecompiler]
* [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://kathar.net/other/mdldecompiler.exe Erik's fixed version of MDLDecompiler]
* [http://www.chaosincarnate.net/cannonfodder/cftools.htm Cannonfodder's original MDLDecompiler (for an updated version use studiocompiler)]
* [http://files.filefront.com/Studiocompilerzip/;11680523;/fileinfo.html 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]
{{sdktools|0}}
[[Category:Modeling]]
[[Category:Modeling]]
[[Category:Third Party Tools]]
[[Category:Third Party Tools]]

Latest revision as of 10:46, 17 November 2023

English (en)Translate (Translate)

MDLDecompiler 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 clear and the .ani's header to clear NOTE THE COMMAS

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.
Note.pngNote: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.pngNote: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.

Cannonfodder's other source engine tools

See also

External links

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