Aller au contenu

Photo

Referencing Custom tlk files?


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

#1
FaerzressSparkles

FaerzressSparkles
  • Members
  • 219 messages

Is there a way to reference custom tlk files without having a module reference them in the toolset? I wanted to add a spell description, but I cannot get the game to reference the custom tlk. I tried the hex offset and +16777221 methods, but neither worked.



#2
andysks

andysks
  • Members
  • 1 651 messages

Did you associate your tlk with the module, under module properties? I know this might have been the first thing you did but sometimes these are the things we forget :).

 

Also, are you trying to give a custom spell to the player and the description doesn't work? Did you add the description to the 2da? I haven't messed a lot with spells.2da but I guess that's where a description gets referenced.



#3
FaerzressSparkles

FaerzressSparkles
  • Members
  • 219 messages

I have it working with a modified dialog.tlk. I was trying to use a custom.tlk without having to associate it with a module. This is so the custom things would work in the OC, for example.



#4
andysks

andysks
  • Members
  • 1 651 messages

I see. I missread your first post. Sorry about that.

 

From what I know, your write the description on the dialogue.tlk, then go to the 2da and assign that number on the spell you created and when you give the spell it should work. At least that's how I do it for feats and I never had a problem.

 

All I did, even though I don't know if that's the case for you, is modify a bit the give feat scripts. I have a library which states the feats. Call it roe_ginc_feat.

/*
*************************************************
Libray defining feat constants
so that the feat stays between module transitions.

Andy 06.03.2014
************************************************
*/

const int FEAT_ROE_SPIRIT_SPEAKER = 2600; 
const int FEAT_ROE_FIEND_SUMMONER = 2601; 
const int FEAT_ROE_GRILL_MASTERY  = 2602; 
const int FEAT_ROE_NARCISISM      = 2603; 
const int FEAT_ROE_HUMILITY       = 2604; 
const int FEAT_ROE_DREAM_WALKER   = 2605; 
const int FEAT_ROE_DESTROYER_CIV  = 2606;
const int FEAT_ROE_HOPE_GIVER     = 2607; 

The numbers correspond to the 2da. Which 2da has the full number resref of the description on my custom tlk. No hex or +. Just the full number. And then on the ga_give_feat I #include "roe_ginc_feat".

I don't know if this is the issue with you, but this works for me. For feats.



#5
FaerzressSparkles

FaerzressSparkles
  • Members
  • 219 messages

But your custom tlk is referenced in a module, yes?

 

I was trying to use a custom.tlk without a module. It works just fine with a modified dialog.tlk. But for ease of compatibility and less overwriting, I wanted to put my entries into a custom.tlk, but have them usable in the OC and all other modules without modifying the modules themselves.

 

It seems that there is no way to do what I was trying to do, and I will just have to keep it as it originally was, using a modified dialog.tlk.


  • andysks aime ceci

#6
kevL

kevL
  • Members
  • 4 070 messages

It seems that there is no way to do what I was trying to do, and I will just have to keep it as it originally was, using a modified dialog.tlk.


that's what i do too. (mine is massively edited; spell descriptions corrected, syntax that i prefer, etc.)

i use a range down in 3000+ or so for custom TS entries. (although for edits to work in the TS, changes need to be done in the <installation> folder...)