Player Resource Consortium

 

Author Topic: Compiler confusion trying to fix broken nw_ch_acc9.nss  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

September 18, 2012, 06:07:33 PM
  • Adept
  • *
  • Posts: 2
  • Karma: +0/-0
  • New Member
    • View Profile

Please excuse my ignorance/confusion, i have been looking on the net all day and still am a little stuck. Having recently tried to bring back from the dead an old PW i have some script errors.

When my module builds an error occurs in nw_ch_acc9.nss (prc_alterations.nss not found).

Having looked about and found this post (http://prc.athasreborn.com/index.php?topic=438.0) I have been trying to use nwnnsscomp.exe to recompile it thusly:

Code: [Select]
Copy nwnnsscomp.exe to your modules directory.

Create a subdirectory in modules named prcinc and extract the contents of prc_include.hak to it.

Create a batch file (a text file with the .bat extension) in the module directory.

Enter the following into the batch file:

copy nwnnsscomp.exe temp0\nwnnsscomp.exe
cd temp0
nwnnsscomp -g -i ..\prcinc *.nss
pause
del nwnnsscomp.exe
cd..

...but it doesnt do nw_ch_acc9.nss as its not one of my scripts.

So now i am seeking pro help, thanks in advance.


September 18, 2012, 08:43:43 PM
Reply #1
  • Developer
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

1. use nwhak.exe and extract contents of prc_include hak somwhere (ie. d:\prc\prcinc)
2. if you have any other includes you wish to use copy them to the same dir
3. copy nwnnsscomp.exe and nw_ch_acc9.nss to d:\prc
4. start windows command prompt (start -> run -> cmd.exe)
5. go to d:\prc\ in the console (cd d:\prc)
6. execute this command:
nwnnsscomp.exe -g -i prcinc nw_ch_acc9.nss

this should compile your script using prc includes.


September 18, 2012, 09:30:34 PM
Reply #2
  • Adept
  • *
  • Posts: 2
  • Karma: +0/-0
  • New Member
    • View Profile

my problem is that nw_ch_ac9.nss (ops not acc9) is a resource in the mod not one of my scripts so i can copy out the contents and compile (which worked perfectly) but have nowhere to put it, i assume its an old DMFI wand, no idea where its hiding though as i only have cep and prc on there as custom content haks.



September 19, 2012, 04:44:12 PM
Reply #3
  • Developer
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

You'll have to use nwhak.exe and add compiled file (*.ncs) to your top hak or replace it in prc_scripts.hak.