Author Topic: How to get Portrait filename from Portrait ID  (Read 334 times)

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
How to get Portrait filename from Portrait ID
« on: February 21, 2014, 04:54:34 pm »


               The Leto application reads a field called 'PortraitId' from the gff file structure, and this is an int value.Somehow it translates that into a string that represents the filename of the png / jpg portrait.

Does anyone know the process it follows?

Is the Portrait ID a String from the tlk table?

I am working on a website that uses the .Net Entity Framework, and I have made it possible for players to modify their server vault from a web application, and eventually they will be able to view their inventories online, and participate in an online auction house style system.

If someone can help me get the portrait string from the int value, it would allow me to add the characters portrait to the table on the right.

'Posted
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
How to get Portrait filename from Portrait ID
« Reply #1 on: February 21, 2014, 06:44:53 pm »


               Portrait IDs match up to the line # they are located on in the Portraits 2da.
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
How to get Portrait filename from Portrait ID
« Reply #2 on: February 22, 2014, 12:31:40 am »


               Thanks- that makes sense. Cheers: should allow me to display character portraits on the character page now
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
How to get Portrait filename from Portrait ID
« Reply #3 on: February 22, 2014, 03:56:34 pm »


               

Baaleos wrote...

Thanks- that makes sense. Cheers: should allow me to display character portraits on the character page now


Only Bioware or custom portraits in your custom 2da can be found that way. For players with other custom portraits, their Portrait IDs will be invalid.