Author Topic: Importing custom NPC portraits ??  (Read 1848 times)

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Importing custom NPC portraits ??
« on: April 12, 2013, 10:16:31 pm »


               Anyone know how to import a custom character portrait? Seem like it should be easy, but there's no browse option on the properties - appearance thing for loading the picture. Thanks, if somebody can help me out on this.
               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #1 on: April 13, 2013, 12:57:32 am »


               Simply place the 5 images that make up a portrait into your NeverwinterNights\\NWN\\portraits folder. It should now be available to use.

TR
               
               

               
            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #2 on: April 13, 2013, 06:39:17 am »


               I'm sorry I have no idea what you mean. I found the portraits folder and put the image in there, but it's not showing up on the lists. What 5 images?
               
               

               
            

Legacy_PLUSH HYENA of DOOM

  • Hero Member
  • *****
  • Posts: 995
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #3 on: April 13, 2013, 06:42:07 am »


               Throwing them in the protraits folder would work for PC portraits, but if as the thread title suggests this is for an NPC, to make the portrait available in the Toolset to apply to an NPC it would have to be appended to the "portraits2da".

In brief, that means getting the five images that comprise the portrait (some NPC portraits only have four, so don't panic if you appear to be missing one) and placing them within whatever hak you have containing portraits or, alternatively, throw them in the NWN "override" folder. (I've not tried putting any NPC portraits in the portraits folder so I can't say whether that would work or not but I THINK it's only for PC use).

Then find the "portraits2da", either from the BioWare source or the hak version if you're using a hak containing a portraits2da. Add the NPC portrait name on a free line; it's a pretty simple 2da so looking at other entries should show you all you need to know. Save the 2da, add it to your hak and the NPC portrait should now be available in the Toolset. If, for example, you listed the portrait as an "animal", it'll show up in the section with other animal portraits, if you tagged it as an "Elf, female" it'll appear with other elf females, etc, etc...

(In Toolset, portraits are selected via the "edit" tab that you see by the Creature's portrait... Incidentally, if you list a specific portrait for a custom creature in the appearance2da, it'll show up on that creature automatically).

(IN ANSWER TO SECOND QUESTION WHICH CAME IN AS I TYPED THIS ENTRY - The five images are, essentially, all the same one in a range of sizes as the portrait will appear in different places within the game at different sizes and each size must be included in the "portrait", though as I say, some NPC portraits dispense with the largest which are mostly only used by PCs).

If you're new to NWN and none of this helps / makes sense, please explain EXACTLY what it is you're trying to do and I (or more likely someone else online when you ask) will thus know exactly what answer you need.
               
               

               


                     Modifié par PLUSH HYENA of DOOM, 13 avril 2013 - 06:04 .
                     
                  


            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #4 on: April 13, 2013, 07:53:37 am »


               I am making a module and I'm creating a custom NPC and I'm trying to give him a custom portrait, as opposed to the standard game ones on the lists. I don't want to use any hak paks. I don't care if it appears in any category, I just want to get it on the guy's face. I'm hip to the different sizes, now, as I have been googling this subject for the last hour.
               
               

               
            

Legacy_PLUSH HYENA of DOOM

  • Hero Member
  • *****
  • Posts: 995
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #5 on: April 13, 2013, 08:16:48 am »


               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 .
                     
                  


            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #6 on: April 13, 2013, 11:45:14 am »


               Ooops, my bad.sorry about that. My excuse was it was late and my brain was no longer fully in gear. To make up for it here are three links to tutorials (2 from the vault) on the subject. The first is by Conjumen (also read the coments underneath). The second is by Lodrezzon. Both of these have downloadable content. The last, on the other hand is just a tutorial on a web page (and not on the vault) and is written by Apricane.

Hope this helps and makes up for my error.

TR
               
               

               
            

Legacy_PLUSH HYENA of DOOM

  • Hero Member
  • *****
  • Posts: 995
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #7 on: April 14, 2013, 06:27:43 am »


               Yes, those tutorials ought to cover any eventuality I failed to think of in the above drivel...

(Tarot, I don't think anyone expects us to be infallible... do they? PANICS!)
               
               

               
            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #8 on: April 14, 2013, 11:50:53 pm »


               Ha ha. Don't panic. Thanks for helping me with this.
               
               

               
            

Legacy_PLUSH HYENA of DOOM

  • Hero Member
  • *****
  • Posts: 995
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #9 on: April 15, 2013, 03:04:05 am »


               No problem.
               
               

               
            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #10 on: April 16, 2013, 08:10:24 pm »


               I can't get it to work. The portrait just isn't on the list in the toolset. I think the most likely cause is the five portraits are saved as jpg instead of tga, but my image processor doesn't have that save option.
               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #11 on: April 16, 2013, 11:15:33 pm »


               That would definitely be a problem. Don't Panic. Any decent image viewing program these days has an option to save as. The one that I use is XnView. I use it because it respects transparency. As an aside, thanks to you having this problem I have just updated my copy to v2 from 1.99 ('^_^').

TR
               
               

               
            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #12 on: April 16, 2013, 11:23:53 pm »


               <making a subtle...>

GIMP is also free and should be in everyone's toolbox, IMO.
Just drop the images in the GIMP window and export them, changing the suffix to tga.

<...pointing motion as he fluffs his mustache>
               
               

               
            

Legacy_PLUSH HYENA of DOOM

  • Hero Member
  • *****
  • Posts: 995
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #13 on: April 17, 2013, 05:30:46 am »


               That ought to do it. (JPG definitely will not work.)
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Importing custom NPC portraits ??
« Reply #14 on: April 17, 2013, 11:27:35 pm »


               Why not just use the nwn client to create all of the portriats.  

Just place your .jpg into your portraits folder, then open up any module in single player mode. 
 

Type the following on the chat line

##DebugMode 1
##ConvertPortrait  FILENAME

Also make sure that the jpg file name is all lower case and 11 characters or less.
               
               

               


                     Modifié par Lightfoot8, 17 avril 2013 - 10:29 .