Player Resource Consortium

Neverwinter Nights => General Discussion => Topic started by: Siradein on December 28, 2011, 01:28:43 PM

Title: personal_switch 2da location?
Post by: Siradein on December 28, 2011, 01:28:43 PM
I get tired of making code switches every time I enter a new module, so I'm wondering where the personal_switch 2da is located so I can just one-shot my changes without having to slog through pages of options.
Title: Re: personal_switch 2da location?
Post by: xwarren on December 28, 2011, 02:15:52 PM
You have to create one.

This is how my personal_switch.2da looks:
Code: [Select]
2DA V2.0

    SwitchName                              SwitchType SwitchValue
1   PRC_XP_USE_BIOWARE_XPTABLE              int        1
2   PRC_XP_USE_PNP_XP                       int        1
3   PRC_XP_MAX_PHYSICAL_DISTANCE            int        20
4   PRC_SPELL_ALIGNMENT_RESTRICT            int        2
5   PRC_BARD_LIGHT_ARMOR_SPELLCASTING       int        1
5   PRC_CRAFT_STAFF_CASTER_LEVEL            int        1

Read prc_inc_switches.nss (in prc_include.hak) for all available switches and set them as you wish.
Than  save the file as personal_switch.2da and put it in your override folder.
Title: Re: personal_switch 2da location?
Post by: Siradein on December 28, 2011, 03:14:52 PM
Cool, thanks for the info.  I'd guessed as much about having to create my own, but wanted to double check anyway.  Do I need any sort of special tool to read hak files?
Title: Re: personal_switch 2da location?
Post by: clansunstar on December 28, 2011, 03:29:38 PM
I know 2das can be looked at using notepad.
Title: Re: personal_switch 2da location?
Post by: Siradein on December 28, 2011, 03:43:31 PM
Read prc_inc_switches.nss (in prc_include.hak) for all available switches and set them as you wish.
Than  save the file as personal_switch.2da and put it in your override folder.

Yep, but I have to read a hak file to get the switches.
Title: Re: personal_switch 2da location?
Post by: xwarren on December 28, 2011, 03:55:32 PM
In nwn\utils folder there is a tool to extract files from haks -> nwhak.exe. Use it ;)
Title: Re: personal_switch 2da location?
Post by: Siradein on December 28, 2011, 04:54:12 PM
Awesome!  Sorry if I sound like a n00b with all these questions, I just make it a habit not to mess around in files I usually have no business with, and thus have a severe lack of knowledge when the occasion arises that I need to.
Title: Re: personal_switch 2da location?
Post by: marohair39 on January 05, 2012, 01:52:07 PM
http://nwvault.ign.com/View.php?view=Other.Detail&id=340
 this tool (nwn viewer) would allow you to browse through hak files and look inside, without having to guess wich file is the right one :o