DW, on my computer, my BG2 directory is located at D:\GAMES\BG2. There are many subdirectories from there, including D:\GAMES\BG2\DATA, D:\GAMES\BG2\OVERRIDE, and D:\GAMES\BG2\PORTRAITS. The file called PORTRAITS.BIF is sort of like a .ZIP file that contains all of the standard portraits. Other .BIF files serve a similar purpose (they contain items, spells, etc.). The game automatically extracts portraits from the .BIF file as needed. Portraits that are not contained in the PORTRAITS.BIF file (custom portraits, for example) are loaded from the \PORTRAITS directory as needed. I assume that whenever a file is extracted from a .BIF file or called upon from the \PORTRAITS directory, it is automatically replaced by a file with the same name if it exists in the \OVERRIDE directory.
When I did my own thing (as I described above), I was surprised to find that the Xan portrait found in the PORTRAITS.BIF file was overridden by a custom portrait that I placed in the \PORTRAITS directory but did NOT place in the \OVERRIDE directory. Apparently, the \PORTRAITS directory also acts like an "override" directory. I had assumed that the "overriding" file was supposed to be placed in the \OVERRIDE directory, but as it turns out, that was not necessary, at least not in my case.
As for "what you should do next", all I can suggest is that you place your custom portrait files in the \PORTRAITS directory and then restart the game and see what happens. That's what worked for me.
In my current installation, there are many different mods installed, including other NPC mods besides Xan, such as Tsujatha, Yasreana, Saerileth, Keto, and Kivan. The only thing that makes my installation a bit "unusual" is that I'm playing the game from a backup copy; the game was not actually "installed" on my current hard drive. Therefore, there isn't any information about the game in my Windows Registry, such as the "path" (which is the only important piece of information the game stores in the Registry; the rest is trivial). My BALDUR.INI file specifies the "path" to the game directory on my hard drive (which eliminates the need for a Registry entry). Since I copied all of the data files to the \DATA directory where they can be loaded from the hard drive instead of from CD, I eliminated the "path" to my CD drive. Therefore, my installation does not try to extract portraits from the PORTRAITS.BIF file that is stored on the CD (it doesn't know where to find the CD since the "path" is not specified). That's the only difference I can think of when it comes to the issue of NPC portraits. I also consolidated all of the data files into one \DATA directory instead of leaving them in separate directories for each CD (CD2, CD3, etc.), so there is only one "path" to all of my data files (D:\GAMES\BG2\DATA). Otherwise, I don't know why your game acts differently than mine.
If you want to try to set up your game the same way I've set up mine, I can give you instructions, but I don't know how easy they would be for you to follow.
dragon wench wrote:I have tried searching for the PORTRAITS Directory you mention, but other than the folder I use for regular custom portraits that I give to my PCs (and I doubt this is the one you mean), I can't find anything like what you mention...
Or at least, I went to a folder named "data" and I did find something called "25Portrt.bif" but I have absolutely no way of opening it....
I was referring specifically to the \PORTRAITS directory, which in my case is located at D:\GAMES\BG\PORTRAITS.
.BIF files can be opened by an Infinity Engine game resource viewer such as ShadowKeeper, Infinity Explorer, or NearInfinity. Those programs extract files from the various .BIF files transparently (meaning that as far as the person using the program is concerned, all of the individual items, creatures, spells, etc. can be seen individually), and they have the ability to "export" individual items to a separate file on your hard drive. For example, if I want to edit a weapon, I can extract the original file with ShadowKeeper and then proceed to edit it with another program. In the "old days", people used .BIF "extraction programs" to export individual files, which was sort of a brute force approach.
I used NearInfinity to look at Xan's .CRE file, which told me that he uses the portrait that is located inside the PORTRAITS.BIF file. But I did not actually open the PORTRAITS.BIF myself
per se.
By the way, which portrait did you select for Xan? Can you upload it for us?