Author Topic: .LTR File Format  (Read 2758 times)

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« on: August 24, 2010, 04:54:08 pm »


               BioWare's race/gender-specific generated names are stored in binary .ltr files. Does anyone know of any application or method for accessing (and editing, and re-saving/compiling) those files?

And if not, how difficult would it be to write a new Windows application to do so? My only programming experience is with nwscript (and some very simple Visual Basic stuff from years ago), but I'm willing to learn if someone can point me in the right direction.

Thanks!
               
               

               


                     Modifié par B_Harrison, 24 août 2010 - 03:55 .
                     
                  


            

Legacy_Jez_fr

  • Sr. Member
  • ****
  • Posts: 460
  • Karma: +0/-0
.LTR File Format
« Reply #1 on: September 03, 2010, 01:34:54 pm »


               Can't find that .ltr file. Would you mind telling where you found this?



And what's your goal in fact? random names for NPC's?
               
               

               
            

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« Reply #2 on: September 03, 2010, 01:58:06 pm »


               Data - Templates - Miscellaneous Resources

They contain the strings for random name generation in the character creation GUI and toolset, for the different races and genders. I wanted to write my own name lists to replace the defaults, but while I could probably figure out the file formats and immerse myself in a programming environment enough to do it, without any information to go off it's not worth the time it'd take.

Lacking a solution, I've just used renamed and empty .ltr files to replace first names with BioWare's familiar/animal companion ones, and remove last names entirely for my module.
               
               

               


                     Modifié par B_Harrison, 03 septembre 2010 - 01:02 .
                     
                  


            

Legacy_Jez_fr

  • Sr. Member
  • ****
  • Posts: 460
  • Karma: +0/-0
.LTR File Format
« Reply #3 on: September 03, 2010, 04:28:15 pm »


               but do you need it for PCs at character creation, or for NPCs?
               
               

               
            

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« Reply #4 on: September 03, 2010, 04:31:14 pm »


               Both. The same files are used for character generation names, and random names that can be assigned in the creature properties dialog in the toolset.

I don't need them for giving NPCs names in-game, if that's what you're thinking of.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
.LTR File Format
« Reply #5 on: September 03, 2010, 04:57:43 pm »


               I looked at the file when you first posted.  The file format is beyond me at the moment.  There was very little ascII in the file.   I scractched my head over it for a few day trying to find an answer.
               
               

               
            

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« Reply #6 on: September 03, 2010, 06:47:03 pm »


               Thanks for trying, Lightfoot. I'm not at all surprised or disappointed by the relative lack of input here though; I did research the topic on the legacy forums (and the 'net in general), and found only the occasional mention of the files, with no one, as far as I could tell, having actually worked on editing them. A number of text/code editors were suggested to edit or view .ltr, but never in the context of BioWare games, and the raw text binary stuff is meaningless to me.

It seems to me that the .ltr format used in NWN (and other BioWare games, I think) is somehow internally different to the standard, in the same way that .dds is.
               
               

               


                     Modifié par B_Harrison, 03 septembre 2010 - 05:48 .
                     
                  


            

Legacy_ElgarL

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
.LTR File Format
« Reply #7 on: September 06, 2010, 09:53:17 am »


               Which file are you looking at specifically? I've worked a lot with Bioware file formats recently when I wrote a BIF/KEY reader/writer.
               
               

               
            

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« Reply #8 on: September 06, 2010, 11:32:35 am »


               Found in NWN Explorer under,
NWN Main Data - data/templates - Miscellaneous Resources

animal.ltr
dwarff.ltr
dwarfl.ltr
dwarfm.ltr
elff.ltr
elfl.ltr
elfm.ltr
familiar.ltr
gnomef.ltr
gnomel.ltr
gnomem.ltr
halfelfl.ltr
halflingf.ltr
halflingl.ltr
halflingm.ltr
halforcf.ltr
halforcl.ltr
halforcm.ltr
humanf.ltr
humanl.ltr
humanm.ltr
names.ltr

f suffix - female first name
l suffix - last name
m suffix - male first name
               
               

               


                     Modifié par B_Harrison, 06 septembre 2010 - 10:33 .
                     
                  


            

Legacy_Jez_fr

  • Sr. Member
  • ****
  • Posts: 460
  • Karma: +0/-0
.LTR File Format
« Reply #9 on: September 06, 2010, 04:02:49 pm »


               Not sure that'll help, but it seems that Michale DarkAngel did some work on .ltr for his explorer tool (but I can't find a dl link out of his website, that's just me, its somewhere). You may want to ask him, and browse his tools http://www.tbotr.net
               
               

               
            

Legacy_B_Harrison

  • Sr. Member
  • ****
  • Posts: 301
  • Karma: +0/-0
.LTR File Format
« Reply #10 on: September 06, 2010, 05:20:45 pm »


               Thanks Jez. I've PMed MDA about it.
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
.LTR File Format
« Reply #11 on: September 06, 2010, 06:42:53 pm »


               Without some insight from a Bioware insider, I'm afraid that I'm unable to help any more than anyone else has.
               
               

               
            

Legacy_ElgarL

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
.LTR File Format
« Reply #12 on: September 08, 2010, 03:33:28 am »


               They all seem to be empty gff format template files. They contain no actual data, just the data structures used by the engine to hold data.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
.LTR File Format
« Reply #13 on: September 08, 2010, 04:17:17 am »


               

ElgarL wrote...

They all seem to be empty gff format template files. They contain no actual data, just the data structures used by the engine to hold data.



The Header is not correct for it to be a GFF.  I have questioned if the files are even used. though, i'm still researching it on and off. 
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
.LTR File Format
« Reply #14 on: September 08, 2010, 06:47:43 am »


               Best explanation of the file I have been able to come up with is "Letter combo probability info for name generation"

And they do look like fairly empty files, except for some small areas of the file which probably holds the "probability info" which is most likely used by some hard-coded part of the game engine.

Just guessing '<img'>

'Posted

MDA