Please note that new user registrations disabled at this time.

Some advanced help please re a known bug

This forum is to be used for all discussions pertaining to Obsidian Entertainment's Neverwinter Nights 2, the Mask of the Betrayer expansion pack, the Storm of Zehir expansion pack, and the Mysteries of Westgate adventure pack.
Post Reply
User avatar
Ashen
Posts: 984
Joined: Sat Dec 24, 2005 10:16 am
Location: Somewhere over the rainbow
Contact:

Some advanced help please re a known bug

Post by Ashen »

Solved, look below if it interests you :D

Okies, I am one of those people affected by the statue of purification bug and I actually gave up the game, I did not want to play it from the beginning (I am also affected by another one, at the same time, so you can imagine my frustration). Anyway there appears to be a solution that actually works!

~~~~~~~~~~~~~~~~~~~

1. Open your toolset.
(This is NWN2ToolsetLauncher.exe inside your NWN2 game directory.)
2. Choose File->New->Script
3. Click the "Script" tab. Should be somewhere near the tabs for "conversations" and "areas."
4. Right-click "Script 1" in that tab. Choose "Rename"
5. Rename the script to "24_p_talk_statue"
6. Copy-paste the following text into the script:

#include "ginc_debug"

int GetIsPartyInCombat()
{
object oPC = GetFirstPC();
object oFM = GetFirstFactionMember(oPC, FALSE);

while(GetIsObjectValid(oFM))
{
if(GetIsInCombat(oFM))
{
return TRUE;
}
oFM = GetNextFactionMember(oPC, FALSE);
}
return FALSE;

}

int GetIsEnemyWithin( object oTarget, float fDist)
{
object oNearest = GetNearestCreature( CREATURE_TYPE_REPUTATION, REPUTATION_TYPE_ENEMY, oTarget);

if( GetIsObjectValid(oNearest) && GetDistanceBetween( oTarget, oNearest) < fDist)
{
return TRUE;
}

return FALSE;

}

void main()
{
object oUser = GetLastUsedBy();

if( GetIsPartyInCombat() || GetIsEnemyWithin(oUser, 15.f))
{
SendMessageToPCByStrRef( oUser, 83352); //"you cannot use that item while in combat."
return;
}

ActionStartConversation( oUser);
}

7. Hit F7 to compile the script.
8. In your game directory, go to the "modules" subdirectory, and open a folder called "temp0." Your toolset needs to remain open while you do this.
9. Select the file "24_p_talk_statue.ncs" and copy it.
10. Paste that file into your My Documents\\\\NWN2\\\\Override directory.

**********

Note that in step 10 you have to access the override directory via your user folder. So open My Computer-->your Hard Drive-->Documents and Settings--><your user named folder>-->My Documents-->NWN2 folder-->override folder.

~~~~~~~~~~~~~~~~~~~~~~~~~~

Sounds simple enough ... only it's not.

Did anyone muck around with the tool set? I do not have a clue as to the 3rd step - where is the tab, between what because I only see one tab, labled script1. Also if you right click on that one, you do not have a rename option so I am missing something painfully obvious but this game frustrates me beyond belief!

Can someone give it a go and see if you can do this? Thanks!
And He whispered to me in the darkness as we lay together, Tell Me where to touch you so that I can drive you insane; tell Me where to touch you to give you ultimate pleasure, tell Me where to touch you so that we will truly own each other. And I kissed Him softly and whispered back, Touch my mind.
User avatar
Ashen
Posts: 984
Joined: Sat Dec 24, 2005 10:16 am
Location: Somewhere over the rainbow
Contact:

Post by Ashen »

Never mind, I have it and it does work.

Guh, I am really beginning to hate this game. Now off to solve the second bug I've got.

Oh if someone needs it, here it is, just stick it in the override folder.
And He whispered to me in the darkness as we lay together, Tell Me where to touch you so that I can drive you insane; tell Me where to touch you to give you ultimate pleasure, tell Me where to touch you so that we will truly own each other. And I kissed Him softly and whispered back, Touch my mind.
User avatar
Miroslav
Posts: 1
Joined: Fri Feb 01, 2013 2:09 pm
Contact:

Post by Miroslav »

Thank you so very much, Ashen! My toolset is somehow damaged and refuses to compile scripts. However, the file provided by you, worked wonders. Saved my game, man!
Post Reply