OK, I assume you now have your custom portrait in all five required sizes, right? And all given the same name, prefixed with "po_" and suffixed with "_h", "_l", "_m", "_s" and "_t" to let the game know what size is what.
Put them in the "override" folder.
Pull the "portraits2da" from the "data" or "2dasource" folder. Open it in Notepad... If you're on NWN 1.69, make sure you have the 1.69 version (just go to the bottom of the 2da and you'll see if all the new horse portraits etc are there or not).
You'll find open lines for users to add custom portraits starting at line 572.
Add a line for your new portrait... You may find it easiest to find a line that's close to what you want and copy/paste it to the blank line. For example, if your NPC is a Human Male, find an already existing line for a human male portrait (which will likely have "hu_m_" in its name somewhere, or if it's an animal, find a dog or a boar or something, etc, etc).
Copying a line from something of the same category saves you having to bother figuring out the numbers in those lines for "sex" and "race" and stuff.
(Be aware that some specific characters, such as Aribeth, most of the HotU Drow, etc, are tagged plot specific and so if you copy one of those specific character entries, you'll find the new portrait under the "plot specific" portrait group in the Toolset).
IMPORTANT - renumber your new line appropriately, ie:- if you put it in at 572, call it 572 and delete the old, blank line 572. Then, simply replace the name of the portrait with the name of your NEW one... NOTE:- When entering the portrait name in the 2da you OMIT the "po_" prefix and all the suffixes, just enter the actual name itself.
Or, if you don't want to copy and paste, just fill in the new line entirely by hand, using an existing line of similar type to show you what to write. Again, make certain the line number and your new portrait name are correct.
Save the 2da and throw that in your "override" folder as well.
The new portrait SHOULD now be available in the Toolset amongst the category you gave it.
PHoD
Modifié par PLUSH HYENA of DOOM, 13 avril 2013 - 07:22 .