Avatars
Before doing this guide, please check the getting started guide for modders if you haven't already.
How can I create an avatar
First, you should create a new .json file at GameData/Avatars/NAME.json. The file should look like this:
{
"texturePath": "PATH",
"cost": 0
}
texturePath should be the path to the texture for the avatar, while cost should be the renown cost (0 means free so no need to unlock, you can find it in the avatar selector if it is successfully loaded)
Localization
In order for the avatar to appear with the right name, make sure you have a localization string for each language you support with the name STRING_AVATAR_NAME. So for example, if your avatar is called MyAvatar, it should be STRING_AVATAR_MYAVATAR.
Notes
As suggested in the image asset preparation guide, you should target at most 512x512 or maybe 1024x1024 for the image sizes for the avatars.
If the texture is not successfully loaded you will not see the avatar in the avatar selector or the shop if it's purchaseable with renown.