Skip to content

Beta for 2.2 update now available!

2»

Comments

  • BillyYankBillyYank Member Posts: 2,768
    Dee said:

    Portraits. They'll work in either place, though.

    But note, there is a bug involved when placing portraits in the portraits folder and registering them in a .lua file. Paging through to the left shows each portrait twice. I'm going to keep putting mine in the override until this get's fixed.

    http://redmine.beamdog.com/issues/21989
    mf2112Mr2150JuliusBorisov
  • mf2112mf2112 Member, Moderator Posts: 1,919
    So when will the 2.3 beta be available? :dizzy:
  • Mr2150Mr2150 Member Posts: 1,170
    @BillyYank - I encountered that too! Hence my question about where portraits should be placed.

    The reason for the bug is clear... Your LUA file is adding the portrait to the portrait table. The engine also grabs all portraits in the portraits folder and appends them to the end of the portrait table as standard. So your portrait is counted twice... once from being added from the LUA file, and once from being in the portraits folder.
    The only solution I could find was to place the portrait in override - avoiding the automatic grab.

    I now handle the portraits in a different way which overcomes this and allows portraits to be in the portraits folder.
    JuliusBorisov
This discussion has been closed.