首页所有页面

图形模组制作

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

Folders

Characters

主条目:Portrait modding

This folder contains bits of faces that are stuck together to form portraits.

Coats of arms

主条目:coats of arms.gfx

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

主条目:Interface modding

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

相关页面 (59)

CharlemagneCoats of arms.gfxEU4转档器模组制作Interface moddingPatch 2.2Patch 2.8.2Portrait moddingSteam创意工坊事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作科技模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作音乐模组制作验证器