5
« on: April 08, 2022, 08:48:28 PM »
You can download a portrait pack and see how they do it in the data folder. But really all you need to do is create a .faction file in data/world/factions and just point to where the portraits are. A player.faction to allow the player to use them, hegemony.faction to allow the hegemony to use the portraits, etc. Standard portrait size is 128 x 128. Don't forget your mod_info.json
The inside of the .faction file should look like this.
{
"portraits":{
"standard_male":[
"graphics/portraits/real/portrait_alex.png",
"graphics/portraits/real/portrait_amogus.png",
"graphics/portraits/real/portrait_changemymind.png",
"graphics/portraits/real/portrait_darude.png",
"graphics/portraits/real/portrait_dawson.png",
"graphics/portraits/real/portrait_dean.png",
"graphics/portraits/real/portrait_harold.png",
"graphics/portraits/real/portrait_jack.png",
"graphics/portraits/real/portrait_joe.png",
"graphics/portraits/real/portrait_joey.png",
"graphics/portraits/real/portrait_keanu.png",
"graphics/portraits/real/portrait_lobster.png",
"graphics/portraits/real/portrait_sean.png",
"graphics/portraits/real/portrait_tom.png",
"graphics/portraits/real/portrait_tommy.png",
"graphics/portraits/real/portrait_yes.png"
],
"standard_female":[
"graphics/portraits/anime/portrait_anime_bloody.png",
"graphics/portraits/anime/portrait_anime_cop.png",
"graphics/portraits/anime/portrait_anime_masked.png",
"graphics/portraits/anime/portrait_anime_mia.png",
"graphics/portraits/anime/portrait_anime_police.png",
"graphics/portraits/anime/portrait_anime_private.png",
"graphics/portraits/anime/portrait_anime_riotguard.png",
"graphics/portraits/anime/portrait_anime_sheriff.png",
"graphics/portraits/anime/portrait_anime_vectorhellfire.png",
],
},
}