Total War: THREE KINGDOMS

Total War: THREE KINGDOMS

Illustration changer MOD - Base for 1.3.0 patch
 This topic has been pinned, so it's probably important
KPG  [developer] Aug 22, 2019 @ 11:17pm
How To Make illustration-changing mode using Illustration Changer.
This article describes the illustration-changing mod using my Illustration Changer mod.

I always say, I am not good at English :) Please tell me if there is something hard to understand.

Before creating the illustration mod, you will need the following tools:

RPFM: https://github.com/Frodo45127/rpfm/releases

Assembly Kit

Graphic Tools (photoshop, paint.net, etc.)

TweakPNG: http://entropymine.com/jason/tweakpng/


[img]https://iimgur.com/ofm2iSV.png[/img]

In the folder where Steam is installed, navigate to the Steam\stemps\workshop\content\779340\182351271. Open [mod]Illustration_changer_base.pack with RPFM.

Then right-click in the UI zip files and click Extract to move the UI files to the desired location and extract it.

[img]https://iimgur.com/opwznCh.png [/img]

After extract it, You will find ui\characters folder, there are a total of five folders: template_earth, fire, metal, water, and wood. Please copy the folder that matches the properties of the character you want to create and set the name of the copied folder to 3k_main_hero_special_(name of the character).

As an example, I would create Dong Min, so I named the folder 3k_main_hero_special_earth_dong_min.

[img]https://iimgur.com/TKV6FL2.png[/img]

Please give the same name to the folder in ui\characters\3k_main_hero_special_(character's property)_(name)\composites\faces.

[img]https://iimgur.com/vRI7SHy.png[/img]

There are large_panels and small_panels in the faces folder. This file determines which full-body images will be displayed in the game.

[img]https://iimgur.com/9niUlQO.png [/img]

Also, inside each Panel folder is an Angry, Happy, and Norm folder. Each folder determines emotions. Angry, happy, and normal.

I make an image for large_panel in size 400*700, and a small_panel in size 326*570. A total of six images are needed to match the character's emotions and size.

[img]https://iimgur.com/Bh8P5s7.png[/img]

If each image is finished according to size and emotional state, you should open each image file with TweakPNG and insert the tEXt. Images under the composites folder require data about the state of emotion. which tells you that tEXt is the image that corresponds to that state of emotion. tEXt is the indicator that what images corresponds to the state of character's emotions.

[img]https://iimgur.com/Bh8P5s7.png[/img]


In TweakPNG, press Ctrl+T to create a new tEXt, then enter the following information for each size and image:

large_panel, Angry
[type:angry;x:-23;y:60;z-order:0;pivot_x:0.4996;pivot_y:0.5000;]

large_panel, Happy
[type:happy;x:-23;y:60;z-order:0;pivot_x:0.4996;pivot_y:0.5000;]

large_panel, Norm
[type:norm;x:-23;y:60;z-order:0;pivot_x:0.4996;pivot_y:0.5000;]


small_panel, Angry
[type:angry;x:-16;y:60;z-order:0;pivot_x:0.4995;pivot_y:0.5005;]

small_panel, Happy
[type:happy;x:-16;y:60;z-order:0;pivot_x:0.4995;pivot_y:0.5005;]

small_panel, Norm
[type:norm;x:-16;y:60;z-order:0;pivot_x:0.4995;pivot_y:0.5005;]


If your image is not in the intended position in the game, you should locate it while adjusting the values for x: and y:. These values depend on the size of the image and the posture of the characters.

When you have finished working in the composites folder, Next is in the stills folder. There are a total of five folders: bobbleheads, halfbody_large, halfbody_small, mini, and unitcards.


[img]https://iimgur.com/mdRAF5E.png[/img]


The image you want to enter here does not need to work with TweakPNG, but the file must have the same name. In addition, the size of the images in each folder is standardized.

At the bottom of each folder is a folder called Faces, just like above. Also, there is a folder called Large inside the Faces. The Large folder must contain large images, as the name suggests. Each image has the following size:

bobbleheads
large : 134*220
small : 84*138

halfbody_large
large : 499*400
small : 312*250

halfbody_large
large : 499*400
small : 312*250

mini
large : 48*48
small : 30*30

unitcards
large : 131*435
small : 82*272


If you are having trouble with the form of the image, there is a zip file named Dong Min in the pack file. Extract the Zip file to the RPFM, then uncompress and compare it to your work.

When you are finished working with the images, the following are DB operations: We recommend that you leave two RPFMs on for this operation. Open database.pack at Steam\stemps\common\Total War THREE KINGDOMS\data.

[img]https://iimgur.com/WYBYY3H.png[/img]

First, select the db folder from the pack file in my mod, then right-click to run Extract.

[img]https://iimgur.com/znBEgzM.png[/img]

Then, click Packfile -> New PackFile to prepare to create a new one.

[img]https://iimgur.com/cqFZ5j6.png [/img]

When you're ready to create a new file, you'll need to insert the UI folder and the DB folder that you just exported. Right-click Unknown.pack and press "Add Folder" to insert two folders.

[img]https://iimgur.com/PtJvogi.png [/img]

The file is inserted, replace the file named Illustration_changer in the folders under the db folder with the name you want. To prevent conflicts with other modes.

[img]https://iimgur.com/01G0lkb.png [/img]

Campaign_character_art_sets_tables is a table that defines an art_set.

Write Art_Set_Id as follows.
3k_main_art_set_historical_(name of the character)_general

Agent_type is general

Culture and Subculture determine whether a character is a Yellow Turban or an ordinary Han Dynasty general.

If the character is male, check on Is_male.

Agent_subtype should be written according to the character's subtype. Dong Min is an Earth attribute, So should be written as 3k_general_earth.

[img]https://iimgur.com/t6Jd1FP.png[/img]

Campaign_charter_arts_tables is a table that defines the details of the Art_Set.

The recommended method is to visit the same campaign_character_arts_tables from the RPFM where database.pack was opened, then find and copy items with the same elemental types as the character you want to modify, and then paste them into a new pack file that you create.

Art_set_id requires three items: 0 years old, 6 years old, and 18 years old. You don't have to change the conditions of 0 and 6, but after the age of 18, you have to do the following:

Portrait
3k_main_hero_special_(property of the character)_(name of the character)/

Card
3k_main_hero_special_(property of the character)_(name of the character)


This example is Dong Min. So,

Portrait
3k_main_hero_special_earth_dong_min/

Card
3k_main_hero_special_earth_dong_min

[img]https://i.imgur.com/BFNYROT.png[/img]

Also, the number that goes into Id can be found in the DAVE of the Assembly Kit by looking for campaign_character_arts, and then clicking Add_record to add an entry to get a new ID number.

[img]https://i.imgur.com/O6mBI6L.png[/img]

In charater_generation_templates_tables, you should connect the character to the Art_set you created.

First, find the name of the character you want to modify in the same table in database.pack, which is open in a different window, and then copy it and paste it into a new pack file.

Subsequently, if you enter Art_set_override as the name of the Art_Set you just created, 3k_main_art_set_history__(name of the character)_general, all operations are finished. Please save the finished pack file.

[img]https://i.imgur.com/YAObqdO.png[/img]

When you sort the mods in Mode Manager, you must ensure that my mod is below and that the mod you created is set to above.

[img]https://iimgur.com/evW7nP1.png[/img]

If you don't know or have any questions about your work, please feel free to ask. Thank you.