Oops... can a Mod please rename to "Neverwinter Nights 2 - hotbars" please? 
I got NWN2 in the Steam sale and love it, however, I found that the hotbars were way too small for a magic based character.
Also the guides on the net are wrong in that they don't tell you that the hotbars correspond to pages on your main bar, so if you extend the two vertical ones to 20 slots it gets really confused and one overlaps the other.
I fixed this using a bit of logic so I now have a great setup for 1920x1200.. I thought I'd share it with those playing at around this res as it really helps..
What I've done:
Made vertical hotbar 1 2 colums by 12 slots so help it fit into the right of the screen nicely.
Made horizontal hotbar 1 and vertical hotbar 2 (now changed to *horizontal* orientation), 20 slots wide
Made horizontal hotbar 2 20 slots wide. I like this setup as I can keep all my buff-type spells close to the character panel for easy target casting, and then I can have my offensive stuff closer to the centre of the screen for convenience.
Place these xml files in your My Documents/Neverwinter Nights 2/ui/custom folder.
http://www.pianobasher.webspace.virginmedia.com/hotbars.zip
Note that this baby here:
Gives you the starting slot of the hotbar. The following numbers correspond to the first slot on a page of your main hotbar for reference.
0 = Pg1
12 = Pg2
24 = Pg3
36 = Pg4
48= Pg5
60 = Pg6
72 = Pg7
84 = Pg8
96 = Pg9
108 = Pg10
so note that if making hotbars with more than 12 slots, we need to ensure that they won't overlap.
How to customise yourself:
These are the important parts:
<UIScene name="SCREEN_HOTBAR_V1" OnAdd=UIScene_OnAdd_SetupSpecificHotbar("HOTBAR_GRID_V1",84) x="0" y="ALIGN_CENTER" width="89" height="504"
scriptloadable="true" draggable="true" priority="SCENE_INGAME" idleexpiretime="0.5f" />
<UIGrid name="HOTBAR_GRID_V1" rows=12 columns=2 x=2 y=10 xPadding=1 yPadding=1 update=true OnUpdate=UIGrid_OnUpdate_UpdateHotbarGrid(72) >
<UIHotbarButton name="HOTBAR_BUTTON" height=40 width=40 draggable=true prototype=true
The example above is making a 12x2 grid but it follows the principles below.
Note that Rows is increased for a vertical hotbar, and columns for a horizontal one (duh):
First of all, add idleexpiretime="0.5f" as above so that if you flip back to windows, you can modify the xml file, get back into the game, disable the UI elements and reload them to check your changes without quitting the game.
We can expand a hotbar by calculating the extra amount of slots (in this case each slot being 40x40), adding the directional padding and then an extra 1 for each slot. So for another 10 slots, we add 10 * (40 + 1 + 1) to the width. Then we modify rows to 22. We then make sure that this won't overlap with any other pages so choose a starting slot number (in this case 72, page 7 on the main hotbar). Simples
* This 1 seems to correspond to a 1 pixel gap inserted between the slots.
If you add extra rows or columns, you still need to take into account the extra +1 in addition to padding.
Hope this helps someone enjoy the game that little bit more, as it was driving me barmy and took a little time to figure out
Ignore my nonsensical comments in the xml files... 

I got NWN2 in the Steam sale and love it, however, I found that the hotbars were way too small for a magic based character.
Also the guides on the net are wrong in that they don't tell you that the hotbars correspond to pages on your main bar, so if you extend the two vertical ones to 20 slots it gets really confused and one overlaps the other.
I fixed this using a bit of logic so I now have a great setup for 1920x1200.. I thought I'd share it with those playing at around this res as it really helps..
What I've done:
Made vertical hotbar 1 2 colums by 12 slots so help it fit into the right of the screen nicely.
Made horizontal hotbar 1 and vertical hotbar 2 (now changed to *horizontal* orientation), 20 slots wide
Made horizontal hotbar 2 20 slots wide. I like this setup as I can keep all my buff-type spells close to the character panel for easy target casting, and then I can have my offensive stuff closer to the centre of the screen for convenience.

Place these xml files in your My Documents/Neverwinter Nights 2/ui/custom folder.
http://www.pianobasher.webspace.virginmedia.com/hotbars.zip
Note that this baby here:
Code:
OnUpdate=UIGrid_OnUpdate_UpdateHotbarGrid(72)
Gives you the starting slot of the hotbar. The following numbers correspond to the first slot on a page of your main hotbar for reference.
0 = Pg1
12 = Pg2
24 = Pg3
36 = Pg4
48= Pg5
60 = Pg6
72 = Pg7
84 = Pg8
96 = Pg9
108 = Pg10
so note that if making hotbars with more than 12 slots, we need to ensure that they won't overlap.
How to customise yourself:
These are the important parts:
<UIScene name="SCREEN_HOTBAR_V1" OnAdd=UIScene_OnAdd_SetupSpecificHotbar("HOTBAR_GRID_V1",84) x="0" y="ALIGN_CENTER" width="89" height="504"
scriptloadable="true" draggable="true" priority="SCENE_INGAME" idleexpiretime="0.5f" />
<UIGrid name="HOTBAR_GRID_V1" rows=12 columns=2 x=2 y=10 xPadding=1 yPadding=1 update=true OnUpdate=UIGrid_OnUpdate_UpdateHotbarGrid(72) >
<UIHotbarButton name="HOTBAR_BUTTON" height=40 width=40 draggable=true prototype=true
The example above is making a 12x2 grid but it follows the principles below.
Note that Rows is increased for a vertical hotbar, and columns for a horizontal one (duh):
First of all, add idleexpiretime="0.5f" as above so that if you flip back to windows, you can modify the xml file, get back into the game, disable the UI elements and reload them to check your changes without quitting the game.
We can expand a hotbar by calculating the extra amount of slots (in this case each slot being 40x40), adding the directional padding and then an extra 1 for each slot. So for another 10 slots, we add 10 * (40 + 1 + 1) to the width. Then we modify rows to 22. We then make sure that this won't overlap with any other pages so choose a starting slot number (in this case 72, page 7 on the main hotbar). Simples

* This 1 seems to correspond to a 1 pixel gap inserted between the slots.
If you add extra rows or columns, you still need to take into account the extra +1 in addition to padding.
Hope this helps someone enjoy the game that little bit more, as it was driving me barmy and took a little time to figure out


Last edited: