Trying to set custom portrait for default party by function Champion:setPortrait(), brings the D3DError message if in parameter is TGA file (in my example is the path to your own portraits_background.tga, just for sure this is the valid TGA).
When I convert portraits to DDS format (D3DFMT_A8R8G8B8 - uncompressed) as custom assets, there is no error, but in game portraits are Empty.
But in Scripting Reference is setPortrait() described for using TGA format...
Thank you for answer