Jump to content

Home

NSS Script Compiler tool problem...


skunk12

Recommended Posts

I think it might just be(I hope this isn't somewhere else on the fourm.....I tried searching but it sayys something about nss being under the word miniumum or sumthin'),but whenever I try using the compiler,it says "Error:Unable to open output file "Override\*".I'm using this with Doom_Dealer's tutorial. Please help.

Link to comment
Share on other sites

For some reason a lot of people are afraid of the command line, and yet many KotOR utilities are command line utilities... but of course not you Vor :) :) :)

 

Here's what I do, Vor. I make a new (temporary) folder. I drop nwnnsscomp.exe into it along with any .nss file that I want to compile. Then I open a command prompt in that folder. Next I type 'nwnnsscomp -v1.00 *.nss' and that's all.

Link to comment
Share on other sites

Use a command prompt to open the compiler. Then type:

 

nwnnsscomp -v1.00 "scriptname.nss"

 

Other solution: ( It saves time and this is what I use 90% of the time)

 

Put "NWNNSSCOMP.exe" in your SWKotor directory (not the override directory), then open notepad and paste this:

 

NWNNSSCOMP -v1.00 -co Override\* Override\
pause

 

Save the file as "Compile.bat" and also put it in your main SWkotor directory.

 

Now, put the scripts you want to compile in the override diectory (.nss files).

Now, whenever you want to compile a script, just double click the Compile.bat and it should compile all the scripts that are in your override folder. Look into your override folder and the compiled scripts should be there ( .ncs files).

Link to comment
Share on other sites

None of those EXCELLENT methods is as user friendly as use the "run" option box in windows;)

 

Hit start then "run" and type this in the box and press enter "C:\Program Files\LucasArts\NCS\1\nwnnsscomp.exe" -v1.00 dk_sup_ns.nss

 

(Make sure that the directory is pointing to "your" location for the nwnsscomp.exe file) Also replace the file name dk_sup_ns.nss to the file name you want. Cheers.

Link to comment
Share on other sites

uhhh.....that didn't work either....it says "Windows cannot find 'C:\Program'.Make sure you typed the name correctly,and then try again.To search for a file,click the Start button,and then click search."......and niether of the other 2 methods worked either....... 0/3 worked......I believe this is a bad omen......lol.

Link to comment
Share on other sites

Nice method Darth Khasei but it doesn't beat the double click :D

 

Originally posted by Vor

thanks for the help :),now I might be able to complete the mod I'm working on.

 

edit:nm.....I'm lost.The faster way didn't work,and I don't know what a command propt is...

 

ok, let's try again:

 

A command prompt is the black little ms-dos window.

But with the the method I gave you, you don't need to use it (you just have to look at it :p ) .

 

1. Open notepad and paste the text :

NWNNSSCOMP -v1.00 *.nss
pause

then save it as Compile.bat and put the new Compile.bat in the same folder as the scripts you want to compile.

 

2. Put NWNNSSCOMP.exe in same folder as the scripts you want to compile (I created a folder called Kotor_Compile where i put all this)

 

3. Put the script you want to compile, blahblah.nss in your the same directory as above.

 

4. Double click the Compile.bat file

 

5. You should see a black command prompt popping up and if the script has compiled successfully you'll see:

 

Compiling: blahblah.nss

Total Execution time = 75ms (or whatever times it takes)

 

press any key to close the command prompt.

 

6. Look into your folder wehre you initially put your scripts. You should now see the following files:

- blahblah.nss (you don't need this one anymore but keep it for reference purposes)

- blahblah.ndb (just discard this one. It's debugging info that was used in nwn - read: send to garbage bin)

- blahblah.ncs (this is the compiled script that you need)

 

7. Well not really a step, just a comment: next time you use the compiler, start at step no. 5 :D

 

Hope this helps. :)

 

What more than 550 posts and I'm a RANCOR????? :mad: How insulting! :D

Link to comment
Share on other sites

Originally posted by Vor

I asked one of my friends about it,and he said if you first save it as a .nss,then do "save as" and make it a .ncs,and put it to all files.it works......so does it work?

 

no. The script wont be compiled. If it was as simple as that we wouldn't need script compilers :D

Link to comment
Share on other sites

Can you be more specific? What exactly are you seeing?

 

If you are running from a command prompt or from a .bat file that contains "pause" in it, you should see the output of nwnnsscomp -- and it's pretty exact as to what the problem is.

 

Edit:

Oh, just read your edit that you don't know what a command prompt is...

 

A command prompt (aka DOS prompt) is when you see the C:\> in a black window and a blinking cursor... you can to one by clicking Start -> Run and typing cmd

 

If you can understand how run an application from a command prompt, all the rest of the advice will make sense.

Link to comment
Share on other sites

well,what I'm seeing is this:1.if I do the command propt way or the run way,I see the black nwnnsscomp for a split second,and can't read it for that split second,and 2.Darth333's way if still says the error message I got with the normal way before I asked.

Link to comment
Share on other sites

1.if I do the command propt way or the run way,I see the black nwnnsscomp for a split second,and can't read it for that split second,and

 

That means you are NOT using a command prompt.

 

 

Start: Programs: Accessories: Command Prompt

Link to comment
Share on other sites

You know I thought about this when I posted before. Are you "100%" positive that the script amd properly syntaxed. As you know one period or comma in the wrong place and the script will not compile. Trust me on this one I wrote tons of them and had the same result that it would not compile.

 

If you are positive that you are correctly doing the commands to compile correctly, then I would check not only the syntax, but the script structure as well. You can always e-mail it to me and I'd be glad to take a look at it for ya. Let me know.

Link to comment
Share on other sites

Just in case, I uplaoded a .bat file. You can get it here: http://mars.walagata.com/w/darth333/Compile.zip

 

1. Just put the Compile.bat file in your main SWKotor Directory together with NWNNSSCOMP.exe.

 

2. Then put your .nss files inyour override folder.

 

3. Double click the Compile.bat file: your scripts should compile automatically.

 

4. If it doesn't work, tell us exaclty what it says when you double click the Compile.bat file.

Link to comment
Share on other sites

well......it says all of the stuff that says what it is,where it is,ect.....then it says "Error:Unable to open input file "Override\*".....and I don't even know what a synax is.......The script is small,it's only an attack script.......

Link to comment
Share on other sites

'C:\Program Files\LucasArts\SWKotOR>NWNNSSCOMP -v1.00 -co Override\* Override\' Star Wars:Knights of the Old Republic' Script Compiler/Decompiler based on 'NeverWinter Nights' Script Compiler/Decompiler Modified by Hazard(hazard_x@gmx.net)

 

Error:Unable to open input file "Override\*"

 

C:\Program Files\LucasArts\SWKotOR>pause

Press any key to continue...'

 

 

that's EXACTLY what it says each time.

Link to comment
Share on other sites

Hmm, txt file. I think I know what may be going on. Did you make this NSS from scratch yourself? I got that when I did. So what I ended up having to do was to use an exsisting NSS taking out the script guts and replacing them with my new stuff. Then saved the file. Then rename it "outside" of the editor. That or a scripting syntax error are probably things keeping it from compiling.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...