Author Topic: My Custom .tlk woes  (Read 465 times)

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
My Custom .tlk woes
« on: November 27, 2014, 01:08:59 am »


               

I can't get this one little modification to load in-game.


 


Here is my custom .tlk file. I added a single line to one I was already using.


 


dumb_tlk.jpg


 


Here is the last line of ItemProps.2da:


 


 



85         1         1          1          1          1        1        1            1        ****        ****        1          ****         ****          ****      ****      ****           ****      ****          ****            ****           1          1          16777226    Use_Limitation_Gender



 


Here is the last line of ItemPropDef.2da:


 


 



88       16777226  UseLimitationGender              gender             0       0                 ****           5523         ****



 


The .tlk is added to the test module, along with the hak with the two modified .2da files.


 


I get nothing under item properties.


 


This sort of modification is very new to me, so I'm getting frustrated and confused with all the .tlk instructions I've been reading and could really use some help clearing this up.


 


Thanks,


 


FP!



               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
My Custom .tlk woes
« Reply #1 on: November 27, 2014, 02:15:55 am »


               

I haven't done this for about a year, but I think you need a related line in ItemPropDef.2da. Check that out a bit and how to work it on the wiki



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
My Custom .tlk woes
« Reply #2 on: November 27, 2014, 02:17:53 am »


               

You good sir, are correct. My ItemProps.2da was not updated - it was being pulled in from Shdewood's hak - and after updating it, I've got everything to appear.


 


FP!



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
My Custom .tlk woes
« Reply #3 on: November 27, 2014, 03:57:23 am »


               

Alright!


 


Looking good. Certain articles of clothing are set.


 


Use Limitation: Gender: Female or Male.


 


Testing it out, simply has the Use Limitation after the description of said item, but a male character can equip clothing specific to a female rather than the item being red as it would be with Class Limitation. "You are not the correct race/class to equip this item."


 


I got the idea from Project Q, and loading up a PQ module and setting clothing with Gender Limitation provides the exact same results - it doesn't stop the opposite sex from equipping the item.


 


I'd like it to have the item be red with Gender Limitation and "You are not the correct sex to equip this item.".


 


FP!



               
               

               
            

Legacy__six

  • Hero Member
  • *****
  • Posts: 1436
  • Karma: +0/-0
My Custom .tlk woes
« Reply #4 on: November 27, 2014, 04:21:15 am »


               

Unfortunately the only way to put new use limitations in is by forcing them in the module's equip item script. IIRC CEP included a script to do that by default?



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
My Custom .tlk woes
« Reply #5 on: November 27, 2014, 06:43:34 am »


               

The CEP script called OnItemEquipped is

 


   Spoiler
   



               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
My Custom .tlk woes
« Reply #6 on: November 27, 2014, 12:02:23 pm »


               

Just when you think you are getting to grips with what this site can do... Nice one @Proleric. So I'm guessing that the syntax for that (without the extra spaces is


 


[ s p o i l e r ]


[ / s p o i l e r ]


 


TR



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
My Custom .tlk woes
« Reply #7 on: November 27, 2014, 02:26:09 pm »


               

Okay, thanks everyone for the work around.


I don't know why Bioware opened up .tlk creation but failed to incorporate the little red box for use limitations, but perhaps it was an engine limitation. Regardless, it is what it is and at least now, male characters can't put on dresses! '<img'>


FP!



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
My Custom .tlk woes
« Reply #8 on: November 27, 2014, 04:47:36 pm »


               

What if you put points in cross-dressing like DeNiro in Star Dust?


tumblr_miw7yaWq801qcpkfeo1_500.gif



               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
My Custom .tlk woes
« Reply #9 on: November 27, 2014, 06:47:56 pm »


               

Or for a disguise to enable sneaking in somewhere?


 


TR



               
               

               
            

Legacy__six

  • Hero Member
  • *****
  • Posts: 1436
  • Karma: +0/-0
My Custom .tlk woes
« Reply #10 on: November 27, 2014, 11:18:39 pm »


               


I don't know why Bioware opened up .tlk creation but failed to incorporate the little red box for use limitations, but perhaps it was an engine limitation




 


TLK is just a localisation database - it's used in the main game to allow translated strings in various languages to be stored together in one big pack (ie so translating the game doesn't require changing stuff in a million different files).


 


The use limitations are a separate system entirely, that just happen to borrow strings from the TLK. Text you add to the TLK is just that - plain old text.


               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
My Custom .tlk woes
« Reply #11 on: November 28, 2014, 09:17:34 am »


               

What if you put points in cross-dressing like DeNiro in Star Dust?

We certainly don't want to spoil anyone's fun! Unfortunately, custom content often only includes models for one gender, so Gender Limitation is a quick and easy way of preventing invisible body parts.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
My Custom .tlk woes
« Reply #12 on: November 28, 2014, 02:58:09 pm »


               

I was kidding, Proleric. I'm well aware that the way to make crossdressing work in NWN is to port the male version to the female side and the female version to the male side.



               
               

               
            

Legacy__six

  • Hero Member
  • *****
  • Posts: 1436
  • Karma: +0/-0
My Custom .tlk woes
« Reply #13 on: November 29, 2014, 05:12:40 pm »


               


I was kidding, Proleric. I'm well aware that the way to make crossdressing work in NWN is to port the male version to the female side and the female version to the male side.




 


Transgender phenotype is a breeze to implement FWIW '<img'>