Player Resource Consortium

Neverwinter Nights => Help => Topic started by: samarye on December 21, 2010, 09:03:07 PM

Title: How to import changes into haks?
Post by: samarye on December 21, 2010, 09:03:07 PM
I'm creating a new base class using the PRC manual's prestige class creation tutorial as a guide.  

I have to edit .2da and .nss files that are currently just parts of the .hak files on my machine.  I've extracted some of them and can edit them easily enough.  But then I didn't know how best to get my changes back into the hak file.  

For example, I can just use NotePad to tack my new class's line on the end of classes.2da's section in prc_2das.hak, but will that work?  It doesn't seem like the right way.  Also, I know when I start editing scripts, I'll have to compile them.  Then how do I get them back into the .haks?  

I want to learn to edit and add to the PRC hak files.  Or just edit the component .2da and .nss files in directories, as the manual says is possible (but I didn't quite get how).

Windows Vista, PRC 3.4, Java 1.6.0_16, NWN Diamond 1.69.

I tried searching the forums, but this seems like something you all know how to do so well already that you rarely have to explain it.  Any advice would be appreciated.
Title: How to import changes into haks?
Post by: CapnQ on December 21, 2010, 09:55:49 PM
Follow the instructions for building the PRC near the bottom of http://nwnprc.com/articles.php?article_id=19
Title: How to import changes into haks?
Post by: samarye on December 21, 2010, 10:45:41 PM
Cool, thanks.  I couldn't get the CVS from the manual to work, but I've used SVN before and will definitely give this a try.
Title: How to import changes into haks?
Post by: samarye on December 22, 2010, 01:26:03 AM
Okay, on the website you linked it says:

* Open the nwnprc folder.
* Create a text file called config.make (.make is the file extension).
* Open this file, and type in these three lines for NWN1:

NWN_DIR = C:\NWN
PRC_VERSION = 33g
PRC_INSTALLVERSION = 3.3g

I think the "nwnprc" folder is just whatever I checked out the files into (I don't have any nwnprc folder on my comp), but I really don't know where the g in 33g is coming from and what I should replace it with for 3.4.  

This is maddening!

When I run make.bet, I get

Building makefile
Updating dependencies
acp_auto.nss
Unable to locate or open Neverwinter Night
NMAKE: fatal error U1077: '"tools\nwnnsscomp"' : return code '0x1'
Stop.

Maybe this has something to do with the contents of config.mk, which was there before I made config.make.
Title: How to import changes into haks?
Post by: xwarren on December 22, 2010, 03:46:57 AM
Are you sure your NWN is installed in c:\NWN? You need to specify the path where nwmain.exe is.

33g is just a version designation. Can be anything really (ie. PRC Shrek will work ;p).

Also you need to copy dialog.tlk file from your nwn dir to tlk dir in repository (where the prc_consortium.tlk file is).

But the easiest way to edit hak is nwhak tool that comes with NWN - you can find it in NWN\utils dir. You can add/remove files in haks ;)
Title: How to import changes into haks?
Post by: samarye on December 22, 2010, 10:34:20 AM
I copied over dialog.tlk and gave config.make the correct file path before attempting to compile.  Thanks for clearing up my 33g confusion.  The code not compiling seems like a sign that I've screwed something up while messing around, so I am strongly considering unistalling and reinstalling everything.