Player Modeller Compiler dosent work!!


Captain Dan
01-17-2004, 12:53 PM
I downloaded the player model compiler and saved it to my desktop, but when i click on it it opens and then shuts again. It dosent work!:(

Can someone please tell me what is wrong?

Thank You.

Sincerely,
Captain Dan

strider_d_3000
01-17-2004, 01:00 PM
...u are suppose to drag and drop the qc of the player model to it....your not suppose to click on it like it was a magical program

Trp. Jed
01-17-2004, 01:10 PM
Or run it from the command line. It doesnt have a GUI so you need to run it from a DOS window.

Either that or use HLMV as a front end.

- Jed

Captain Dan
01-17-2004, 01:45 PM
what do u mean??:confused:
Sincerely,
Captain Dan

Trigger
01-17-2004, 01:47 PM
How to add compile and decompile commands to the windows context menu:

1. Make sure studiomdl.exe (http://www.dayofdefeat.com/john/studiomdl.exe) and mdldec.exe (http://collective.valve-erc.com/data/docs/1047496381-02062100/files/mdldec12.zip) are in directories with no spaces (e.g. not c:\my documents\), the best place is in the root itself (such as c:\hltools\).

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 the folder window, then select '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 select edit, once in notepad, add the following lines, I used the path I mentioned earlier, you'll have to change it if you put yours somewhere else:
C:\hltools\studiomdl.exe %1
pause
The reason we use a batch file instead of linking to the file directly, is that the pause command keeps the DOS window open after the program is finished, allowing you to see if the model successfully compiled or what errors there were. Without the pause command, the window would close instantly, leaving you to guess what the problem may be.

Now save and close that file, and repeat the steps to make decompile.bat, you'll want it to look something like this, again you may have to change it to your own directory if you use something different:
C:\hltools\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 (My Computer or any other folder window), go to the 'Tools' menu and select '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 extention is not in the list, click the 'New' button underneath the list and enter in manually).

Click the 'New' button in the window that comes up. In that window, type 'Decompile' in the Action field, this will be the name of the command as you see it in the context-menu.

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. Now to the compile command, the process is the same as we just did for decompile: Find and select the 'qc' extension in the list and click the 'advanced' button near the bottom of the window. (If the extention is not in the list, click the 'New' button underneath the list and enter in manually).

Click the 'New' button in the window that comes up. In that window, type 'Compile' in the Action field.

Now click the 'Browse' button, and navigate to compile.bat, which should be in the same directory. Close the top two windows by clicking 'OK' to confirm.

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

Captain Dan
01-17-2004, 02:11 PM
Thanks Trigger!!

Sincerely,
Captain Dan

strider_d_3000
01-17-2004, 02:54 PM
anyone know where o get the exe for of kratisto decompiler

Trigger
01-17-2004, 06:10 PM
It comes with Milk Shape, but you can download it by itself at The VERC Collective (http://collective.valve-erc.com/index.php?doc=1047496381-02062100).

Here (http://collective.valve-erc.com/data/docs/1047496381-02062100/files/mdldec12.zip) is a direct link to the file.

strider_d_3000
01-17-2004, 06:14 PM
yes thank you trigger

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.