Ck2 Title Modding
Click Here https://fancli.com/2tgvS6
You can make a basic minor title in a really easy way. Add a .txt file to your mod's /common/minor_titles/ folder. As long as it does not have the same name as the files in the base game's /common/minor_titles/ folder it will add to the list of minor titles.
You want the minor title to be named and described properly in the game, so we need to add some localisation. So create a new file in the /localisation/ folder of your mod. It must be a CSV file, so the name could be something like 00_Minor_titles.csv.
Titles are defined, as of Patch 3.3.X, in the files contained in the /common/landed_titles/ folder. However, the coat of arms is in /gfx/flags/ and the history is in /history/titles/. Title modding decides the extent of duchies, kingdoms, and empires and therefore the appearance of the map upon the selection of a particular start date. Titles are fairly easy to mod.
Then, you must select a color. Colors are defined in RGB. You can see a non-exhaustive list of colors on Wikipedia. Remember you must take the decimal code and not the hexadecimal one. The title can take two color modifiers color and color2, which is optional. The color2 modifier changes the secondary color of your border.[1]
This is enough to add the title to the game, and it may now be granted to a character using console commands. However, the title's name will be k_mytitle and the coat of arms (CoA) will be the same as the rebels. (Others titles' CoAs will also be incorrectly assigned.)
The coat of arms of titles above barony level are not generated ingame like those of dynasties, but instead are premade and loaded from the /gfx/flags/ folder. Custom coats of arms must be saved as 24-bit 128128 pixel TGA images and saved in that folder with the same name as the custom title. In our example, the file should be named k_mytitle.tga. If you don't want to create a coat of arms now, you can just copy another file. While the game will run if a title (above barony) has no coat of arms file, other coats of arms may behave unexpectedly and be assigned to the wrong titles.
While baronial coats of arms are generally auto-generated by the game, custom arms may be applied to a barony title using the same system as dynasty coats of arms. A coat_of_arms tag is used within the title's tag, which may be defined in two ways. The first (explicit) system is formatted as follows:
Even if an image file matching a barony's name is present in the flags folder, baronies will not use it. However, full-color coats of arms similar to those used by higher tier titles can be achieved for baronies by using dedicated entries in Coats of arms.txt (using color = 0 to prevent it from assigning colors), in a similar manner to the dynasty arms included in the Dynasty Shields DLCs and the coats of arms for certain titles when held by pagan characters (see below).
This tells the game that when a pagan ruler holds the title, rather than displaying the normal coat of arms, arms number 8 (i.e. the 9th image; counting starts at 0) in norse_pagan arms texture number 2 will be displayed instead. The other values here are set to 0, since this is a full-color coat of arms rather than using the assigned colors. They may however be used in the same way as in normal coat_of_arms tags if so desired. (For more details, see Dynasty modding Coat of Arms.)
Probably, you want the title to be named other than Kingdom of k_mytitle, so we need to add some localisation. So create a new file in the /localisation/ folder. It must be a CSV file, so the name could be something like mymod.csv. Now you can add, for reference, a comment header so you know where is each language, and then the code and name of your new title as well as the adjetive for that title. In our example, we are creating the titular Kingdom of Paradox:
Landed titles are organized in a hierarchy, with each king title containing its de jure duchies, and so forth. Creating new counties requires modifying the map, but kingdoms may be split up or counties moved to different duchies easily. For example, suppose we want to make a de jure Kingdom of Northumbria containing northern England. Since we want our new kingdom to be part of the Empire of Britannia, we first find the beginning of that title in landed_titles.txt:
There are many additional optional modifiers that can apply to a title. All are optional. Boolean modifiers (i.e. true/false values), which are abbreviated to bool, default to the opposite of the example given.
Welcome to the first part of the Adding Landed Titles guide, where I shall be showing you the method of adding your own titular duchies, kingdoms, and empires. Part 2 of this guide will be showing you how to add formable de jure titles in the same vein as the Kingdom of Ireland or the Empire of Francia. Meanwhile, Part 3 will show you the ins and outs of adding a new title that can be selected from the new game map, complete with its own history, characters, and culture. Before we begin, I recommend setting up your mod directory first; as I shall be assuming that you have already done so, and this guide is building upon the knowledge that you would have gained from that guide.
The first file that we shall be modifying is the landed_titles text document found in common\\landed_titles. This single file determines what each title is a de jure part of, any creation prerequisites, and other details such as a title's capital and culture. However, we are not dealing with anything to do with de jure titles today, so scroll all the way to the bottom of the file until you hit the titular duchies/kingdoms/empires section. For this guide I'll be adding a titular kingdom, but you can add a titular duchy or empire if you want while following this guide because the method for adding them is exactly the same.
Any entry will begin by defining its internal name. The internal name is the name used by the game engine itself to keep track of the title; later on I'll be showing you how to attach the external name (what players will see) to this internal name. You'll also have noticed that every duchy entry starts with d_, kingdom entries with k_, and empire entries with e_. It's important to stick with this naming scheme as it helps with navigating this file, and it helps with finding the correct entry when it come to things like c_cornwall and d_cornwall (and what I'll be adding: k_cornwall).
This is fairly self-explanatory, as we are defining the title's colour. This is done by RGB values (Red, Green, Blue). You can also define a secondary colour by using color2 = { R G B }, of course replacing R, G, and B with numbers. Keep in mind that the accepted range of numbers is 0 to 255, with 0 being none of that respective colour and 255 being that colour in full. So { 0 0 0} is pure black, while { 255 255 255 } is pure white.
Again, this is fairly self-explanatory. This line is telling the game what a title's default capital county will be. For titular titles, this defines the county that needs to be held for their creation. The number is the same number used for a province, so 31 is Cornwall (you can find a list by going to history\\provinces). The sharp character after the number is used to mark that anything after it is a comment. A comment is not read by the game, and it is simply there for the person modifying the file to make it easier to remember details. In this case we can see that it is being used to remind the reader that province 757 is Famagusta. I seriously recommend that you use comments in your work because it allows you to work faster (by not having to check what those numbers mean), and it allows others to immediately know what you are refering to.
By adding a capital to a titular title we are telling the game that a character must control this province to be able to have the option of creating the title. This is similer to how you need at least 50% of a de jure title's territories to be able to create or usurp it.
This section is basically saying that you have to be Catholic, or a heresy of Catholicism, to be able to create this title. The allow line is always used to denote any extra prerequisites that you might what to add.
I've given my entry an appropriate name, while still following the naming convention set out in the rest of the file. color = { 20 20 20} will be telling the game to use a dark grey for this title. capital = 31 is setting the County of Cornwall to be this title's capital; note that I've kept the comment so that I have a quick reference for what province 31 is supposed to be. Finally, I've used the new line culture = breton. This defines the default culture for the title. However, it's not necessary for a title to work.
Once you've added your title, lets save and load up the mod to give it a quick test! If everything's been done correctly then the game should load up without any issues and when you load a game you should be able to see a \"Titles can be created\" alert. Congratulations! You've added your very first title to the game; hopefully the first of many. However, you would have noticed that the game is using the internal name. Why is this
It's because we haven't defined an external name via a localisation file. Unlike for landed_titles, we can safely create a brand new localisation text document in the localisation folder. I've created mine as KingdomOfCornwall. Back in the Setting up a mod guide we had to change the file type of a .txt file to a .mod file, and we've got to do a similar thing here as well. But this time it's to a .csv file rather than a .mod file. Once you have changed the file type, load it up, as well as any one of Paradox's localisation files back in the main CK2 directory. We'll need to be copying this line:
To your localisation file. This is a useful line to keep in each of your localisation files because it provides a template to add new lines from. Now copy it to the second line as well and delete the sharp character at the start of the line. Currently it's telling the game to replace every possible instance of the internal name CODE with either the external names ENGLISH, FRENCH, GERMAN, or SPANISH depending on what language the player is using. We don't want this, so replace CODE with your title's internal name, and replace ENGLISH with whatever your title is supposed to be named. 153554b96e