PokeO2 Posted May 18, 2004 Share Posted May 18, 2004 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 More sharing options...
tk102 Posted May 19, 2004 Share Posted May 19, 2004 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 More sharing options...
PokeO2 Posted May 19, 2004 Author Share Posted May 19, 2004 Yes, I do it, compiled without errors, copy *.ncs files to Override but still no changes. When I manual change GlobalNumber K_XOR_AMBUSH in save game it works, when I change in script - no. Link to comment Share on other sites More sharing options...
tk102 Posted May 19, 2004 Share Posted May 19, 2004 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 More sharing options...
tk102 Posted May 19, 2004 Share Posted May 19, 2004 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 More sharing options...
PokeO2 Posted May 20, 2004 Author Share Posted May 20, 2004 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 More sharing options...
Darth333 Posted May 20, 2004 Share Posted May 20, 2004 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 More sharing options...
PokeO2 Posted May 21, 2004 Author Share Posted May 21, 2004 Yes. But when I change script to "if(nXor <= 0 || nXor >= 0)" it is not impotrant if it is -1, 1 or 1000. It should works always. Link to comment Share on other sites More sharing options...
tk102 Posted May 21, 2004 Share Posted May 21, 2004 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 More sharing options...
PokeO2 Posted May 22, 2004 Author Share Posted May 22, 2004 Yes, of course. Still dont work - maybe I must start new game to enable this part of script. I dont know. I give up. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.