(It is just a WIP rough. What I want to do is simply let the skirmishers share the same pose.)
Is there a guide about which files should I replace and how to add mask so the portraits can show the player colors? Or is there an available mod which also change portraits only so I can quickly take it for a reference to directly know which files should I edit and how to edit them?
I downloaded Resource manager and tried to make a small mod to change the text in the game, and it works. So I basically know how to change the game files. But I have no idea how to changing the graphics and add mask so they can show the player color…
You just need to find the portrait path of the original units (normally in \Data\wpfg\resources\art\units) and create the same folder hierarchy in your mod. Place your new portraits with the same name and it will replace those in the game.
Is there a guide about which files should I replace and how to add mask so the portraits can show the player colors?
You can see portraits in the game data how they work (you can open Data.bar with the resource manager). Normally you just have to leave an area transparent so that it takes the color of the player.
Edit: the portraits is in the UIResources1.bar, not in the Data.bar, but the path in your mod must be " \Data\wpfg\resources.…". You can see the correct path in the resource manager: