PDA

View Full Version : Help with compiling, no output


ModderEarthHAHA
10-02-2005, 06:21 PM
I'm using Fred Tetra's nwnnsscomp to compile a nss-file using these parameters:

nwnnsscomp -c -g 2 myfile.nss

I get the usual message that you get after a successful compilation (checked a few guides to see if they would mention this), but when I check the dir, there was no ncs-file created. I even tried searching my comp, but no file.

I also tried giving nwnnsscomp a output, but nothing.

Thanks for any help.

LSaberDuelist
10-02-2005, 07:19 PM
"nwnnsscomp -c yourScript.nss" produces a ncs in the same directory as the nwnnsscomp.exe

ModderEarthHAHA
10-02-2005, 07:25 PM
"nwnnsscomp -c yourScript.nss" produces a ncs in the same directory as the nwnnsscomp.exe

First of all I have to type the "-g 2" for the app to find my nwnscript.nss file for kotor2.

But the thing is that it doesn't produce the file.

"Compiling: myscript.nss"
"Total Execution time = 31ms"

*checking the dir where nwnnsscomp.exe is*
No .ncs file at all!

LSaberDuelist
10-02-2005, 08:14 PM
odd, you can also try Kotor tool's project manager to compile scripts, maybe that works for you.

ModderEarthHAHA
10-02-2005, 08:18 PM
odd, you can also try Kotor tool's project manager to compile scripts, maybe that works for you.

haven't gotten that one working either actually. I also tried Hazard's compiler just now, but it complains that I don't have NeverWinter Nights. I got those errors in Tetra's as well before I installed the PC-version of the game.

Det. Bart Lasiter
10-02-2005, 08:41 PM
I got those errors in Tetra's as well before I installed the PC-version of the game.

First, copy HazardX's nwnnsscomp (in the KT directory) and cmd.exe (in .\WINDOWS\system32), into an empty folder. Then put any *.nss file into the folder, from there, open cmd from the folder you created, and type the followng into the command line: "nwnnsscomp -v1.00 *.nss". If it doesn't compile you probably have syntax errors in your script. Also, if it's for K2, place the K2 version of nwscript.nss (in scripts.bif), in the folder.

stoffe
10-02-2005, 08:52 PM
Make sure you have either a main() function or a StartingConditional() function (depending on what type of script it is) in your script. The compiler won't say anything if it's missing, but no NCS script will be created since the script has no starting point.

ModderEarthHAHA
10-02-2005, 08:54 PM
First, copy HazardX's nwnnsscomp (in the KT directory) and cmd.exe (in .\WINDOWS\system32), into an empty folder. Then put any *.nss file into the folder, from there, open cmd from the folder you created, and type the followng into the command line: "nwnnsscomp -v1.00 *.nss". If it doesn't compile you probably have syntax errors in your script. Also, if it's for K2, place the K2 version of nwscript.nss (in scripts.bif), in the folder.

Tried it and the results are:

*hazards still says it needs NeverWinter Nights.

*Tried the same with tetra's, it still acts as if everything is fine, but does not generate the compiled file.

ModderEarthHAHA
10-02-2005, 09:00 PM
Make sure you have either a main() function or a StartingConditional() function (depending on what type of script it is) in your script. The compiler won't say anything if it's missing, but no NCS script will be created since the script has no starting point.

THANK YOU!

YOU ARE MY GOD!!

I would kiss your feet and lick your boots if you were here. I've been sitting with this for almost 9 hours.

Thank you.