Model Compiler...


Strider
06-05-2003, 11:36 PM
OK, how excatly do I compile the model after I have finished tinkering with it in Milkshape...

Strider
06-05-2003, 11:37 PM
Keep in mind this is my first try at ajusting models...

06-05-2003, 11:49 PM
Have you tried to right clic on the qc. file and open it with the 1.0studiomdl? It works for me. Hope it helps...

Trigger
06-06-2003, 01:01 AM
The easiest thing to do is just make a batch file to run it, in fact, you can make it so you can compile and decompile from the context menu easy enough.

1. Make sure studiomdl.exe and mdldec.exe are in directories with no spaces, the best place is in your half-life directory or in the root itself.

2. Make two batch files in the same directory, I called them compile.bat and decompile.bat, for the sake of simplicity.

3. To make a batch file, just right click on an open space in explorer, then goto new - text document. Rename it to compile.bat, if a window pops up asking you if you want to change the extension, click yes. Now, right click on the batch file and goto edit, once in notepad, add the following lines, I put the path to where I keep my files, you'll have to change this for where you keep yours.

D:\Games\Half-Life\dod\Tools\compiler-decompiler\studiomdl.exe %1
pause

Then save and close that file, and repeat the steps to make decompile.bat, you'll want it to look something like this, again changing it to your own directory.

D:\Games\Half-Life\dod\Tools\compiler-decompiler\mdldec.exe %1
pause

4. Once that's all done, all you have to do is add the command to the context menu:

In an explorer window, goto Tools - Folder Options and click on the File Types tab on the window that appears.

We'll do decompile first, since that's the one that's got to happen first anyway. Find and select the mdl extension in the list and click the advanced button near the bottom of the window. If the mdl extension isn't in the list, add it manually by clicking the new button and typing in the mdl extention.

Click the New... button in the new window that comes up. In that window, type Decompile in the Action field.

Now click the Browse... button, and find the decompile.bat that you just made. Then close the top two windows by clicking OK to confirm everything you just did.

5. For compile, it's the same thing, just find the qc extension, and make sure you use the compile.bat. If you don't have qc in your list, you can add it manually the same way as the mdl extension.

6. Now, you can decompile and compile by simply right clicking on the right file and selecting the command you made.

Strider
06-06-2003, 10:37 AM
Thanks Trigger...

Strider
06-06-2003, 11:45 AM
So I take it I just can't use milkshape to compile the qc file??

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.