Total War: THREE KINGDOMS

Total War: THREE KINGDOMS

Not enough ratings
ceo data mod guide for ancillary and trait
By icecreamcheesesticks
This guide will help new people to edit ancillary and trait in ceo_data.ccd file.
The knowledge comes from my research in Chinese mods in 3dmgame and comments in steam workshop mods.

This guide assumes that you already know how to make a mod using
RPFM - Rusted PackFile Manager - to create .pack file
DAVE - Database Visual Editor - to edit data inside ceo_data.ccd
BoB (Build-on One Button) - to create ceo_data.ccd

   
Award
Favorite
Favorited
Unfavorite
to change ancillary limit
table
ceo_template_manager_ceo_limits

search by
ceo_to_limit
to find all weapon, armour, mount, accessory, follower
  • ancillary_weapon
  • ancillary_armour
  • ancillary_mount
  • ancillary_accessory
  • ancillary_follower

for armour, ignore general exclusive armour which will ends with suffix:
armour_unique

change
max_limit_that_can_exist_at_once
to 999
to change trait limit
table
ceo_template_manager_ceo_limits

to allow 1 trait to be added multiple times

search by
ceo_to_limit
with value
trait
change
max_limit_that_can_exist_at_once
to 999

to allow more than 7 traits can be added

search by
ceo_category_to_limit
  • 3k_main_ceo_category_traits_physical
  • 3k_main_ceo_category_traits_personality

change
max_limit_that_can_exist_at_once
to 999



In .pack file, we also need to override the script/campaign/_shared/3k_campaign_traits.lua to change the limit.


to change ancillary restriction
this will allow unique armor
  • to be unequiped,
  • can be transferred if equipped,
  • does not need to wait until next round to equip

table
ceos

search by
categories
below to find all weapon, armour, mount, accessory, follower
  • 3k_main_ceo_category_ancillary_weapon
  • 3k_main_ceo_category_ancillary_armour
  • 3k_main_ceo_category_ancillary_mount
  • 3k_main_ceo_category_ancillary_accessory
  • 3k_main_ceo_category_ancillary_follower

change
can_be_unequipped
to
true

change
can_be_transferred_if_equipped
to
true

change
cannot_reequip_until_next_round_if_unequipped
to
false
to allow general to use any weapon and armor
first method

table
ceo_equipment_manager_all_possible_ceos

search by
equipment_manager
  • 3k_main_ceo_equip_manager_character_fire
  • 3k_main_ceo_equip_manager_character_water
  • 3k_main_ceo_equip_manager_character_metal
  • 3k_main_ceo_equip_manager_character_wood
  • 3k_main_ceo_equip_manager_character_earth

add new record with values below

equipment_manager
include_ceo_group
3k_main_ceo_equip_manager_character_fire
3k_main_ceo_group_ancillary_weapon_faction_all
3k_main_ceo_equip_manager_character_fire
3k_main_ceo_group_ancillary_weapon_character_all
3k_main_ceo_equip_manager_character_fire
3k_main_ceo_group_ancillary_armour_faction_all
3k_main_ceo_equip_manager_character_fire
3k_main_ceo_group_ancillary_armour_character_all

repeat for other general types

This will apply for historical and generic generals.

second method

table
ceo_initial_data_scripted_permission

search for
initial_data_stage
  • 3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
  • 3k_main_ceo_initial_data_character_generic_water_ancillaries_01
  • 3k_main_ceo_initial_data_character_generic_wood_ancillaries_01
  • 3k_main_ceo_initial_data_character_generic_metal_ancillaries_01
  • 3k_main_ceo_initial_data_character_generic_earth_ancillaries_01

to allow different weapon types for general

add new records with
scripted_permissions
below, remove duplicate row if any

initial_data_stage
scripted_permissions
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_sword_one_handed_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_axe_one_handed_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_sword_dual_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_axe_dual_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_spear_two_handed_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_spear_two_handed_long_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_weapon_character_axe_two_handed_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_ytr_ceo_permissions_ancillary_weapon_character_mace_dual_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_ytr_ceo_permissions_ancillary_weapon_character_staff_two_handed_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_ytr_ceo_permissions_ancillary_weapon_character_mace_two_handed_enable

This will allow fire characters to use any weapon type.

to allow different armor types for general

add new records with
scripted_permissions
below, remove duplicate row if an

initial_data_stage
scripted_permissions
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_armour_character_metal_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_armour_character_water_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_armour_character_earth_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_armour_character_metal_enable
3k_main_ceo_initial_data_character_generic_fire_ancillaries_01
3k_main_ceo_permissions_ancillary_armour_character_wood_enable

This will allow fire characters to wear any armor type.

For historical generals, replace
initial_data_stage
with specific character ceo data.

To give an example, this will allow Lu Bu to use metal armor.

initial_data_stage
scripted_permissions
3k_main_ceo_initial_data_character_historical_lu_bu_ancillaries
3k_main_ceo_permission_ancillary_armour_character_metal_enable
10 Comments
icecreamcheesesticks  [author] 29 Aug @ 9:20am 
@Kylar: try checking the ancillary / horse / mount
Kylar 22 Aug @ 8:56am 
Hi I had a go at trying to add restrictions to horses to emulate a mod I found (https://steamproxy.net/sharedfiles/filedetails/?id=2812989053) , but couldn't get it to work using the tables mentioned here, any tips?
icecreamcheesesticks  [author] 24 Apr @ 7:29am 
@Jontej I think you can try editing heyi values in table scripted_permissions
Jontej 16 Apr @ 8:18am 
Would you know what CEO to edit, if I'd want to let He Yi equip a weapon in a Han Faction? If I move him there, he cannot equip any weapon. :|
Jontej 15 Apr @ 10:00am 
Hey, great guide, thank you!! :solar:
icecreamcheesesticks  [author] 3 Mar @ 5:02am 
@yashiki I think you can add more armors and try modifying the table ceo_equipment_manager_all_possible_ceos
If there are more than 2 armors, generals should not compete for 1 item.
yashiki 9 Sep, 2024 @ 8:27pm 
I followed your method of changing the auxiliary limits for armor, but the problem is that when they are equipped with the same CEO, they compete for the armor. For example, if I equip both Lü Bu and another supporting character from the same faction with the CEO, they end up competing for the armor. Do you know of any way to make both of them use the same unique armor without conflict?
RustyCrowHK 11 Aug, 2024 @ 7:45pm 
got it, no problem, I finally figured out this has to be done in the UI folder.
so basically everyone is putting some invisible armor image over there to prevent this issue happened.
icecreamcheesesticks  [author] 30 Jul, 2024 @ 5:43am 
@RustyCrowHK sorry I don't know
RustyCrowHK 15 Jul, 2024 @ 1:34am 
hey, good guideline.

by any chance do you know the reason why if I unequip Lubu's armour, his protrait will be gone?
it happens to my new create character with custom CEO too.