Author Topic: Custom Feat Padding?  (Read 346 times)

Legacy_Ralthis

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Custom Feat Padding?
« on: April 19, 2011, 02:58:34 pm »


               Hi all,

I'm trying to add a custom feat to a module for the first time. It was going to be radial, with references to spells.2da and the corresponding cls_feat_*.2da. The process seemed very straight-forward until I tried to test whether I could select them on level up where, you guessed it, no feat showed up. I then tried a basic test feat with no luck either:

2002   FEAT_TEST                             16777228   16777229   ife_X2ESFCrAr     ****          ****       ****        ****     ****     ****     ****    ****          ****        ****      0          0        0           ****          ****    ****    ****        0          ****       ****            ****         ****      ****           ****        ****     ****          ****     ****            ****    ****            FEAT_TEST                                6               ****         ****       ****        ****       ****         0           0

I've edited my custom talk file with entry 12 and 13 (corresponding to 16777228 and 16777229, respectively).

I've read in a wiki somewhere that I need to add padding (i.e. numbered entries where all fields are ****) between the last Bioware added feat and my custom feats. Is this true, or am I missing something really basic?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Custom Feat Padding?
« Reply #1 on: April 19, 2011, 03:09:26 pm »


               Yes it is. The NWN engine will renumber lines in 2das so the number 2002 doesn't matter if there is nothing between 1115 and 2002 the real line will be 1116

However that should still work, the problem why you are not able to select this feat at levelup is that you set ALLclassESCANUSE to 0 which mean that this feat doesnt show up unless you are leveling a class that has this feat inside its cls_feat_*.2da
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Custom Feat Padding?
« Reply #2 on: April 19, 2011, 03:31:33 pm »


               

Ralthis wrote...


I've read in a wiki somewhere that I need to add padding (i.e. numbered entries where all fields are ****) between the last Bioware added feat and my custom feats. Is this true, or am I missing something really basic?


If you don't trust the wiki.

Documentation: 2DA File Format
               
               

               
            

Legacy_Ralthis

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Custom Feat Padding?
« Reply #3 on: April 19, 2011, 11:18:21 pm »


               Thank you Shadow for the explanation! Much appreciated!

Also, thanks to Lightfoot. Now, for some heavy reading...

UPDATE: I fixed my cross-referenced IDs in feat.2da, spells.2da, and the corresponding cls_feat_*.2das, and it works like a charm! Thanks again to both of you!
               
               

               


                     Modifié par Ralthis, 19 avril 2011 - 11:01 .