Mod structure - CK3 Wiki (2024)

Please help with verifying or updating older sections of this article.
At least some were last verified for version 1.1.

Mods are located in the folder ~\Paradox Interactive\Crusader Kings III\mod:

  • Default on Windows: %USERPROFILE%\Documents\Paradox Interactive\Crusader Kings III\mod
  • Default on Linux: ~/.local/share/Paradox Interactive/Crusader Kings III/mod

Each mod requires two parts. Both must be located in the folder above and share the same name, barring file extensions; otherwise, the game launcher will not recognise the mod. Note that folder and file names are case sensitive on Mac and Linux.

  • A .mod file, a plain text file with metadata required to use the mod.
  • A mod folder containing files specific to modding the game, such as events, images, decisions and characters. It may also be a .zip file instead.

Contents

  • 1 Creating initial files
  • 2 The .mod files
    • 2.1 Syntax
    • 2.2 Keys
    • 2.3 Basic example
  • 3 Mod folder
  • 4 Tips

Creating initial files[edit | edit source]

It is recommended to generate the initial mod files through the game launcher in the interests of speed and avoiding human error.

  1. Open the game launcher.
  2. Go to All Installed Mods on the left.
  3. Press Upload Mod in the top right.
  4. Press Create a Mod.
  5. Enter a name, version of the mod (not the game), directory (the launcher will create it) and at least one tag. All of these must be completed before you can press Create at the bottom.
    • (Name must be at least 3 symbols long. DIrectory can include spaces, but cannot end with one.)
    • (Directory cannot include non English characters. If your Windows account name have such characters you must use a directory outside your Documents folder.)

The tags offered by the launcher include:

Alternative HistoryHistorical
BalanceMap
BookmarksPortraits
Character FocusesReligion
Character InteractionsSchemes
CultureSound
DecisionsTotal Conversion
EventsTranslation
FixesUtilities
GameplayWarfare
Graphics

This process will create the following:

  • The mod folder, named after your mod.
  • A descriptor.mod file, contained within the mod folder.
  • Another .mod file, this one named after the mod, located alongside the mod folder.

When uploading, you will be able to change the suggested game version, add thumbnail for Paradox Mods and description.

The .mod files[edit | edit source]

The .mod files used by the game are plain text files that contain metadata about their corresponding mod. There are two .mod files for every mod:

  • (modname).mod, located alongside the mod's folder. This one is required; without it, the launcher will not recognise the mod.
  • descriptor.mod, located within the mod folder. It is recommended to keep this file consistent with the other one, excluding the line containing the path key which is not needed in the descriptor file.

Syntax[edit | edit source]

Similar to other game files, single-line comments can be started using hash (#). To set a value to a key, use the format key="value" for single values; alternatively, use the following structure for lists:

list={"element0""element1""element2"}

Keys[edit | edit source]

The table below describes the keys available for use within the .mod file.

KeysRequired?DescriptionExample
versionYesAllows you to define a version of your mod, defined as a string.version="0.0.1"
tagsNoSets the tags that mod is considered part of. Correlates with Steam Workshop categories.
tags={"Culture""Decisions""Fixes"}
nameYesDetermines the name that shows up in the launcher.name="My Mod"
supported_versionRequired for file alongside mod folder; not required for descriptor.modDefines the latest game version the mod supports; launcher will show a warning if a mod is outdated. The game uses semantic versioning (MAJOR.MINOR.PATCH). Wildcards (*) may be used to define a range of versions.supported_version="1.1.3"
pathYesSets which folder is the mod's folder. Note that it is no longer relative to the main Crusader Kings III folder, but rather to the Crusader Kings III user folder (described above). Alternatively, one can use the entire path.
  • path="C:/Users/Example/Documents/Paradox Interactive/Crusader Kings III/mod/my_mod" (Windows)
  • path="/home/example/.local/share/Paradox Interactive/Crusader Kings III/mod/my_mod" (Linux)
  • path="mod/my_mod" (Relative, any OS)
remote_file_idRequired if uploading and updating your own Steam Workshop mod. Set automatically when mod is uploaded.Must match the Steam Workshop ID of the mod. Can be found at the end of a Steam Workshop URL, such as "2220762808" in https://steamcommunity.com/sharedfiles/filedetails/?id=2220762808.remote_file_id="2220762808"
pictureNoThe picture shown for your mod in the search view and on the mod's page. Steam ignores this key and always looks for thumbnail.pngpicture="thumbnail.png"
replace_pathNoDoesn't load vanilla files for the specified path.replace_path="history/characters"

Basic example[edit | edit source]

The example below displays the basic contents of a .mod file. Feel free to copy and paste it for your own .mod file, remembering to change specific details to match your own mod and game version. Note that the descriptor.mod file does not require the path key.

version="0.0.1"tags={"Culture""Decisions""Fixes"}name="My Mod"supported_version="1.1.3"path="mod/my_mod"

Mod folder[edit | edit source]

Files that edit the game must be put inside the mod folder and are then subsequently loaded by the game. Files often have to be put into specific folders, otherwise they may not be loaded by the game. Some general ones have been listed below:

TypeFolder
Eventsevents
Decisionscommon\decisions
Definescommon\defines
Traitscommon\traits

For specifics, either consult the relevant modding page using the navigation box at the bottom of this page, or look in the game files (Windows/Steam: C:/Program Files (x86)/Steam/steamapps/common/Crusader Kings III/game) and copy the folder structure for a given file up to (and not including) the game folder.

Tips[edit | edit source]

  • When editing your mod folder and .mod file(s), you can reload mods in the launcher to update them without restarting it. In the "Mods" section, press "Manage all mods", then "Reload installed mods". Try this if your mod is not showing up.
  • Once you have created your initial mod structure, it is highly recommended to use some form of backup system (as simple as copying your files to someplace else), or source control such as Git / Github. This will greatly help if you lose your mod files or somehow break your mod and you want to go back to an old version.
  • When creating your .mod file, ensure that you follow the syntax rules correctly, otherwise your mod may not show up at all. For instance, pay attention to using quotation marks (") where needed, especially around values like paths and names.
  • Check spelling everywhere, including the contents and names of files and folders. Even the simplest of errors cause the greatest problems.

Modding

DocumentationScopesEffectsTriggersVariablesModifiers
ScriptingAIBookmarksCharactersCommandsCouncilCultureDecisionsDynastiesEventsGovernmentsHistoryHoldingsLifestylesRegimentsReligionsStory cyclesTitlesTraits
InterfaceInterfaceData typesLocalizationCustomizable localization
MapMapTerrain
Graphics3D modelsExportersCoat of armsGraphical assetsFontsParticlesShadersUnit models
AudioMusicSound
OtherConsole commandsChecksumMod structureModding toolsTroubleshooting

Retrieved from ""

Mod structure - CK3 Wiki (2024)

References

Top Articles
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 5465

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.