Author Topic: classes.2da alignment restriction problem  (Read 948 times)

Legacy_BCH

  • Full Member
  • ***
  • Posts: 160
  • Karma: +0/-0
classes.2da alignment restriction problem
« on: August 20, 2010, 10:18:38 am »


               I've been trying to change the alignment requirements for the Bard class in my module.  After Googling the old forums and these new ones, all advice that I have been able to find points to the classes.2da file.

I know I can successfully make changes to the classes.2da file.  For example, if I change the Playerclass value from 1 to 0, then put the new file in either the override folder or a hak, that change works as I would expect: the Bard class vanishes from the choice of classes when leveling or creating a character.

However, when I change the AlignRestrict and AlignRstrctType values for the Bard, it only seems to affect characters who already have a level in something else.  A Paladin 15 (the Bioware pregen) can take a level of Bard after my change, but new level 1 Bards still cannot take a Lawful alignment.

Is this something that's hard-coded, or do I have to change this somewhere other than classes.2da?

Thanks for any help you can offer.

Edit:  I'm running NWN Platinum upgraded to 1.69, if that helps at all.
               
               

               


                     Modifié par BCH, 20 août 2010 - 09:33 .
                     
                  


            

Legacy_Eradrain

  • Sr. Member
  • ****
  • Posts: 365
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #1 on: August 20, 2010, 10:52:35 am »


               Your alignment restrictions won't work when creating a new character.  The character has to have one level in something else.  That's hardcoded, I learned it the hard way myself when trying to remove all alignment restrictions from classes for my own project.

The work-around I'm using is to have your module/server have a pre-game Lobby area where an NPC can change the character's alignment to whatever they want it to be.  So, you can be chaotic-whatever to make your level 1 bard, then once you get in-game you can change it to Lawful Evil and by this point your 2da change will work just fine, so you can continue leveling as bard.
               
               

               


                     Modifié par Eradrain, 20 août 2010 - 09:53 .
                     
                  


            

Legacy_BCH

  • Full Member
  • ***
  • Posts: 160
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #2 on: August 20, 2010, 05:02:26 pm »


               That's what I was afraid of.  Yeah, I think I'll use the same method you did. 

Thanks.  '<img'>
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #3 on: August 20, 2010, 05:47:38 pm »


               It's not so much hard coded as it loads your haks after you log in.  It's part of the reason PRC uses a custom character creator.  I recall that there was a way to force preload of some haks but it involved editing something in an ini file.  I couldn't tell you if that worked.  The bad side is it's a client side responsibility then and they can make mistakes or simply not do it and you have to clean up the mess.



Doing an alternate method like launching a conversation on module enter to choose things is probably a better idea.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #4 on: August 20, 2010, 06:03:38 pm »


               

Calvinthesneak wrote...

It's not so much hard coded as it loads your haks after you log in.

Nope, just tried it even if you add classes.2da without alignment restriction into your override, nothing gets changed, its the same hardcoded like base classes.
               
               

               
            

Legacy_Eradrain

  • Sr. Member
  • ****
  • Posts: 365
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #5 on: August 20, 2010, 06:37:05 pm »


               Shadooow's right, it's hardcoded.  Even on a singleplayer module with pre-loaded haks, the alignment changes still don't kick in till after level 1.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #6 on: August 20, 2010, 07:27:09 pm »


               Hmmmm even if you do something like suggested here?

http://nwn.bioware.c...m=48&highlight=
               
               

               


                     Modifié par Calvinthesneak, 20 août 2010 - 06:27 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #7 on: August 20, 2010, 07:37:42 pm »


               Yes, thats the same as override with some features/issues.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #8 on: August 20, 2010, 07:38:17 pm »


               

Calvinthesneak wrote...

Hmmmm even if you do something like suggested here?

http://nwn.bioware.c...m=48&highlight=



Very cool. 
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #9 on: August 20, 2010, 07:41:19 pm »


               Not really, patch-haks has bigger precedence than module so adding scripts/blueprints there is really bad idea. However its a good way to clean override folder - yet NWNCQ dont work in hak.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #10 on: August 20, 2010, 08:06:15 pm »


               Would the PreLoad hak work for added skills.  I know back when a friend was working on adding skills to his module(PW) we gave up on having them available at first level.  Because we where not going to make players download an override.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #11 on: August 20, 2010, 08:36:12 pm »


               Well not really, you still need custom dialog.tlk otherwise new skill will have screw up name/description. Also I think its easier to tell players to give the skills.2da into their override.



Custom feats at 1. lvl can be choosen via override too. Spells too.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #12 on: August 21, 2010, 01:17:52 am »


               The custom talk is  not a problem.   The Server already has its own Custom talk.  



Think I am going to have to give this system a try.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #13 on: August 21, 2010, 06:56:58 am »


               think you didnt understand '<img'> you cant preload TLK, so if you want to use preload haks/override to allow player to choose custom skills/feats/spells in character creation, you need to add those texts into default TLK table dialog.tlk whis is a mess!
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
classes.2da alignment restriction problem
« Reply #14 on: August 21, 2010, 07:41:40 am »


               Shadooow is right, the preload isn't particularly great.  You are better off to use something like a PRC custom character creator (via a dialogue once you're logged in).  So you let someone create whatever they want via the NWN default, then when they enter the module and are flagged as a new character, it runs the conversation and through the dialogue tree you pick stats, skills, feats, which will have access to all your custom content at that point.  



It's that or they cannot select your custom skills until they hit level 2.



Of course the first option requires something like letoscript that can edit the bic(character) file and boot the person so changes commit.