MDLDecompiler: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (TF2CutContent moved page Mdldecompiler to MDLDecompiler)
 
(44 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


I am also looking for some experienced programmers to help me redo the whole program. If you want to help email me {{e|erix920@yahoo.com}} there are also no known problems with these programs, aside from the fact that they don't work on Vista. I simply edited the hex to make it work.
Some issues with the original Cannonfodder decompiler were fixed by [[User:Erix920|Erix920]] but some bugs still remain.


{{warning|Erix' attempts at updating these tools have ended in various problems on a number of users machines, making them unreliable. A more reliable alternative is to use Cannonfodder's version - put these in the ''root/bin'' (eg: <code>counterstrike source/cstrike/bin</code>) folder to make them function 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.}}
: @Philthy: '''citation needed'''.  Also, what kind of reliability problems have occurred after using his modified version? For I don't seem to have experienced any problems after using his version months ago. [[User:Fractal|Fractal]] 18:36, 16 Sep 2006 (PDT)
:: I was unable to successfully install any of these versions or directories except using Erix StudioCompiler in the <code>half-life 2 deathmatch\bin</code> directory. [[User:Beeswax|Beeswax]] 17:39, 5 Nov 2007 (PST)


== MDLDecompiler known issues ==
{{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.}}
* 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|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.}}
foward/backward/whatever direction you need.
==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]]


Then in the qc add LX to the $sequence and $include lines that have the walk animations.
== External links ==
"
You can download working versions of the tools from the links below.
 
"'''unknown:''' to fix this you have to open every walk animation smd in 3ds Max or similar program, and have the
model actually move foward/backward/whatever direction. And then in the qc add "LX" to the $sequence and
$animation lines that have walk smd's."
 
"'''prall:''' if they aren't animated moving then it's coded....u can do both"


* [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.