Hi everyone, I'm having a shitty time so here goes.
I'm trying to get a custom portrait to appear in the NPC portrait selector in the Aurora Toolset for Neverwinter Nights: Enhanced Edition, but so far I haven't had any success.
I've spent quite a bit of time troubleshooting this and have checked the HAK, portrait files, portraits.2da, override directory, and game logs. I'm hoping someone familiar with NWN:EE custom content or the Aurora Toolset can help me identify what I'm missing.
My setup
Game: Neverwinter Nights: Enhanced Edition (Steam)
Operating system: Linux Mint
Compatibility layer: Proton 8.0-5
Toolset: Aurora Toolset launched through the Steam NWN launcher
Steam compatibility data: 704450
My NWN Documents directory is:
/home/algorab/.steam/steam/steamapps/compatdata/704450/pfx/drive_c/users/steamuser/Documents/Neverwinter Nights
What I'm trying to accomplish
I want to add a custom portrait with the resref:
rs_vane
The portrait files are named:
po_rs_vane_h.tga
po_rs_vane_l.tga
po_rs_vane_m.tga
po_rs_vane_s.tga
po_rs_vane_t.tga
I created a HAK file named:
vane_portrait.hak
It contains all five TGA files and the modified portraits.2da.
What I've done so far
- Created and edited portraits.2da
I started with the full portraits.2da source available here:
https://neverwintervault.org/project/nwnee/other/nwn-ee-819334-full-2da-source
I added my custom portrait entry at the end:
16001 rs_vane 0 0 **** 0 ****
The original game table contains rows numbered 0 through 16000, so I added my portrait as row 16001.
2. Created the HAK
I used Aurora Hak Explorer to create vane_portrait.hak.
All six resources are inside:
Five portrait TGA files
portraits.2da
I can open the HAK in Aurora Hak Explorer, export any of the TGA files, and open the exported images successfully.
3. Attached the HAK to my module
I created a test module and attached vane_portrait.hak through Module Properties → Custom Content.
This is the first and only HAK I've tried using in Custom Content. There are no other HAK files attached.
I also ran the HAK conflict checker, which reported:
No conflicts to report
4. Checked the override directory
My nwn.ini contains:
OVERRIDE=C:\users\steamuser\Documents\Neverwinter Nights\override
The corresponding Linux directory is:
/home/algorab/.steam/steam/steamapps/compatdata/704450/pfx/drive_c/users/steamuser/Documents/Neverwinter Nights/override
The override directory contains only:
portraits.2da
I confirmed that the file contains my custom entry.
5. Tested changing an existing portrait entry
To see whether the modified table was being used, I temporarily changed row 1 in the HAK's portraits.2da from:
1 dw_f_01_ 1 0 **** 0 ****
to:
1 rs_vane 1 0 **** 0 ****
Nothing changed in the Toolset's portrait selector.
I later confirmed that my override copy also contains this diagnostic row.
This test may not be conclusive because I don't know exactly which copy of portraits.2da the Toolset is loading.
What I've checked in the portrait selector
I've tried all of the following:
Searching for the custom portrait thumbnail.
Searching for rs_vane by name.
Checking every gender filter.
Checking every race filter.
Combining the gender and race filters in different ways.
The custom portrait never appears.
Additional troubleshooting
I extracted the original game resources from nwn_base.key using nwn_key_unpack.
The tool was obtained from the Neverwinter.nim community tools:
https://github.com/niv/neverwinter.nim
The extracted original table is located at:
/home/algorab/nwn-base-extracted/base_2da.bif/portraits.2da
I confirmed that the original table has rows 0 through 16000, with the last entries being empty rows.
I also checked the following:
nwn.ini exists in the expected Proton Documents directory.
Its HD0, MODULES, OVERRIDE, and HAK paths point to the expected Documents folders.
The override folder contains only portraits.2da.
The HAK contains all six resources.
Aurora Hak Explorer can export the TGA files and the exported images open correctly.
Logs checked
I checked these files:
logs/nwengineLog.txt
logs/nwclientLog1.txt
logs/ScriptCompilerLog1.txt
The client log and script compiler log produced no matching portrait, 2DA, HAK, override, error, or warning entries.
The engine log contains these resource table entries:
KeyTable PORTRAITS: Entries: 1271
KeyTable PORTRAITSINSTALL: Entries: 5
KeyTable OVERRIDE: Entries: 1
It also contains an undefined alias warning:
EXOWARNING: CExoFileInternal::CExoFileInternal() Filename passed contains an undefined alias. FALSE
I don't know whether that warning is related to the portrait problem.
What I need help with
At this point, I'm not sure whether the issue is related to the HAK, portraits.2da, resource loading, or something specific to running the Aurora Toolset through Proton on Linux.
My main questions are:
Is there something specific about adding custom portraits to NWN:EE that I'm overlooking?
Does the Toolset load portraits.2da from the module HAK, the override folder, or somewhere else?
Is there a way to verify which portraits.2da the Aurora Toolset is actually reading?
Are there any known issues with custom portraits in the Linux/Proton version of the Aurora Toolset?
Is there another way to register a custom portrait so that it appears in the NPC portrait selector?
I'd particularly appreciate help from anyone who has successfully added custom portraits to NWN:EE using Aurora Toolset on Linux or Proton.
I've already checked the filenames, HAK contents, module attachment, override path, and conflict checker several times, so I'm hoping to find something I haven't considered yet.
Thanks in advance!