Miltiades Posted November 15, 2006 Share Posted November 15, 2006 When I double-click a .ncs file in Kotor Tool, it says that it's got an error leading nwnnsscomp and asks if it is installed in the same directory as Kotor Tool. But nwnnsscomp is installed in that directory. Help, please. Link to comment Share on other sites More sharing options...
Kaspian Posted November 15, 2006 Share Posted November 15, 2006 Do you want to decompile that *.ncs or just look into some *.nss? Edit: It's strange - my version of KT is 1.0.2210.16738, Hazard's nwnnsscomp.exe is copied in KT's directory and everything works when I double-click any *.ncs file. Link to comment Share on other sites More sharing options...
tk102 Posted November 15, 2006 Share Posted November 15, 2006 If you're unable to get KT to decompile the script for you, you can do it manually also. Extract the .ncs file to a folder and run the command line nwnnsscomp.exe utility to decompile the source code to .pcode. I believe the syntax is simply nwnnsscomp -d my_ncs_file.ncs As Kaspian intimated, you might be able to find the .nss file within the scripts.bif, or failing that, you could download the DeNCS utility so that you don't have to interpret the .pcode yourself. Sorry I can't provide direct KT assistance. Link to comment Share on other sites More sharing options...
Miltiades Posted November 16, 2006 Author Share Posted November 16, 2006 Yeah, I know how to do it manually, I just thought it was possible with Kotor Tool. @Kaspian: I have Fred Tetra's version of nwnnsscomp, not Hazard's. I've read that Hazard's only works with K1 scripts. Still, Fred's version should work properly, don't know why it doesn't. Link to comment Share on other sites More sharing options...
tk102 Posted November 16, 2006 Share Posted November 16, 2006 Hazard's version works with both (it's what I normally use), you just need to have TSL's nwscript.nss in the same folder as nwnsscomp.exe. Are you working on a computer in which TSL is installed or on an offline machine? Link to comment Share on other sites More sharing options...
Kaspian Posted November 16, 2006 Share Posted November 16, 2006 Miltiades > What is your version of Kotor Tool? I'll test Fred's compiler tomorrow (still at work) Link to comment Share on other sites More sharing options...
Miltiades Posted November 17, 2006 Author Share Posted November 17, 2006 Same as yours, 1.0.2210.16738. @tk102: TSL is installed. Link to comment Share on other sites More sharing options...
tk102 Posted November 17, 2006 Share Posted November 17, 2006 Well, hmm... have you tried reinstalling KotOR Tool? Link to comment Share on other sites More sharing options...
Miltiades Posted November 17, 2006 Author Share Posted November 17, 2006 Didn't work. I'll try Hazard's version of nwnnsscomp, see what that gives. Link to comment Share on other sites More sharing options...
Kaspian Posted November 17, 2006 Share Posted November 17, 2006 I tried Fred's compiler and it works. Next I created an empty file, put "ABCDEFGH" text in it, saved as nwnnsscomp.exe in KT's directory and guess what ... it worked No "Error launching nwnnsscomp" - scripts will not compile (tried it, system hung up). I got the error only once when my file's name wasn't nwnnsscomp.exe Link to comment Share on other sites More sharing options...
tk102 Posted November 17, 2006 Share Posted November 17, 2006 Just thought of something. Do you have a non-US version of TSL installed? There was a syntax error in nwscript.nss that was distributed to non-US version of the game (details here). If you have this syntax error, then nwnnsscomp will fail. Now if you correct the syntax error in nwscript.nss and place nwscript.nss into the same folder as the nwnnsscomp.exe, you should be in business. Link to comment Share on other sites More sharing options...
Miltiades Posted November 17, 2006 Author Share Posted November 17, 2006 Yep, I have a non-US version, but I've edited the nwscript.nss a long time ago, so that can't be the problem. @Kaspian: The filename is correct. There was something weird though. When doubleclicking the nwnnsscomp.exe in the KT map, it opens and closes very quickly. When opening it in the original map, it opens and a whole bunch of lines come up in the window, very fast and non-stop. They're both the same file, so I don't have a clue what this could be. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.