2da in Hak vs 2da in Override

Is there an obvious reason I’m missing that a 2da in a hak won’t work, but same 2da placed in user Override folder will work?

The 2da is surfacemat.2da. It defines a “snow” terrain surface. Snow is already defined in the footstepsounds.2da, and is referenced in the terrainmaterials.2da, and all three are in the hak.
When (just) in the hak, walking on the snow painted terrain will NOT make a sound.
If I take the surfacemat.2da, and place in user Override folder, then start game, you hear the crunchy snow footsteps as expected.
The hak is properly referenced by the module, no hak above it has any 2das, so not a priority issue.

I’m not sure a list was ever made, but I recall reading a few posts stating that some 2da files wouldn’t be recognized inside a hak file (unfortunately I couldn’t find the posts - all I got was this (Installation directories | NWN2Wiki | Fandom), go directly to the FAQ section and scroll up a few lines (or look for nwn2_deities.2da)

3 Likes

I think it’s because if a 2da is placed in an override, then it works at all priorities for the module, including those that may be required as the module environment loads and before it even starts to load haks. E.g. Text colour.

Your surfacemat.2da sounds like it may be one of these top level 2da requirements.

In my own testing, I found I could overcome this issue, by adding the 2da that requires the higher priority in the custom UI folder instead. E.g. nwn2_animstan and nwn2_colors had to go in my custom UI. (The custom UI is effectively another override option for these 2da and some other files that don’t work with haks. So we can avoid using the override folder where it may get muddled with other files.)

As another point of note, here is a list of 2da files that I find need to be within a hak that cannot be within the campaign folder … These NEED to be loaded before the campaign files, and so are next in priority after the override/UI options.

(After this, I have all 2da files in my campaign folder, which makes for easy patching if required.)

5 Likes

This fixed it for me, I created a folder in the UI\Custom folder and put the surfacemat.2da in there. I deleted the file from the Override, fired up the game and now get the proper sounds.
Thank you!

1 Like

That page you linked has some great information, thank you.

For my sanity, is the hierarchy:
override folder
UI folder
hak
campaign folder

Content Load Priority | NWN2Wiki | Fandom

1 Like

Nice travus, thanks. I look through that wiki frequently and haven’t seen that page :slight_smile:

1 Like