Aller au contenu

Photo

Renaming Spells with spells.2da


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

#1
ConnHurr

ConnHurr
  • Members
  • 4 messages

I'm trying to modify the label of a spell so when you hover over it on the quickbar it is not the default name (i.e. Magic Missle). 

 

I edited the name column in the spells.2da to **** and put the custom name under the Label Column "Towel". When I launch the game however it says bad strref. I can't seem to get rid of this error.

 

Any suggestions? Thank you!



#2
Kato -

Kato -
  • Members
  • 392 messages

That's because the "Name" column is meant to hold the index of the string to display, instead of the string itself. The index points to a string in dialog.tlk. 



#3
ConnHurr

ConnHurr
  • Members
  • 4 messages

I put **** for the name column. And according to http://nwn.wikia.com/wiki/Spells.2daif the name column contains ****, the Label will be displayed.

So what I have:
Label               Name
Towel              ****
 

In game I get BadStrRef instead of towel.

Thanks in advance.



#4
WhiZard

WhiZard
  • Members
  • 1 204 messages

I am also unable to get the "Label" column to work as the wiki describes.  I am betting the explanation was based on released BioWare documentation, which in this case means this feature was not implemented.



#5
3RavensMore

3RavensMore
  • Members
  • 703 messages

I am also unable to get the "Label" column to work as the wiki describes.  I am betting the explanation was based on released BioWare documentation, which in this case means this feature was not implemented.

 

The wiki states the Label fields is not used by the game engine, it just makes it easier to locate specific spells within the file 2da.  You'll need to edit the .tlk file to change the spell name. 

 

To make it work:

Pick a blank entry in the .tlk file, and add the new spell name. 

In the spells.2da, add the line number in the .tlk file to 16777216.  That is number you'll need to enter in the Name field in the spells.2da file for your spell. 



#6
WhiZard

WhiZard
  • Members
  • 1 204 messages

The wiki states the Label fields is not used by the game engine, it just makes it easier to locate specific spells within the file 2da.  You'll need to edit the .tlk file to change the spell name. 

 

Correct, I updated the wiki to reflect ConHurr's and my experience (see the page history).