NWN compDcomp is a front end for Torlack's model decompiler and compiler for Neverwinter Nights. This is to help in converting mdl's from binary to ASCII and ASCII to binary. It can be ran both ways. With the simplicity of two simple buttons. Since the mdl binary format isn't supported by most modeling programs, you will need to convert them from binary to ASCII which is supported by almost all modeling programs. And since it would only make sense to change a ASCII file to binary for ease of game play, it can do the recompiling as well. We decided that Torlack had done a fine job with his compiler/decompiler, that with a little help we could make it much more user friendly. That we have done. .
Now with updated program Version 1.03. Added right-mouse click menu to the file list box for copy, rename and delete.
Is there any other download mirror that we can use for the moment?
If not, I'd be happy to host it for you until they get this fixed. Just let me know.
I have uploaded a complete, original, copy of this file as it existed in July 0f 2009, to the vault FTP site, and notified BeyondthePale that the file is there to replace this one. Hopefully, it won't take long for it to be moved over here.
Posted by Tukaram at 2011-01-25 11:47:30 Voted 3.00 on 01/25/11
Endlessquests c/o Ancient Dragon Please check into this
Unexpected end or archive CRC error in this file. Maximus we need a new copy posted! _________________________ Link
Posted by Anonymous ( 70.135.xxx.xxx ) at 2006-05-22 23:55:33
Nope, the link does NOT work anymore... I would also like to see this file re-appear!
Posted by kenrw24 ( 68.227.xxx.xxx ) at 2005-01-25 16:06:00
Is it just me or does the download link not work again? I'd like to download this if at all possible. Thanks.
Posted by XE-Ryder KoJ ( 207.175.xxx.xxx ) at 2004-09-14 09:49:00
How I Use The NWN Model Compiler / Decompiler
(maybe this will help you out)
First off, props to Torlack for bothering to build this app, or we wouldn�t be having this convo! Thank you for the effort and posting it for all! There is a GUI front end for this app out there, but the links seem broken, so here is the old school way to process files:
This will assume your data is on the C drive, and that you can manage files pretty well in Windows Explorer (not Internet Explorer). If you can�t get a friend to help, better yet, if you can work in DOS or they can, this is cake. You might find it helpful to print this page before starting.
Let�s get ready to use the program first by making three folders. On your C drive root make a folder called �MdlComp�, which we use as it is under 8 characters for the win98 folks. Now put NWNMdlComp.exe in this folder. Next make two folders in the MdlComp folder; one called �Ascii� and another called �Binary�.
Place the files you want to process in the correct folder. If you can open and read a Mdl file with notepad, it is an Ascii file, if it looks like a stream of cartoon curses, it is in Binary! Place your files in the respective directories.
Now we will use the Start menu to find the Command Prompt or MS-DOS shortcut. It will probably dump you off with a black screen and something like this:
�C:\Documents and Settings\(your username here) John Doe>� with an ominous flashing cursor.
You will need to type in some commands and most of the time it is not cap sensitive. I have capitalized for clarity mostly. Type in �CD\� and hit enter. Now you have just �C:>�. Now type in �CD MdlComp� hit enter. Now you have �C:\MdlComp>� Now you are finally ready to process your files.
If you are Compiling, and want to do them all, type this: �NWNMdlComp �ce Ascii\*.mdl Binary\� and don�t miss a character or nothing happens. This command will compile everything if finds in the Ascii directory and dump it in the Binary directory.
If you are Decompiling, and want to do them all, type this: �NWNMdlComp �de Binary\*.mdl Ascii\� and don�t miss a character or nothing happens. This command will compile everything if finds in the Ascii directory and dump it in the Binary directory.
Once you are finished using the program type �Exit� and hit enter and you are back to your desktop if you ran a full screen window.
Your models will be left in the original directory, and watch real close for errors during processing. You can watch the errors by Clicking and Holding the DOS window scrolling bar, manually moving it up and down during processing, which seems to pause it momentarily. I tap the �Print Screen� key and then real quick hit �Alt, E, P� to paste the images into my favorite photo program. It seems to be the only way to get all the errors documented before the text buffer wipes them out. I mean that when you process 1000 files, you can only scroll back like 300, so who knows what the others did right?
I have found that models with some booboos in them don�t compile well, and once compiled can crash the toolset. God only knows what they would do in game. The bottom line is, if you build your model correctly and get clean exports, this compiler will do a fabulous job. If you leave unwelded faces and extra vertices, it is going to flip out and whack the model to shreds trying to fix it. That being said, remember this is Not a model repair program, it will only compile and decompile clean models. I would personally recommend using NWN Explorer to decompile them, unless you are doing a pile of them. Click the �Ascii Model� button, then on the Resource menu choose �Export Text�.
I will probably not be browsing back here again, but saw the comments and wanted to try and help those who posted. You can contact me by mail if you have a question.
XE-Ryder KoJ
Posted by Blackblade ( 24.119.xxx.xxx ) at 2004-09-11 09:27:00
Like this guy said, the link is not working.(i went to Endlessquests and signed up to join, and they never responded with a confrimation e-mail, so I cant download it from there Ether)
Posted by Sykskar ( 81.138.xxx.xxx ) at 2004-07-18 07:19:00
This is a compilation of the old system into a single score. There were 6 that made this score of 8.17 then rounded to 8.
Posted by Ancient Dragon ( ..xxx.xxx ) at 2003-05-30 18:57:00
to Kitsuneko: I am sorry you were unable to get the program to work correctly. Did you actually look at the files in the output directory? The file names will indeed be the same, but the contents and file sizes are different. If they are the same as the input directory, please e-mail me one or two of your files so that I can test them with the program. That way I can find out what went wrong and correct the problem. Thanks.
Posted by Kitsuneko ( ..xxx.xxx ) at 2003-05-19 15:11:00
I just don't get it. Did I do something wrong?
Here's the thing. I put a mdl file to input folder, then decompile it to ascii file. So far so good? Nah. Output folder contains the same mdl file. Nothing happened.
nwnmdlcomp didn't work much better. It just said 'unable to open input file'.
I have tried with various files but always same thing.
Tch..
WHY ME? Am I only one who cannot get simple stupid program to work properly?
...sorry for bad english... tch..
Posted by Bent_Spear ( ..xxx.xxx ) at 2003-03-25 04:34:00
Sorry, I can't get this program to work properly. I use Milkshape and I can convert the files from binary to ascii properly (I assume, they do go from the input to the output folders). However, when I try to open the now-ascii files in Milkshape, it hangs for a long time, then closes down on an error. Any idea what I can do about it?
Posted by lllsnakeeyeslll ( ..xxx.xxx ) at 2003-03-23 23:47:00
Heh, Need to learn to slow down and read what is in front of me, I mean good going Ancient Dragon, and nice ideas Sparhok :) hehehe
Posted by lllsnakeeyeslll ( ..xxx.xxx ) at 2003-03-23 23:45:00
Sparhok,
I like what your doing, go for it. When I wrote the ObsidianSS program, it was just to play around with C#. :)
And yes, it took longer to run becuase it was doing more to the files than simple search and replace. The scaling required some regular expression pattern matching and then running multiplication on each line that needed to be scaled. I really didnt build it for speed either, so if you can make something faster and has a few more features like file conversion, more power too you, looks good too :)
Posted by Sparhok ( ..xxx.xxx ) at 2003-03-23 23:09:00
Cool...works great! :)
Another idea :)......it would be nice to quickly change the skins. I know this is what ObsidianSS does but...what if I'm testing a texture... I'd have to open ObsidianSS and then go over the stuff. I jsut think this would be a cool thing to add to 1.04 :)
I'll let ya know if I think of somethin else :)
Posted by Ancient Dragon ( ..xxx.xxx ) at 2003-03-23 13:54:00
Sparhok: Your wish is granted! I added three new options in version 1.03: Copy, Rename and Delete.
WARNING! You use these options at your own risk! Be sure you make a backup copy of the *.mdl files first.
Posted by Sparhok ( ..xxx.xxx ) at 2003-03-23 00:29:00
I have a feeling this is going to turn into a MDL Manager prog :)
One idea I have is a quick way to rename an mdl....The use would enter the new name into a text field and then all it would have to do is get the file name...then open the file and replace all instances of the file name with the text entered in the text field. Then it would rename the mdl itself. :) I use ObsidianSS right now but that takes too long too load...dunno why, proly coz it has so many features.
Posted by Ancient Dragon ( ..xxx.xxx ) at 2003-03-22 16:12:00
If anyone has more suggestions that you want to see in this program, please post them here. I have already added some new things, like choosing the source and destination directories, and tool tips (help messages) that appear when the mouse is held over a button for about 1/2 second. If you want more functionality just let me know.
Posted by lllsnakeeyeslll ( ..xxx.xxx ) at 2003-03-22 09:17:00
Ice-Child & Suedomsa & Mel,
Very cool, Im working on getting out a cross-platform java version of a GUI for this as soon as I get the converters ported to Java. Maybe in a few weeks, then the linux folks will be able to play too :)
Posted by Ice-Child ( ..xxx.xxx ) at 2003-03-21 22:57:00
Thanks to all. It worked great as it was. But got tired of using comand prompt. So Mel made a front end for us. But he made a newer one yet. Only thing is we need Maximus to resend the password so I can update it with the latest and greatest version. You will like thenew one even better.
Rob
A.K.A.Ice-Child
Posted by Deltor ( ..xxx.xxx ) at 2003-03-21 12:57:00
thanks for sharing this one!
Posted by Sparhok ( ..xxx.xxx ) at 2003-03-21 12:32:00
Good job! :) I've been waiting for this a long time.
btw sorry about the previous post
Posted by Lost Dragon ( ..xxx.xxx ) at 2003-03-21 12:28:00
Cool. Saves me the trouble of making a batch file :)
Posted by Doyleyboy ( ..xxx.xxx ) at 2003-03-21 11:27:00
thanks alot for this, ive been waiting a long time for something like this
Posted by Stryderdy ( ..xxx.xxx ) at 2003-03-21 10:33:00
You folks are making life just too easy ... (Grin) ... Tnks