Aller au contenu

Photo

How to get Portrait filename from Portrait ID


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

#1
Baaleos

Baaleos
  • Members
  • 1 330 messages
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 Image

#2
kalbaern

kalbaern
  • Members
  • 824 messages
Portrait IDs match up to the line # they are located on in the Portraits 2da.

#3
Baaleos

Baaleos
  • Members
  • 1 330 messages
Thanks- that makes sense. Cheers: should allow me to display character portraits on the character page now

#4
kalbaern

kalbaern
  • Members
  • 824 messages

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.