Aller au contenu

Photo

Custom Feat Padding?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Ralthis

Ralthis
  • Members
  • 55 messages
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?

#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
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

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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

#4
Ralthis

Ralthis
  • Members
  • 55 messages
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 .