i am having a horrible time trying to get the nwnnsscomp.exe to work with my scripts.
here's a step-by-step of what i'm doing:
1. write a script in notepad, then i save it as recruit_rodian.nss
2. open my CMD.exe (i'm using windows xp)
3. run nwnnsscomp
4. type in: nwnnsscomp -v1.00 recruit_rodian.nss
i have also tried: nwnnsscomp recruit_rodian.nss -v1.00
since i've seen it posted both ways on here.
i get the following error message every time: "Error: Unable to open input file "recruit_rodian.nss"."
so, can anyone help me out, or even point me toward another script compiling program that is easier to use? i have some really great scripts i'd like to use in-game, but this is preventing all of them. thanks.
That sounds like what I experienced, until I realized that notepad saved the file as myscript.nss.txt instead of myscript.nss.
:rolleyes:
no, that doesn't seem to be the problem.
when i highlight it in windows xp, it's says "filetype: NSS file".
how did you eventually get it to work?
Do this, this is what I have in my computer.
Go to your Kotor directory, not the override directory, I am talking about the main KotOR directory.
Open a notepad and type this:
NWNNSSCOMP -v1.00 -co Override\* Override\
pause
Save the file as "Compile.bat". Also copy the file "NWNNSSCOMP.exe" and put it in the same KotOR main directory.
Then save whatever scripts you are editing into the Override directory under the name "blablabla.nss". Whenever you want to compile a script, just run the bat file from your windows explorer, It will compile all scripts that are in the Override folder and create a ncs file. This is the exact set up that I have and I have been using this to create all of my mods. If this does not work for you, I am not sure what is wrong.
I have a problem with nwnnsscomp, too.
the exe and the batch file are both in the kotor main directory. When i start to compile any *.nss file in the override folder i get a lot of the same error-messages;
Leaked PSack Entry (h:\programmieren\vc7\gametools\kotor\nwntools-1.2\nsclib\nsccontext.cpp,230)
Leaked PSack Entry (h:\programmieren\vc7\gametools\kotor\nwntools-1.2\nsclib\nsccontext.cpp,340)
...
Compilation aborted with errors
Can somebody help me?
I was wrong. I'm just a beginner :D
Now I have another question. Compiling scripts is not longer a problem but when I start to decompile ncs-scripts with nwnnsscomp and open the decompiled files with the editor I just have something strange, but no script.
Please, anybody able to help me?
Decompiled scripts (the ones with the extension .pcode) appear as assembler commands. P-code stands for pseudo-code which is one step up from your computers' native code (binary). P-code is bascially numeric commands that Torlack was able to translate back into assembler commands. That's as high level as you can get from decompiling. :( You can get 'some' useful information back out, and in fact that's how Heloderamtid was able to figure out what the problem was with KSE causing players to get stuck in cutscenes.
Thank you for your Reply. Hm, then I think I have to download some scripting tutorials. uh, lot of work to do.:p
Originally posted by gameunlimited
Whenever you want to compile a script, just run the bat file from your windows explorer, It will compile all scripts that are in the Override folder and create a ncs file. This is the exact set up that I have and I have been using this to create all of my mods. If this does not work for you, I am not sure what is wrong.
okay, i did all this, and it worked great, once!
now every time i try to compile a script, it says: "File is an included file, ignore."
what?
like i said, it worked great the first time, but now it gives me the same error no matter what i name the file, or what the contents of the file are.
okay, this dropped really fast, and it is keeping me from modding anything new into the game.
i hate to do this, but it's better than starting a new thread...
BUMP
djowen -
Try your attempt again. Afterwards, highlight everything you see in your console window, then right click the title bar of your console window. Choose Edit: Copy and then paste it into a post on this thread. It might help others to troubleshoot.
Unless you get the "Error: Unable to open input file "recruit_rodian.nss"." error message, most probably the problem is not the compiler anymore. Any other error messages most probably are caused by errors in the script itself.
Specific to your problem, it is probably caused by the fact that your file is an include file. Without going too deep into programming language, basically an include file does not have a "main()" function in it, and will not be compiled.
#%***! Why do they have to make script compiling so complicated for the common mortal?
:ball: :nut: :nut:
Because they probably don't want you to hack that! LOL :D