Player Resource Consortium

 

Author Topic: personal_switch 2da location?  (Read 6610 times)

0 Members and 2 Guests are viewing this topic.

December 28, 2011, 01:28:43 PM
  • Adept
  • *
  • Posts: 34
  • Karma: +0/-0
  • Gender: Male
  • Doom of Worlds
    • View Profile

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.


December 28, 2011, 02:15:52 PM
Reply #1
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

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.


December 28, 2011, 03:14:52 PM
Reply #2
  • Adept
  • *
  • Posts: 34
  • Karma: +0/-0
  • Gender: Male
  • Doom of Worlds
    • View Profile

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?


December 28, 2011, 03:29:38 PM
Reply #3

I know 2das can be looked at using notepad.


December 28, 2011, 03:43:31 PM
Reply #4
  • Adept
  • *
  • Posts: 34
  • Karma: +0/-0
  • Gender: Male
  • Doom of Worlds
    • View Profile

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.


December 28, 2011, 03:55:32 PM
Reply #5
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

In nwn\utils folder there is a tool to extract files from haks -> nwhak.exe. Use it ;)


December 28, 2011, 04:54:12 PM
Reply #6
  • Adept
  • *
  • Posts: 34
  • Karma: +0/-0
  • Gender: Male
  • Doom of Worlds
    • View Profile

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.


January 05, 2012, 01:52:07 PM
Reply #7

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