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.
@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.
Comments
http://redmine.beamdog.com/issues/21989
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.