Jump to content

Home

k_inc_utility, Mika Dorin and problem


PokeO2

Recommended Posts

I have problem with this k_inc_utility file. I find bug (?) why some people dont have quest "premium merchant".

It is in k_inc_utility and look that:

 

if(nXor == 0 || nXor > 2)

{

if(GetIsObjectValid(oWay))

 

When You change "nXor > 1" now quest works OK.

 

Now question - how make this file to active when copy 'Override' folder? I cant active this file beacuse it is include - I cant compile it.

 

Help me!

Link to comment
Share on other sites

Try this:

 

extract k_inc_dan.nss and k_inc_man.nss into the same directory as your modified k_inc_utility.nss. Next, extract the following scripts into the same folder, each of which invokes the function you modified (UT_SpawnMessenger):

  • K_PDAN_RAPID01.NSS
  • K_PDAN_RAPID02.NSS
  • K_PDAN_RAPID03.NSS
  • K_PDAN_RAPID04.NSS
  • K_PDAN_RAPID05.NSS
  • K_PMAN_RAPID01.NSS
  • K_PMAN_RAPID02.NSS
  • K_PMAN_RAPID03.NSS
  • K_PMAN_RAPID04.NSS
  • K_PMAN_RAPID05.NSS

Drop a copy of nwnnsscomp.exe into the folder and recompile all .nss files using

nwnnsscomp -v1.00 *.nss

. The compiler will ignore the include files, but the newly compiled .ncs files will contain the changed function.

Link to comment
Share on other sites

Do you mean that if K_XOR_AMBUSH=1 then you do not get the script to fire? Or do you mean that you cannot get K_XOR_AMBUSH to equal 1?

 

If the latter, then there is some other script at fault, likely an .ncs somewhere. You can use NCSRip/nwnnsscomp to decompile all .ncs files and then use Windows "find" function to find the .pcode file that contains "K_XOR_AMBUSH".

Link to comment
Share on other sites

I did a search in the .nss files for K_XOR_AMBUSH and found something that didn't look right to me.

 

k_sup_gohawk.nss:

SetGlobalNumber("K_XOR_AMBUSH", TRUE);

That should probably read:

SetGlobalNumber("K_XOR_AMBUSH",1);

(the value TRUE = -1 not 1)

 

Try making that change and see if it helps. It's dependent on the boolean K_MESS_JUHANI being TRUE.

Link to comment
Share on other sites

Originally posted by tk102

Do you mean that if K_XOR_AMBUSH=1 then you do not get the script to fire? Or do you mean that you cannot get K_XOR_AMBUSH to equal 1?

 

If the latter, then there is some other script at fault, likely an .ncs somewhere. You can use NCSRip/nwnnsscomp to decompile all .ncs files and then use Windows "find" function to find the .pcode file that contains "K_XOR_AMBUSH".

 

To test I make this:

 

if(bConditional == FALSE)
{
if(nXor <= 0 || nXor >= 0)

 

and still dont work. :(

 

But as I said when manually change K_XOR_AMBUSH in save game everything works fine.

Link to comment
Share on other sites

Did you tried changing the k_sup_gohawk.nss file as suggested by TK102 just above?

 

 

Originally posted by tk102

I did a search in the .nss files for K_XOR_AMBUSH and found something that didn't look right to me.

 

k_sup_gohawk.nss:

SetGlobalNumber("K_XOR_AMBUSH", TRUE);

That should probably read:

SetGlobalNumber("K_XOR_AMBUSH",1);

(the value TRUE = -1 not 1)

 

Try making that change and see if it helps. It's dependent on the boolean K_MESS_JUHANI being TRUE.

Link to comment
Share on other sites

Look further into that script...

 

does your game meet the following condition?

                if(IsNPCPartyMember(NPC_JUHANI) &&
                  GetGlobalBoolean("K_MESS_JUHANI") == FALSE &&
                  (GetGlobalNumber("G_JUHANIH_STATE") > 5 && 
GetGlobalNumber("G_JUHANIP_STATE") < 10) &&
                  GetGlobalNumber("G_JUHANI_PLOT") == 0 &&
                  GetGlobalNumber("K_CURRENT_PLANET") != 15)

It has to in order for the g_xor to be created. I suggest also looking at this thread for tips on debugging scripts.

 

Hope you figure it out.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...