Player Resource Consortium

Neverwinter Nights => Help => Topic started by: KenquinnTheInsaneOne on June 14, 2010, 07:41:28 PM

Title: PRC Script Editing
Post by: KenquinnTheInsaneOne on June 14, 2010, 07:41:28 PM
I have never edited scripts from hak packs I have seen several references of needing to place the scripts in the prc top hak. It was my understanding that any script that has been edited in the toolset would override those in the hak packs.

I have two question one is it necessary to add edited scripts to my top hack in order for them to override the default PRC script and two if I add scripts to the top hack does everyone joining the server need the edited version.
Title: PRC Script Editing
Post by: DM Heatstroke on June 14, 2010, 08:38:41 PM
Quote from: KenquinnTheInsaneOne

I have never edited scripts from hak packs I have seen several references of needing to place the scripts in the prc top hak. It was my understanding that any script that has been edited in the toolset would override those in the hak packs.


No, you have it backwards.  Priority order from low to high is core (BIFs), Override, Module, then hak paks. (http://nwn.wikia.com/wiki/Override)

Quote from: KenquinnTheInsaneOne

I have two question one is it necessary to add edited scripts to my top hack in order for them to override the default PRC script and two if I add scripts to the top hack does everyone joining the server need the edited version.


1.) Yes.  (Actually putting them in any hak above the PRC script hak would work).

2.) No. Scripts are only fired on the server (to prevent cheating).
Title: PRC Script Editing
Post by: KenquinnTheInsaneOne on June 14, 2010, 09:50:53 PM
Thank you for the information.

I knew that scripts were fired by the server or else the few hundred edited spells in the PW I help maintain would not work. I mainly asked due to being unfamiliar as to how hak packs worked. I could see differing hak packs giving the default you don't have the correct hak pack error.
Title: PRC Script Editing
Post by: DM Heatstroke on June 14, 2010, 10:22:56 PM
You can put scripts, creatures, item & I think merchants & conversations into server only hak packs if you are hitting the 15k object limit for your module.  The client still needs to have the hak pack, but the client version of said hak pack can be empty.
Title: PRC Script Editing
Post by: KenquinnTheInsaneOne on June 16, 2010, 12:59:35 PM
Two more questions these are not directly PRC related.

I know you can have players with edited copies of the dialog.tlk file so spell/feat descriptions can accurate to server side modifications. Can you do the same with a prc tlk file in order to update the spell descriptions client side?

To what extent can you edit 2da file server side and the players are effected by it. From what I have seen the contents can be modified as I have seen 2da edits to change polymorph appearances. Are all the 2da files server side like scripts?
Title: PRC Script Editing
Post by: DM Heatstroke on June 16, 2010, 02:15:05 PM
Quote from: KenquinnTheInsaneOne

Two more questions these are not directly PRC related.

I know you can have players with edited copies of the dialog.tlk file so spell/feat descriptions can accurate to server side modifications. Can you do the same with a prc tlk file in order to update the spell descriptions client side?


Yes, my server uses a merged / modified PRC / CEP / Custom TLK file.  I've made the following changes to the PRC content:

1.) Pyrokineticist has been renamed to Elementalist.

2.) Dragon Disciple has been changed to Drake Child, I've also converted certain dragon heritage feats to their closest drake counterparts.


Quote from: KenquinnTheInsaneOne

To what extent can you edit 2da file server side and the players are effected by it. From what I have seen the contents can be modified as I have seen 2da edits to change polymorph appearances. Are all the 2da files server side like scripts?


As long as you put the edits in the tophak the changes will be active. I'm not sure if all the 2das are serverside, but I think the main ones (classes.2da, racialtypes, appearances.2da, etc) are.  This would be pretty easy to test.