With texture editing you can replace or add not only character faces but also images of flags, facilities, items, soldiers, trade goods and territory main backgrounds. You can make anything from a MOD that unifies the art in a style you like to one that, combined with data editing, gives your own factions and equipment their own look.
Give characters and factions personality: Redraw character faces or turn a faction's flag into an original emblem. Added faces and flags can be assigned in the data of the target character or faction.
Add more NPC face variations: You can add face images for randomly generated NPCs.
Change icons: You can redraw the images of facilities, troop types, items and trade goods.
Give images to new troop types and equipment: You can assign your own images to troop types, facilities, items and trade goods added with "Data Editing". You can use new image names without replacing existing images.
Change the look of towns: Change the background of the territory main screen and prepare different townscapes for each base. City, fort and village main backgrounds are covered, and the existing color change by time of day is still applied.
First, prepare a local MOD by following "Create the MOD folder" on the home page. Below, that folder is written as <MOD name>. Supported image formats are PNG (.png), JPG (.jpg) and JPEG (.jpeg).
After adding images, you usually need to specify the use of the image in a JSON file, or look up the existing image names. See the explanation of the JSON files on the "Data Editing" pages.
Create the category folder under <MOD name>/Texture/ and put an image with the same name as the existing texture there. The image name without the extension is compared. No DT JSON changes are needed.
Example: replace the Facility_Barrack facility image
<MOD name>/Texture/Facility/Facility_Barrack.png
Match the upper/lower case of the original image name. Do not put several images with the same name that differ only in extension in the same category folder.
To change the background shown when you enter a facility, put an image with the matching name in Texture/BG/SpotMainBG/ in your MOD folder.
Tavern: Bar.png
Guild: guild.png
Lord's manor: coronation.png
Trading Post: tradeshop.png
Shop: itemshop.png
For example, for the tavern, place it at MyMOD/Texture/BG/SpotMainBG/Bar.png. PNG, JPG and JPEG are supported. No DT JSON editing is needed. When you enable the MOD and restart the game, it is applied to every base that uses the same background image.
Put an image with any name in the matching category folder, and write that name without the extension in the image field of the target DT JSON. You do not need a special prefix or a new dedicated DT. For face images that random characters pick automatically, use the naming rules and steps described later.
Put images under <MOD name>/Texture/ and DT JSON under <MOD name>/Json/. In the following examples, write the image name in quotes in each DT's field.
Facility: Texture/Facility/MyFacility.png
Set "MyFacility" in TextureName of Json/DT_FacilityList.json.
Flag: Texture/Flags/MyFlag.png
Set "MyFlag" in FlagTexture of Json/DT_PowerList.json.
Item: Texture/Item/MySword.png
Set "MySword" in TextureName of Json/DT_ItemList.json.
Soldier: Texture/Soldiers/MySoldier.png
Set "MySoldier" in TextureName of Json/DT_SoldierTypeList.json.
Trade goods: Texture/TradeGoods/MyTradeGoods.png
Set "MyTradeGoods" in TextureName of Json/DT_TradeGoodsList.json.
Character: Texture/Units/MyPortrait.png
Set "MyPortrait" in FaceTexture of Json/DT_UnitList.json.
Territory main background: Texture/BG/SpotMainBG/MyTownBG.png
Set "MyTownBG" in SquareTex of Json/DT_SpotList.json.
FlagTexture for flags and SquareTex for territory backgrounds can also be specified with just the image name. Image references in the format written in the original files can also be used as they are. Images with the same name in different category folders are treated as different images.
Put <MOD name>/Texture/Item/MySword.png and specify it in the target row of <MOD name>/Json/DT_ItemList.json as follows.
[
{
"RowName": "RowName of the target item",
"TextureName": "MySword"
}
]
Put <MOD name>/Texture/BG/SpotMainBG/MyTownBG.png and specify it in the target row of <MOD name>/Json/DT_SpotList.json as follows.
[
{
"RowName": "RowName of the target territory",
"SquareTex": "MyTownBG"
}
]
With a normal DT JSON, only the image field of that row changes and omitted fields are kept. When adding whole new rows, such as new troop types or items, set not only the image field but also the other fields the data needs. See "Data Editing" for details.
Save the images and DT JSON, and enable your MOD.
Adjust the priority if needed, then quit and restart the game.
Check in the scenes that use the changed images, such as the facility, soldier and item lists, flags, and the territory main screen.
If several MODs change the same image name in the same category, the MOD with the higher priority is used, just as with character images. If an image does not change, check the location, the name without extension, the DT field, the MOD priority, and that you restarted the game.
The following sections explain the naming rules for character face images and how to add more faces for random characters.
Create a Texture folder directly under <MOD name>, create a Units folder inside it, and put your images there. The location is <MOD name>/Texture/Units/.
Face images should be 1024×1024 pixel squares. Use PNG (.png) or JPG (.jpg). The .jpeg extension can also be loaded.
Use the same name as the existing image. For example, Unit_E_C_M_004_Y.jpg replaces Unit_E_C_M_004_Y.png, which has the same name. Match the upper/lower case of the original name, and do not put several images with the same name that differ only in extension in the same MOD.
If age-specific images already exist for the same number, the age-specific images take precedence. To replace all ages with the same picture, copy the image and place it under the matching _Y, _M and _O names. Just adding an image without the suffix does not replace all the existing age-specific images.
Tip: Subscribe to the sample MOD RandomPortraits on the Workshop and look at its files; it makes the method easy to follow.
By default, images 001–006 are provided for all 18 combinations of 3 civilizations (E, M, W) × 3 classes (C, N, P) × 2 genders (M, F). Whether age-specific images exist differs for each face.
For images to be recognized as faces of randomly appearing NPCs, follow the naming rules below.
For example, Unit_E_C_M_004_Y.png is the image for "Eastern civilization, middle class, male, No. 004, young". The file name consists of the following parts.
Unit: A fixed prefix that marks a character face image.
Civilization: One of E = East, M = Middle, W = West.
Class: One of C = middle class, N = upper class, P = peasant.
Gender: One of M = male, F = female. This is a different position from the civilization M and the age suffix _M.
Number: Three digits, such as 001, 002, 003…
Age: Y = young, M = middle-aged, O = old. If you do not prepare age-specific images, leave out this suffix, as in Unit_E_C_M_004.png, and the same image is used for all ages.
In <MOD name>/Json/Parameters.json, increase RandomUnitTexMaxSuffixNum to "7", "8" or similar.
In <MOD name>/Texture/Units/, place images following the naming rules for all 18 combinations, without exception.
Enable the MOD, restart the game, and check on the face selection screen and in random character generation.
If you set the limit to 7, prepare 18 images numbered 007 for all combinations, such as Unit_E_C_M_007.png, Unit_E_C_F_007.png, Unit_E_N_M_007.png … Unit_W_P_F_007.png. If you set it to 8, add both 007 and 008 for all combinations. If you use a different picture for each age, prepare those age-specific images too.
If you put 007 or 008 for only some combinations and increase RandomUnitTexMaxSuffixNum in Parameters.json, numbers that have no image can also be chosen, which can cause image display problems.
Added images also appear on the protagonist's face selection screen if they meet the game's selection conditions. Use the existing face images as a reference for the aspect ratio, and avoid excessively high resolutions. Displaying many images uses memory accordingly.
In versions of the game that support this feature, put the replacement image in MyMOD/Texture/Units/, enable the MOD and restart the game. For example, for the tavern master, place it at MyMOD/Texture/Units/TavernMaster.png.
Tavern master: TavernMaster.png
Shop keeper: ItemShopKeeper.png
Trading Post master: TradeGoodsShopKeeper.png
Guild master: GuildMaster.png
Slave merchant: SlaveMerchant.png
Garrison guard: GarrisonGuard.png (a generic soldier image shown when no NPC is present while defending a territory)
Tavern girl (common): TavernGirlTexture.png
For the tavern girl, the territory-specific image is used if one is set; otherwise the common image is used. If the image cannot be loaded, the game's default portrait is shown.
In versions of the game that support per-territory settings, put the image for a specific territory under MyMOD/Texture/Units/. In "Data Editing", choose Territory (DT_SpotList) and enter the texture name in the target territory's 「酒場娘の画像ファイル名」 (tavern girl image file name) field. To change the display name, also fill in 「酒場娘の表示名」 (tavern girl display name).
To edit the JSON directly without the tool, set the image name as TavernGirlTexture and the display name as TavernGirlName in GeneralStringMap of the target row in MyMOD/Json/DT_SpotList.json. Enter only the items you want to change, and do not add an extension to the image name.