You must set the ad_network_ads.txt file to be writable (check file name as well).
[BugFix] Dominated unselectable character fix [Archive] - Thieves-Guild.Net - Your Portal to everything Neverwinter!

PDA

View Full Version : [BugFix] Dominated unselectable character fix


Frozen Spider
04.05.08, 07:43
After being dominated, characters sometimes become unselectable. They still can be added to a party, but cannot be directly controlled. Console command do not fix it. Here is the post from Atari forum to get over it:
http://www.ataricommunity.com/forums/showpost.php?p=8293895&postcount=12
Code:

// fix_unselectable_PC
/* This script fixes the bug when party member are no longer selectable after reading cursed book in Ammon Jerro's haven ("Koba Tal Fass").

Usage:
1) Make sure you have unselectable companion in your party;
2) Bring console (~);
3) Type "DebugMode 1", hit Enter;
4) Type "printcreatures", hit Enter;
5) Look in the creatures list for ID of unselectable companion;
6) Type "rs fix_unselectable_PC ID" where ID is the ID of unselectable companion, hit Enter;
7) Type "DebugMode 0", hit Enter;

*/
// Runeshadow 07.01.2007
#include "ginc_companion"
#include "ginc_param_const"
void main()
{
object oLeader = GetPCLeader();
object oTarget = OBJECT_SELF;

if ( GetIsObjectValid(oLeader) == TRUE &&
GetIsObjectValid(oTarget) == TRUE &&
GetIsPC(oTarget) == FALSE ) {
AssignCommand(oLeader, ApplyEffectToObject(DURAT ION_TYPE_TEMPORARY, EffectDominated(), oTarget, 1.0f));
AssignCommand(oLeader, ActionCastSpellAtObject(S PELL_RESURRECTION, oTarget, METAMAGIC_ANY, TRUE));
}
}

This fix is a simple script which must be inserted into official campaign. It can be done by NWN2 Toolset which is included with the game. But beware:

WARNING: When modifying the campaign modules some changes might be done to original files. Like replacing UTC-files for example. This can be a problem if you want to patch the game in the future. So my best advice is to backup "[DIR]\Campaigns\Neverwinter Nights 2 Campaign" folder and "[DIR]\Module\0_Tutorial.mod" file.

[DIR] - folder where NWN2 is installed (example: "F:\Program Files\Neverwinter Nights 2")

To insert the script into official campaign do the following:
1) Start NWN2 Toolset;
2) Use menu "File\Open", select file "[DIR]\Modules\0_Tutorial.mod"
3) When module has opened select tab "Campaign scripts" on the left pane
4) Right-click the list of campaign scripts and select "Add" from context menu
5) Find new script (usually "Script1") in the script list on the left pane and right-click it, select "Rename" from context menu, rename it to "fix_unselectable_PC"
6) Insert the code presented here in the script, compile it (F7), must be no errors
7) Use menu "File\Save"
8) Close NWN2 Toolset

Now we go to the game:

9) Load game
10) Make sure you have unselectable companion in your party
11) Bring console (~)
12) Type "DebugMode 1", hit Enter
13) Type "printcreatures", hit Enter
14) Look in the creatures list for ID of unselectable companion
15) Type "rs fix_unselectable_PC ID" where ID is the ID of unselectable companion, hit Enter
16) Type "DebugMode 0", hit Enter

That's it. Sometimes your companion drops dead, if so he's ressurected immediately. After that he can be controlled again. Like a wish spell, baby...

İRuneshadow, with my biggest thanks to him

kgambit
04.05.08, 13:16
Great Tip, Frozen Spider.

Now all we need is a list of the companion ID's. :D