Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN2 SCRIPTS

- Jump to comments -
Name  Imbue Item Indexing Bug Fix
Author  Lord Grave
Submitted / Updated  01-09-2008 / 01-27-2008
Category  Skill/Feats
Type  Type - Trade Skill and Item Creation
Format  Code Only
ShowCode  

Select All Text | View Code in separate window
Patch  1.11
NWN2Game  NWN2:MotB
Description
Basic Descritpion:
This is most commonly known as "Power Essence Bug" when using Warlock's Imbue Item feat to add basic enchantments to weapons and armor with Power Essences in MotB crafting system. Although you put correct item and correct essences in the satchel, when you use Imbue Item on it you get a message saying that it is not a valid recipe. Recipes other than basic arms and armor enchantments might be affected, I didn't check. Just extract the zip file into your override folder and all recipes should work with Imbue Item next time you start the game.

Advanced Description:
This is for developers. NWN2 has a recipe index used to make searching for valid recipes faster and it is located in crafting_index.2da file. Function GetRowIndexes() is used to fetch a short list of valid recipes for the spell the player cast on the crafting container. MotB developers used this function to fool the containers into thinking that Imbue Item feat is the correct spell. Basically, their piece of code for Imbue Item feat fetches all recipes that require spells by checking if category column contains a numerical string with StringToInt() function, which will return 0 if you try to convert a non-numerical string into an integer. However, they forgot that this function will also return 0 for a '0' string, and there is a group of recipes, starting at ID 40, that requires the spell ID 0 (Acid Fog). The function will simply return a list of recipes starting form the beginning and ending just before the recipes that require Acid Fog spell, leaving slightly more than half of the list unusable for a Warlock. Instead of rewriting their code, I just altered it slightly so that it skips row 40 from the index file when checking whether StringToInt of the category row returns 0. Row 40 is the entry for spells that require Acid Fog and caused the function to malfunction. This GetRowIndexes() function is used only by a chain of functions that and with DoMagicCrafting(). Recompiled versions of all scripts that use this function are included in the zip. If your mods use this function you should recompile your scripts as well.

Files

NameTypeSizeDownloads
ImbueItemFix.zipImbueItemFix.zip
Submitted: 01-09-2008 / Last Updated: 01-27-2008
zip27.73Kb527
--
SCORE OUT OF 10
9.63
4 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (9):

Posted by Alzikar at 2012-11-07 21:24:25    Voted 10.00 on 11/07/12
Excellent fix, thank you!

Posted by player1 at 2008-03-27 13:00:45    Voted 8.50 on 01/19/08
Note that this bug is still present in 1.12 patch.

Posted by Hexidous at 2008-02-20 10:58:03    Voted 10.00 on 02/20/08
Most notable contribution Lord Grave, and thank you for the simplicity of you're effort. I often play as a WL, plagued by the bugs and shortcoming Obsidian didn't intend to serve, but unwilling to go down a path thst deviates from their vision. This aids me greatly. Thank you.
_________________________
Societies monomania of sanity is a plethra of madness in the mind of the miserable, but a manifested magnificence in the eyes of the mad.

Posted by Lord Grave at 2008-01-28 16:33:59    
Yeah, that too, but a quickfix was added for 1.10 which is supposed to remove the check from Bioware's Imbue Item feat. I didn't test it because I already used the console to give the crafting feats to my character.

Posted by player1 at 2008-01-27 23:21:10    Voted 8.50 on 01/19/08
Doesn't that link lead to custom make Imbue Item feat, made before MotB (which also didn't resolve issue with taking feat with Warlock)?

Posted by Lord Grave at 2008-01-27 17:44:44    
"both all". LOL. Excuse my French. Wish I could edit comments.

Posted by Lord Grave at 2008-01-27 17:39:35    
player1, the testing line is from the original scripter. I just uncommented it while looking for error and obviously forgot to put the comments back in place. I'll update the file right now.

Thanks for the comment, candor_lee. I have a lot of XP with coding but actually looking through code written by someone else is not my stronger side. It took me a couple of hours to track down this error but I simply had to do it because of my Warlock character :)

Posted by player1 at 2008-01-19 23:22:38    Voted 8.50 on 01/19/08
This one will really be a must have, after whole mix up with crafting feats being unavailable for warlock is fixed.


P.S.
Anyway, this testing line isn't necessary:
SpeakString("Using the override GetRowIndexes function.");

Posted by candor_lee at 2008-01-18 09:02:32    Voted 10.00 on 01/18/08
Thanks Lord Grave for this fix. No wonder my warlock always got the "Not a valid recipe" message. You must be a very talented scripter for finding out such a subtle coding error between the lines and fixing it.

You must be Logged In to post comments in this section.

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

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Plug-Ins


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters