Kalos Posted January 4, 2008 Share Posted January 4, 2008 I'm having problems in compiling scripts that are giving me a headache. None of the compile programs work for me. KOTOR tool gives me and Error that says "Error: Unable to open the input file". I downloaded HazardX's compiler, and extracted nwscript.nss into the same directory as nwnnsscomp.exe. I tried all three compile methods listed, and they all give me the same result: Quote: Unable to locate or open Neverwinter Night This is my script: void main() { object oLocker = GetItemPossessor(GetObjectByTag("a_band_c01")); if (GetIsObjectValid(oLocker)) { CreateItemOnObject("exiletunic", oLocker); } } I want to put a uti file I made that works and everything titled exiletunic.uti into the exile's room. Link to comment Share on other sites More sharing options...
Ferc Kast Posted January 4, 2008 Share Posted January 4, 2008 Did you try compiling it with TSLPatcher? Because it compiled it for me perfectly when I was trying to find the problem of your script. Link to comment Share on other sites More sharing options...
Kalos Posted January 4, 2008 Author Share Posted January 4, 2008 You can compile scripts with TSL patcher?! o_O Link to comment Share on other sites More sharing options...
Ferc Kast Posted January 4, 2008 Share Posted January 4, 2008 Yes, it does. If one reads the pdf included with the TSLPatcher , one would realize that it can compile scripts (and how to compile them with it). But, who would ever read the readme? Link to comment Share on other sites More sharing options...
Kalos Posted January 4, 2008 Author Share Posted January 4, 2008 I love you. Thank you so much. Link to comment Share on other sites More sharing options...
stoffe Posted January 4, 2008 Share Posted January 4, 2008 You can compile scripts with TSL patcher?! o_O It uses a special version of nwnnsscomp, that tk102 was kind enough to make, to compile scripts (usually after it has done token substitutions in the source code). This compiler utility can be used stand-alone as well though. The major differences of this version compared to the one that comes with KotorTool is support for constants and simplified file lookup: It will always look for nwscript.nss in the same folder as the nwnnsscomp.exe file, and it will look for include files used by scripts in the same folder as the script it's trying to compile. Other than that you can run it from the commandline (or set up a macro in your text editor) as usual: nwnnsscomp.exe -c filename.nss Link to comment Share on other sites More sharing options...
Darth InSidious Posted January 4, 2008 Share Posted January 4, 2008 You can also use KotOR Tool's Projet Manager, which I've found much more reliable than HazardX's compiler, in terms of operating on XP computers. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.