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.
Importing custom NPC portraits ??
Débuté par
Groove Widdit
, avril 12 2013 09:16
#1
Posté 12 avril 2013 - 09:16
#2
Posté 12 avril 2013 - 11:57
Simply place the 5 images that make up a portrait into your NeverwinterNights\\NWN\\portraits folder. It should now be available to use.
TR
TR
#3
Posté 13 avril 2013 - 05:39
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?
#4
Posté 13 avril 2013 - 05:42
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.
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 .
#5
Posté 13 avril 2013 - 06:53
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.
#6
Posté 13 avril 2013 - 07:16
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
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 .
#7
Posté 13 avril 2013 - 10:45
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
Hope this helps and makes up for my error.
TR
#8
Posté 14 avril 2013 - 05:27
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!)
(Tarot, I don't think anyone expects us to be infallible... do they? PANICS!)
#9
Posté 14 avril 2013 - 10:50
Ha ha. Don't panic. Thanks for helping me with this.
#10
Posté 15 avril 2013 - 02:04
No problem.
#11
Posté 16 avril 2013 - 07:10
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.
#12
Posté 16 avril 2013 - 10:15
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
TR
#14
Posté 17 avril 2013 - 04:30
That ought to do it. (JPG definitely will not work.)
#15
Posté 17 avril 2013 - 10:27
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.
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 .
#16
Posté 18 avril 2013 - 07:10
I got the portraits to work (albiet upside down - that's easy to fix) for player characters by putting them in portraits, so I know the tgas I have are okay. But they still don't appear on the list in the toolset. I changed line 572 in the portraits file in 2daSource and also copied portraits into override and put the five tgas in override.
Here's my new line:
572 hu_m_insaneclown_ 0 6 **** 0 ****
Here's my new line:
572 hu_m_insaneclown_ 0 6 **** 0 ****
#17
Posté 18 avril 2013 - 07:13
The spaces in line 572 didn't come through on the above post. I did put spaces between the elements.
#18
Posté 18 avril 2013 - 07:31
Groove Widdit wrote...
hu_m_insaneclown_
That there is already 17 characters long. A ResRef has a max length of 16 characters. SO you will need to shorten that to at least 15 characters assuming the game is adding only a single digit to the resref base
#19
Posté 18 avril 2013 - 11:16
It still isn't showing up on the list. I changed the two portraits files to this:
572 hu_m_inscln_ 0 6 **** 0 ****
572 hu_m_inscln_ 0 6 **** 0 ****
#20
Posté 18 avril 2013 - 11:17
Except with the appropriate spaces.
#21
Posté 19 avril 2013 - 02:44
Are you using haks with this module? If so, make sure they don't have a portraits.2da file within, or it will be used instead of the one in your override folder.
FP!
FP!
#22
Posté 19 avril 2013 - 05:19
No haks with this mod, just the game folders.
#23
Posté 19 avril 2013 - 11:44
@Groove Widdit As there is a whole chapter on making and adding portraits in the Custom Content Guide it might be an idea to check in there for your problem, if you have not done so already. If the problem persists, by all means ask again in here (although this problem is actually more suited to the custom content threads). In any case let us know your progress.
TR
TR
#24
Posté 19 avril 2013 - 09:51
Thanks, Tarot, that's a great resource. Xnview is awesome too. Thanks everyone for helping me. I guess this isn't going to happen without a hakpak. I just can't make it work with the regular game files.
#25
Posté 20 avril 2013 - 10:11
You're welcome and drop in on the custom content threads, there are other tools that you might find useful listed and linked to on there, you just got to look (
).
TR
TR





Retour en haut






