Jump to content

Home

Compiling problems


Kalos

Recommended Posts

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

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

Archived

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

×
×
  • Create New...