Sunjammer's Item Property Fixes 26 Dec 2008
v1.03.121
Item property availability is controlled by two files: itempropdef.2da defines all item properties (valid or otherwise) and itemprops.2da controls which item properties can be applied to which base item types. Unfortunately these files contain numerous errors which causes problems in the toolset and when scripting.
Sunjammer's Item Property Fixes corrects these files and thereby removes the rogue entries from the toolset and provides correctly formatted, reliable data for plugin development and scripting.
Getting Started
The zip file contains three sets of 2da files: NWN2, NWN2_X1 and NWN2_X2. Extract the 2da files and drop them into the ...\My Documents\Neverwinter Nights 2\Override\ folder. Alternatively extract the hak file, drop it into the ...\My Documents\Neverwinter Nights 2\Haks\ folder and then add them to your module.
Note that the override will affect all existing and new modules while the hak will only affect the module(s) it is attached to (and only once it has been attached).
Note that if you already have modified versions of these 2da files you will have to merge the changes manually.
Further Information
If you have any questions, suggestions or constructive comments in the meantime please let me know either here, on the NWN2 Forums or via my website.
Hi can i just clarify something before i download it.
I'm making a module and i've been hoping to create shuriken that returns to the owner after they throw it. Just noticed while in the toolset the boomerang option for item properties and my google search lead me to here. Will this fix this property and if so, does anyone know what it does?
I've uploaded a new version for NWN2 v1.21.1549. All of the files have changed very slightly so please download them again.
For SoZ only the itemprops.2da file changed so you will need to extract the itempropdef.2da file from either the NWN or NWN_X1 zip. If there is a demand for it I can make specific NWN2 + SoZ and NWN2 + MotB + SoZ .hak files. _________________________ Sunjammer
Code Monkey
It's mainly intended for builders, scripters and developers. While I would need to test it more thoroughly, from what I've seen the NWN2 game engine seems to do a pretty good job of ignoring invalid itemproperties so the benefit to players and DMs is probably negligible. _________________________ Sunjammer
Code Monkey
This itemproperty (#22) was deprecated by OEI almost exactly 2 years ago (i.e. before the game was released). They have never been valid in NWN2 and the only reason we can see them in the toolset is because the entry wasn't properly deleted from the 2da file. Nonetheless I carried out a quick test in game (with the OEI 2da files): the DR itemproperty does not show up in the Examine GUI and does not convey any benefit to the PC.
Unfortunately my 2da fixes alone cannot remove an instance of an invalid itemproperty from an item. They will however blank the details from the properties grid and the itemproperty listbox which should be a good indicator to a builder to remove them. _________________________ Sunjammer
Code Monkey
Vorpal and Wounding are working but they are subtypes of the "On Hit" item property rather than individual itemproperties with distinct constructors. _________________________ Sunjammer
Code Monkey
Yes, details would be good! Oh, you mean from me ...
To prevent rogue entries appearing in the toolset the following invalid item properties have been "deleted" from both files:
14 Boomerang
22 DamageReduced
25 Dancing_Scimitar
30 DoubleStack
31 EnhancedContainer_BonusSlot
42 ****
46 MindBlank
68 Vorpal
69 Wounding
76 Poison
85 ArrowCatching
86 Bashing
87 Animated
88 Wild
89 Etherealness
90 DamageReduction
In the itempropdef.2da file's CostTableResRef column all 0 values have been replaced with "****". This ensures scripters can check for an empty string before converting to an int and that OEIShared.IO.TwoDA.TwoDAColumn.IsPopulatedValue returns false for these entries. This in turn avoids rogue queries to base1.2da.
Both files are padded to the same number of rows and have been exported according to the 2DA specifications (i.e. space delimited rather than tab delimited). _________________________ Sunjammer
Code Monkey
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone