Community Mod Framework – 1.2 Echinades

If you liked this item, please rate it up on Steam Workshop page.

Authors: Bahmut, CaesarVincens, glorp, Conner, Paradox Mod Manager

Last revision: 30 May at 21:55 UTC (6)

File size: 1.54 MB

On Steam Workshop

Description:

The Community Mod Framework (CMF) is a utility mod that aims to improve mod inter-operability while giving modders tools for creating new features.

CMF should be loaded first in your mod load order.

Any questions, feel free to reach out on the EU5 Mod Coop Discord: https://discord.gg/aqAAcCZsY7

Features
  • Community Mod Menu (CMM):[github.com] A shared in-game mod menu. Mod authors register settings dynamically through a simple API, no need to build a custom settings UI.
    • Toggle, button, numeric, slider (double click to drag), dropdown, text (singleplayer-only), and list settings
    • Per-mod tabs, groups, and search
    • Global settings with host-only multiplayer editing
    • Reset to Defaults
    • Draggable window
    • Can be opened from the escape menu in-game. Or via the keybind (‘m’ by default, can be rebound).
    • CMM Visual Editor[github.com]: browser-based tool for creating your mod menu
  • Custom Alerts:[github.com] Create and show custom alerts in the alert bar through localization keys.
  • Action Bar:[github.com] Add custom action bar buttons with localization keys.
  • Country Transfer:[github.com] CMM settings automatically transfer when switching countries (tag switches, inheritance, etc.).
  • is_host Trigger:[github.com] Check if the current country is controlled by the host player.
  • Unrestricted Tools Toggle:[github.com] Gate restricted features behind a ‘Enable Unrestricted Tools’ setting (cmf_can_use_unrestricted_tools trigger, cmm_set_requires_unrestricted_tools_enabled per-setting flag). Only available for the host in multiplayer.
  • cmf_suppress Effect:[github.com] Suppress ‘used but never set’ and ‘set but never used’ engine warnings with a single effect call.
  • GUI Macros:[github.com] Nand, Nor, and Xor logical operator macros.
  • On-Action Hooks:[github.com] Post-lobby game start and save load hooks (on_game_start_after_lobby, on_game_load, on_game_load_after_lobby) with player country variants. Also includes shared yearly and monthly pulses for human players.
  • Variable Map Utilities:[github.com] Safe variable map mutation helpers (cmf_change_variable_map and local/global variants) that handle remove-then-add atomically.
  • Mod Action Log:[github.com] Global in-game log for recording mod actions (e.g. host tool actions in multiplayer, as the log is unable to be cleared in MP).
  • Community Mod Toolkit (CMT):[github.com] A companion set of development tools, such as a mod template, workshop uploader, and mod translator.

Documentation

Contributors

Mods using CMF

Change Log:

See the Change Notes on the workshop page.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.