Decompiling/compiling models w/ the two EXE files


Genie
05-23-2003, 07:13 AM
I've done a search and I havn't found anything and yes I looked at the stickies.

I've read the readme DANZA put in the studiomdl/mdldec zip pack but for the love of uncle sam, I still can't figure out how to decompile. It says to do it in dos so I start the dos program and trying my best try to put the proper info in it's place. I've tried everything and it's not decompiling the model. I keep getting "bad command" so I'm obviously doing somthing wrong.

Any help guys?

ripa
05-23-2003, 07:27 AM
The program has to be
1) in the same location you're trying to run it from
2) in a location specified in the path environment variable
to work, otherwise the good old DOS tells you that the command is bad.

A universal solution is to put both the programs in c:\windows or whereever your Windows is installed.

Genie
05-23-2003, 12:03 PM
That, uh, sorta helps.

I mean if someone can give me an in-depth tutorial or somthing.

I know I ask alot from you guys.

Genie
05-23-2003, 12:11 PM
I tried following what is said in the readme file but it still isnt working, it says "access denied" when I try and run it.

the red text says "This folder exists. I just created it."

Trigger
05-23-2003, 01:10 PM
The easiest thing to do is just make a batch file to run it, in fact, you can make it so you can 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.

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, make sure you decompile a model and associate the qc extention with notepad.

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

JAJAHU
05-23-2003, 01:22 PM
right click compiling/decompiling owns

Genie
05-23-2003, 02:23 PM
thanks for the tutorial Trigger but there is one problem. There is no mdl extension file in the list im supposed to find it in. How can I make one properly?

Second, bat files are just plain text documents?

Trigger
05-23-2003, 03:02 PM
You need to have mdl files associated to open with HLMV, if you already do and it's still not there, there is a New button under the extension list, you can enter it manually there.

Yeah, batch files are just plain text, just need a bat extension rather than txt.

Genie
05-23-2003, 03:18 PM
WELL SLAP ME SILLY WITH AN ALAZKAN TROUT AND CALL ME HILLBILLY BOB, I THINK I GOT IT.

Thanks alot Trigger, I think I got it :D

yes right click decompile/compile does rule



EDIT

The decompile works but the re-compile doesnt. any help?


EDIT #2

I'm an idiot, I didn't see that u had to make the qc w/ the compile extension, my bad

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.