Author Topic: Convert to ascii  (Read 593 times)

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Convert to ascii
« on: July 11, 2011, 02:30:02 am »


               Im have a hell of a time figuring out how to convert the mdl files to ascii as shown in the Custom Content Guide 3.0

Telling me to....

Run NWNMdlComp –d wplss_t_031 on the binary
model file to convert it to an ASCII model file (it should
have the name wplss_t_031.mdl.ascii).

I can't figure out how I do this.

Can anyone help me out?
               
               

               


                     Modifié par Sydious, 11 juillet 2011 - 01:30 .
                     
                  


            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
Convert to ascii
« Reply #1 on: July 11, 2011, 02:53:13 am »


               If you use a tool like NWN Explorer Reborn, it's very easy.  Just find the model you want using the tree list on the left hand side of the window and double click on it.  Once the model is loaded, look at the bottom of the 3D preview window and you'll see a tab marked "Model" that's highlighted.  Just to the right of it is another tab titled "ASCII Model".  Click on that and you'll be staring at the ASCII version of the model.  To save it out, just right click on the "ASCII Model" tab at the bottom of that window and select "Export Text" which will bring up a Save As... window.  I always delete the .txt extension on the models when I save them.  I have .mdl filetype associated with Notepad so I and NWN can open them up without having to do lots of renaming back and forth.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Convert to ascii
« Reply #2 on: July 11, 2011, 03:06:27 am »


               There is also a front end for Torlacks compiler that is GUI based and can decompile and compile models in the thousands.

However some things have broken it for me recently.  Program is called CompDComp.
               
               

               
            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
Convert to ascii
« Reply #3 on: July 11, 2011, 03:10:10 am »


               the .asci bit is not necessary, and will not always occur.

If the mdl is already in ASCII form, then it will appear as if the conversion failed, when in actuality, the file was already in ASCII format.

Check the mdl first by using notepad or any other .txt editor.

One other thing, I typically use NWN Carotes to process the files for me.  While it is a french program, it does the job very well.  It comes with an english "NWN carottes help.txt" file which explains how to use it.  It has 3 buttons, "Valider" which validates which files in the input folder are actually compiled, and "Executer" which will be greyed out until you press the first button.  Once it is enabled, the program will execute nwnmdlcomp for you in a series of cmd prompts and convert the necessary mdls and place them in the output folder specified.

What I do is validate, execute, then copy every thing from intput to my working folder, and then copy everything from the output folder to same folder, overwriting everything.  This will leave you with ALL ascif files in your working folder, none of which will have the .ascii extension, but all of which WILL be in ascii format.
               
               

               


                     Modifié par Bannor Bloodfist, 11 juillet 2011 - 02:12 .
                     
                  


            

Legacy_Sydious

  • Full Member
  • ***
  • Posts: 116
  • Karma: +0/-0
Convert to ascii
« Reply #4 on: July 11, 2011, 03:11:53 am »


               

OldTimeRadio wrote...

If you use a tool like NWN Explorer Reborn, it's very easy.  Just find the model you want using the tree list on the left hand side of the window and double click on it.  Once the model is loaded, look at the bottom of the 3D preview window and you'll see a tab marked "Model" that's highlighted.  Just to the right of it is another tab titled "ASCII Model".  Click on that and you'll be staring at the ASCII version of the model.  To save it out, just right click on the "ASCII Model" tab at the bottom of that window and select "Export Text" which will bring up a Save As... window.  I always delete the .txt extension on the models when I save them.  I have .mdl filetype associated with Notepad so I and NWN can open them up without having to do lots of renaming back and forth.


Awesome. Thanks OldTimeRadio. MUCH easier that way. Im new to all this and I have some ideas I want to try out.

I did some modeling in Blender in the past and wish I could use that for my needs, but the neverblender stuff confuses me too.

I see a lot of tutorials for gmax and nwn so I will have to learn how to do that.

Got past this step...now I press forward. Thanks again for your help.