Author Topic: Custom NPC Portraits  (Read 488 times)

Legacy_redmokah

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Custom NPC Portraits
« on: March 07, 2011, 09:54:33 pm »


               This is frustrating me beyond belief haha. For some reason, I can't import custom portraits into my module correctly.
I've done all the steps: naming, editing portraits.2da, merging into a hak pak etc.

Only one of my portraits is showing up. In the 2da table, she's listed as female, halfling, non-plot. But she only shows up when I have the female checkbox selected. I can't find her in any other category.

None of the other two portraits show up at all. They're named exactly the same with one word being different.

ex. po_nameHere_h, po_nameHere2_h etc.
This should work shouldn't it? Or must I rename the files using the NWN convention:
ex. po_elf_f_939_h


Edit: I was able to get the three portraits to show up. I did this by setting the plot box from "****" to 0. However they still don't show up in their respective race filters; only in female.
               
               

               


                     Modifié par redmokah, 07 mars 2011 - 10:13 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Custom NPC Portraits
« Reply #1 on: March 07, 2011, 11:38:31 pm »


               Do you have the other sizes to go along with the h size also?  It should work as long as your po_name_ is no longer then 15 character long and you are getting your 2da lines right.  I am not certian but you may also have to place the portraits into the override folder or a .hak I am not sure if they work from the portraits folder.
let see the 2da  collonms are.
BaseResRef     
Name of the Portriat .tga without the po_   and Size character. 
This means that max lengeth for the entry is 12 characters long.

Sex    
indice into gender.2da.
  
Race 
indice into  racialtypes.2da
   
InanimateType
indice into placabletypes.2da
     
Plot   
0 if all PC's can use it.
1 If only NPC's can use it. 
**** if it is a placeable. 
also determines if the portriat shows up under plot in the toolset when selecting catagories. 
  
LowGore  
Portrait to use if low gore is enabled. 
if **** there is no low gore option.  
               
               

               
            

Legacy_redmokah

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Custom NPC Portraits
« Reply #2 on: March 07, 2011, 11:55:40 pm »


               I never knew about the character limit. My naming convention might just be too long. Let's see...

I've shortened portrait one to conventional naming standards: po_ha_f_101_x
and it seems to have worked. The portrait shows up in the halfling and female filter as well.

Thanks for the help! (:

I personalized the naming structure because I was afraid of conflicts. Plus it's difficult to tell who/what the portrait is from the abbreviations.

Oh and custom portraits will not show up in the selection if you just put them in the portrait folder. You must integrate them into the module using a .hak. I'm only referring to tooset portraits of course and not PC portraits.
               
               

               


                     Modifié par redmokah, 07 mars 2011 - 11:57 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Custom NPC Portraits
« Reply #3 on: March 09, 2011, 07:03:42 pm »


               This screwed me up as well. The character limit was a tricky one. But you can quickly spot it when you look in the HAK file.