Skip to content
Conner Olsen edited this page Jun 26, 2026 · 18 revisions

Hook your mod into CMF's shared registration on_action. This runs for each human player on game start and when the mod menu opens. Not all features require it, but it is the standard entry point for registering CMM settings, action bar buttons, and alerts.

Create a registration effect and an on_action file:

# in_game/common/scripted_effects/your_effects.txt
your_mod_register = {
	# Register settings, action bar elements, alerts, etc.
}
# in_game/common/on_action/your_on_actions.txt
cmf_on_mod_registration = {
	on_actions = {
		your_mod_on_register
	}
}

your_mod_on_register = {
	effect = {
		your_mod_register = yes
		# You can optionally split registration into as many effects as you like:
		# your_mod_register_cmm_settings = yes
		# your_mod_register_action_bar = yes
	}
}
  • cmf_on_mod_registration - the shared on_action provided by CMF. Append your own on_action under it.
  • your_mod_on_register - your on_action that calls your registration effect. Can be named whatever you want.

Then create a localization file for your mod:

  • your-mod/main_menu/localization/english/your_mod_l_english.yml

Optional: Member Banner

If you'd like to show that your mod is built on CMF, paste this banner at the bottom of your Steam Workshop description. It links back to the CMF workshop page.

[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3692202776][img]https://raw.githubusercontent.com/Europa-Universalis-5-Modding-Co-op/community-mod-framework/main/assets/images/cmf/CMF_Member_Banner.png[/img][/url]

Next Steps

Clone this wiki locally