completely different order
CyrusJV
Member Posts: 36
So I have several custom armor parts mdl files, and have created a custom parts_chest.2da file.
In the toolset however, they appear in a completely different order then their mdl names.
How does the toolset read the mdl or 2da files? What makes it choose the order in which the parts are shown in the toolset?
In the toolset however, they appear in a completely different order then their mdl names.
How does the toolset read the mdl or 2da files? What makes it choose the order in which the parts are shown in the toolset?
0
Comments
Arguably, this was a spectacularly bad design decision when NWN was first made, which we seem to be stuck with.
Chest parts are the only ones whose AC is used in game, so in that special case, the order makes it easier for builders to choose a chest part for a given AC.
For all other parts, the AC is meaningless, so you can, for example, set the AC to 8.nnn, where nnn is the 2da line number, so that the toolset part number matches the 2da. Only the 2da line number is held in the .uti file for the armour, so messing with the toolset order is harmless IIRC.
You can't do that for chest parts, obviously. Loading the 2da into a spreadsheet and sorting on AC then 2da line number should give you the toolset line number, as I recall.
The .mdl file names have to match the 2da line number, of course.
Even for chest parts, the game truncates AC to an integer, so you can get a predictable sequence if you change AC for AC 0 pieces to 0.nnn, where nnn is the line number, 1 to 1.nnn and so on. I have done this in my own module to some extent.