Author Topic: Making new armor pieces  (Read 328 times)

Legacy_TheButterflyEffect

  • Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Making new armor pieces
« on: June 03, 2012, 06:44:25 am »


               How the do I make new body parts and put them into a hak pak? I'm trying to make a new torso armor piece. I took the base female torso .mdl file that I want to use, then made a new .plt texture for it, gave both files a matching unique filenames and put them into the hak (they were numbered "64".) Then I tried to edit the chest parts .2da and add a line for the new piece. However, somehow, it all failed and did not work. 
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Making new armor pieces
« Reply #1 on: June 03, 2012, 07:22:46 am »


               You're going to want to edit your torso model in a basic text editor.  

Assuming you have the model in a decompiled format, it should open like a text file if you just drag/drop it into your text editor.  If it's not decompiled, I would use NWN Explorer to find the original model again, hit the ascii tab, then right-click and "Export text" (leaving off the .txt on the end and just having it as .mdl).

Once in your text editor, do a find/replace to replace all instances of the original model and texture name with what you want for your new model name/texture.  "Save as" with the new name.

For body parts (and other models), the "internal references" for textures must match the file names being used.  For body parts, the textures have the same file names as the body parts (save the file type suffix).

Oh, and you're going to need inventory icon(s) for your new armor part.  This icon should also be a plt, and the file name for that will likely be the same as the model file, but with an "i" at the front end (somebody correct me if I'm wrong on this part).

You should now be able to add your newly updated model, plt, and chest parts 2da, and inventory icon into your hak and save it.

If you haven't already, open your test module in the toolset, associate the new hak with it, and let it build (to add the hak contents).  You can cancel the "build" if you want to cut it short, it won't hurt anything.

Hopefully your new armor part will be useable.
               
               

               
            

Legacy_Jez_fr

  • Sr. Member
  • ****
  • Posts: 460
  • Karma: +0/-0
Making new armor pieces
« Reply #2 on: June 03, 2012, 03:10:24 pm »


               Besides what AD said, I would just check that there is no line number missing in the 2da. Lines must be sequentially numbered with no gap. Its easy to forget that when you begin 2da editing especially when you copy/paste a line and forget to renumber it properly.