There are two parts to graphics modding:
- Assets (images or models), stored inside /gfx folder
- Logical names (starting with GFX_ prefix) mapping to these assets, defined inside /interface/*.gfx files.
Logical names are then either referenced from other script files, or are based on naming convention hardcoded in the engine.
Editors
Some recommended editors include:
Formats
- .tga (Truevision Targa)
- .dds (DirectDraw Surface): requires a plugin to use with GIMP or Photoshop, but works natively with Paint.NET.
- .xac/.xsm: licensed format for 3D models and animations
- .mesh/.anim: Paradox developed format for 3D models and animations. Used first in EU4 and in CK2 since Patch 2.2 (Charlemagne). Can be converted to via the JoroDox mod making tool.
Folders
Characters
- 主條目:Portrait modding
This folder contains bits of faces that are stuck together to form portraits.
Coats of arms
Contains flag frames and CoA pattern & frames.
Flags
Flags are used for titles above baronies, but only for religions where has_coa_on_barony_only = yes
.
The game typically crashes if the flag is any of the following: is not 128x128, is not 24-bit, or is uncompressed.
Warning: a missing flag for a title in flags\ folder will cause wrong flags to appear for most titles, due to a shift. a good way to work around this while working on other aspects of the mod, is to give the nations placeholder flags.
Fonts
See [Tutorial] Custom Map Fonts.
Interface
Main game loads from /interface/ for christian religion group, but some assets are overridden when playing religions from other groups:
- from /indian_interface folder for indian_group religion group
- from /muslim_interface folder for muslim religion group
- from /zoroastrian_interface folder for zoroastrian_group religion group
- from /jews_interface folder for jewish_group religion group
- from /pagan_interface folder for pagan_group religion group
New religion groups load from /interface/ folder, and cannot have their own interface.
Mods cannot override assets in religion group folders, as the override is only processed for main game.
Loading screens
For optimal compression, loading screens should be saved with DTX1 compression / no mimaps.
The order loading screens appear is random, except:
- load_0.dds, which is used as splash screen
- the image with highest file name (ex: load_13.dds) has a far more likely chance (50% as of patch 2.8.2) to appear first.
See also
歷史 | 角色 • 家族 • 省份 • 頭銜 • 劇本 |
腳本 | 指令 • 條件 • 作用域 • 修正 • 事件 • 決議 |
常規 | 定義 • 遊戲規則 • 另類開局 • 宗教 • 文化 • 政體 • 特質 • 血脈 • 科技 • 法律 • 建築 • 宣戰理由 • 朝貢國 • 單位 • 目標 • 疾病 • 死亡 • 榮譽頭銜 • 社團 • 寶物 • 地圖外政權 • 內閣成員 • 貿易路線 • 繼承 • 奇觀 • 稱號 |
圖像/音效/本地化 | 地圖 • 圖形 • 盾徽 • 肖像 • 介面 • 小地圖 • 音樂 • 本地化 |
其他 | 故障排除 • 驗證器 • 控制台指令 • 編輯遊戲存檔 • Steam創意工坊 • EU4轉檔器模組製作 |