MDLDecompiler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Moved it to Discussion.)
m (TF2CutContent moved page Mdldecompiler to MDLDecompiler)
 
(43 intermediate revisions by 23 users not shown)
Line 1: Line 1:
A proficient tool at decompiling models. This tool was created by Cannonfodder.
{{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.


Find this tool and other tools by Cannonfodder [http://chaosincarnate.net/cannonfodder/cftools.php here].
'''You don't have to change anything in Hooch's fixed version, link at the bottom of page'''


You can find a working versions of CannonFodders tools at the links below:
'''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'''
*http://www.ecct2.com/files/mdldecompiler.exe - MDLdecompiler
*http://www.ecct2.com/files/StudioCompiler.exe - StudioCompiler
I fixed these a long time ago - EriX920


== MDLDecompiler known issues ==
Some issues with the original Cannonfodder decompiler were fixed by [[User:Erix920|Erix920]] but some bugs still remain.
* when you decompile various NPC models like zombies and birds, and then recompile them,
you'll note that they are unable to move around and an error message somewhat like this will
appear (unless you're not in dev mode maybe)<br/>
"npc_zombie moving with speed <= 0 (walk2)"<br>
Due to a decompiler limitation you'll have to fix this yourself using some capable animation program.


"'''GunGrave:''' First in you're walking animation smd's, make sure the actual skeleton is moving
{{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.}}
foward/backward/whatever direction you need.


Then in the qc add LX to the $sequence and $include lines that have the walk animations.
{{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.}}
"


"'''unknown:''' to fix this you have to open every walk animation smd in 3ds Max or similar program, and have the  
{{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.}}
model actually move foward/backward/whatever direction. And then in the qc add "LX" to the $sequence and
==Cannonfodder's other source engine tools==
$animation lines that have walk smd's."
*{{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]]


"'''prall:''' if they aren't animated moving then it's coded....u can do both"
== 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]
{{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.