NwnNssComp is a standalone NWScript compiler and decompiler for Bioware's Neverwinter Nights game. It allows module developers to quickly recompile all their scripts. This is based on Torlack's older version.
Having problem with script compiler install. Followed Chris421's instructions in comments here but get following error
The comment said to make a .cmd file in the same folder as the nwnnsscomp.exe. So I did that creating a cmd file that says
CD H:\Games\NWN\Neverwinter Nights Diamond Edition\modules\temp0
H:\Games\NWN\Neverwinter Nights Diamond Edition\utils\nwnnsscomp.exe -cego *.nss
CD ..
PAUSE
but I get the error H:\Games\NWN\Neverwinter' is not recognized as an internal or external command, operable program or batch file. I'm not sure what to do with that or how to fix it so I can't get this program installed.
Posted by Daijin at 2011-08-01 16:00:30 Voted 10.00 on 08/01/11
Posted by MrZork at 2011-07-25 21:49:55 Voted 9.75 on 07/25/11
This tool is excellent. I love command-line tools and this one would already be excellent if all it did was to get around the "too many modal widgets" issue in the Toolset (where, for example, you can't look in the item palette for a ResRef or something without closing the script editor). But, this compiler is also functionally better than the Toolset's in many ways (better handling of evaluation in for-loop conditionals, etc.).
The -0.25 is just because it would be handy if there was a flag to report differences/warnings regarding something that nwnnsscomp has compiled that the Toolset's compiler would not. It is handy to know if one will be able to use the Toolset's compiler for the Build Module without getting into trouble.
Anyway, I have been using it for a year and I forgot to vote for it. I just saw the note that it needed one vote for HoF consideration and it definitely deserves it, so here's my vote.
(Also, I hate seeing one of those ad spammers as the last comment for such a good tool.)
Posted by The Amethyst Dragon at 2011-06-20 12:55:36 Voted 10.00 on 06/20/11
This is a great tool for both getting around some of the limitations of the toolset's script compiler and for debugging multiple scripts. _________________________ World of Aenea (Hall of Fame PW and the origin of all my works)
Vault Entries: The Complete List (50+ entries, including 17 Hall of Fame awards)
Self-Promotional Honesty: If you have opinions on stuff I've made, or if you use any of it (as a player or builder), I like comments/votes/feedback...so do other content makers and builders. Keep us motivated. :)
Posted by Shargast at 2010-12-19 03:35:52 Voted 10.00 on 12/19/10
Good solid work
Thanks _________________________ Realms of Shargast V1-V5ab, LOTR V15, The Undeath Clave & Faithful of Aerth
Posted by FunkySwerve at 2010-11-21 11:39:22 Voted 10.00 on 11/21/10
Linked someone to this and realized I'd not voted for it yet - whups.
Posted by DM Heatstroke at 2010-11-01 17:44:06 Voted 9.75 on 11/01/10
Best compiler out there for NWN. _________________________ Heatstroke
Posted by azak30 at 2010-05-24 16:33:53 Voted 10.00 on 05/24/10
thank you to the prc team for another quality product that makes building much easier.
Posted by Nissa_Red at 2010-03-26 15:54:37 Voted 9.50 on 03/26/10
Once one has to compile 100+ scripts for a NWN module, one quickly understands why this tool is essential. A GUI would be perfect for the less computer savvy of us, but still I managed to get it to work with the comments below, even in batch command line.
Thank you to the PRC team.
Posted by Daemon_Blackrazor at 2010-03-02 15:07:56 Voted 10.00 on 03/02/10
HEY - HEY!! Issig wouldn't compile with out it!! Thanks guys! _________________________ "I'll sit myself behind this clock, and sing tunes on its belfry!
I am the one you warned me of."
D.
Posted by Gonzo_og at 2010-01-10 09:50:56 Voted 10.00 on 01/10/10
Posted by GrinningFool at 2009-09-19 13:05:31 Voted 10.00 on 09/19/09
Hm - I'm also looking for the source if anyone knows where it is? I checked out the full PRC repo, but it doesn't seem to be there... _________________________ The Grinning Fool The World of Khalidine, a unique RP PW.
Please remember that I vote according to the published scale.
Posted by GrinningFool at 2009-09-19 13:03:45 Voted 10.00 on 09/19/09
Been using this for years and didn't even know it had a Vault page! An excellent tool that allows for integration into our own build chain ... if you have need of it, it's irreplaceable for both NWN1 and NWN2. _________________________ The Grinning Fool The World of Khalidine, a unique RP PW.
I'm trying to use this to DEcompile scripts, and it outputs pcode, which I'm having trouble reading. Is there a way to get it to output ordinary NWN script code?
Thanks!
Posted by DM-Taino at 2009-03-30 20:52:02 Voted 10.00 on 03/30/09
Thanks Dagesh and Chris421 for this brief information. I finally got this thing to work.
DMT
Posted by Dagesh at 2009-01-15 14:11:24 Voted 9.75 on 01/15/09
(Intro you can skip)I had a bit of a time figuring this out as I've only learned to code in NWScript (sad but true). I know enough Command Prompt stuff to get me in trouble but I'll write what I know for the next guy as I was helped by Chris421.(/end intro)
I assume the least amount of knowledge.
Step 1) Go to your NWN directory folder (ex. C:\Program Files\Neverwinter Nights). In that file, then open the "utils" folder. Create a new text document in there. We'll rename it later.
Step 2) Open that document and type in what Chris421 posted:
CD C:\NeverwinterNights\NWN\modules\temp0
C:\NeverwinterNights\NWN\utils\nwnnsscomp.exe -cego *.nss
CD ..
PAUSE
NOTE: Make sure that the paths are the same (ex. C:\NeverwinterNights\NWN\modules\temp0). If they are not, it will not compile. (Also, the temp0 folder is created when you open your NWN module in the builder)
Save that file and name it something unique (like PRCCompiler) and make sure to save it as a .cmd file. What I mean is, as word documents on windows have .doc and text files have .txt, make the new file .cmd (ex. PRCCompiler.cmd). Now you'll have a little gear box icon instead of the text file.
Step 3) Run the new cmd file. You should see lines blazing along in the command prompt. If the script is fine you'll see "- passed" or "- include". If it comments on a specific line, it would be good to check it out.
EXTRA INFO:
===========================COMPILER COMMAND SCREEN====================================
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Building>CD\Games\NWN\utils
pathspec - semicolon separated list of directories to search for files.
infile - name of the input file.
outfile - name of the output file.
-c - Compile the script (default)
-d - Decompile the script (can't be used with -c)
-e - Enable non-Bioware extensions
-g - Don't produce ndb debug file
-i - Add Search Path
-o - Optimize the compiled source
-q - Silence most messages
-x - Extract script from NWN data files
-vx.xx - Set the version of the compiler
-t1 - Perform a compilation test with BIF scripts
-t2 - Perform a compilation test with the given module
-t3 - Optimization space saving report with the given module
-t4 - Perform a compilation test with the given file or files
===========================COMPILER COMMAND SCREEN====================================
This is what you will see if you opened the file from the command prompt. You'll notice that the letters we placed in the .cmd file above are reflected in here. This will give you an idea of what they are. for "infile" and "outfile" you don't need to add those words if you're changing the .cmd file. You add the name of your infile (ex. MyMod.mod) in place of that. The rest (I hope) is fairly self-explanatory-ish. You play with it and make sure to "Save File As" (also make sure the module is open in the builder)
Chris421's post was very helpful in figuring this out.
I assume the least amount of knowledge.
Step 1) Go to your NWN directory folder (ex. C:\Program Files\Neverwinter Nights). In that file, then open the "utils" folder. Create a new text document in there. We'll rename it later.
Step 2) Open that document and type in what Chris421 posted:
CD C:\NeverwinterNights\NWN\modules\temp0
C:\NeverwinterNights\NWN\utils\nwnnsscomp.exe -cego *.nss
CD ..
PAUSE
Keep in mind that
Chris421's post was very helpful in figuring this out.
Posted by mirrormirror at 2008-11-20 19:35:52 Voted 10.00 on 11/20/08
Loving it! Toolset memory issues are a thing of the past!
Posted by wmb1957 at 2008-09-23 18:56:59 Voted 10.00 on 09/23/08
Thank you, invaluable to many neverwinter users.
The source is available in PRC CVS last I knew. Search in google or another search engine and you should be able to find it.
Posted by Tormented_Blood at 2008-09-22 20:06:25 Voted 10.00 on 09/22/08
THANK YOU for the 1.69 update. if i could get hold of the source too it would be nice as i have a friend that would love to port it to linux for us linux users. drop me a line prc guys.
Posted by Inayity at 2008-09-16 08:26:59 Voted 10.00 on 09/16/08
The fact that this has 5k downloads and only like 4-5 votes is a real shame. This is probably one of the most useful utilities for Neverwinter period- right up there with other revolutionary applications like NWNX. A 10!
Posted by Seraphiel at 2007-01-27 06:44:48 Voted 10.00 on 01/27/07